aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/phonet
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/phonet')
-rw-r--r--include/net/phonet/phonet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/phonet/phonet.h b/include/net/phonet/phonet.h
index 1c6f7e7d5fea..d4e72508e145 100644
--- a/include/net/phonet/phonet.h
+++ b/include/net/phonet/phonet.h
@@ -60,6 +60,11 @@ static inline struct phonethdr *pn_hdr(struct sk_buff *skb)
60 return (struct phonethdr *)skb_network_header(skb); 60 return (struct phonethdr *)skb_network_header(skb);
61} 61}
62 62
63static inline struct phonetmsg *pn_msg(struct sk_buff *skb)
64{
65 return (struct phonetmsg *)skb_transport_header(skb);
66}
67
63/* 68/*
64 * Get the other party's sockaddr from received skb. The skb begins 69 * Get the other party's sockaddr from received skb. The skb begins
65 * with a Phonet header. 70 * with a Phonet header.