mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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:
parent
87ab4e20b4
commit
be0c52bfed
3 changed files with 129 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue