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>
This commit is contained in:
committed by
David S. Miller
parent
87ab4e20b4
commit
be0c52bfed
@ -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.
|
||||
|
Reference in New Issue
Block a user