diff options
author | Remi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-09-22 20:09:13 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 20:09:13 -0700 |
commit | be0c52bfed7f7828494fa00060efd5d758e92580 (patch) | |
tree | 1261d101dee4c1d440d1d90c974c62339a556843 /include/net/phonet | |
parent | 87ab4e20b445c6d2d2727ab4f96fa17f7259511e (diff) |
Phonet: emit errors when a packet cannot be delivered locally
When there is no listener socket for a received packet, send an error
back to the sender.
Signed-off-by: Remi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/phonet')
-rw-r--r-- | include/net/phonet/phonet.h | 5 |
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) return (struct phonethdr *)skb_network_header(skb); } +static inline struct phonetmsg *pn_msg(struct sk_buff *skb) +{ + return (struct phonetmsg *)skb_transport_header(skb); +} + /* * Get the other party's sockaddr from received skb. The skb begins * with a Phonet header. |