aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2009-10-13 20:48:27 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-14 18:04:15 -0400
commitf14001fcd7bd03983c872810a3b11af4148bae72 (patch)
tree11b283fe73d751f584d34b684fbfcb077c37f096 /net/phonet/af_phonet.c
parent67ca0e5fa884f483d655ef19f22ad8509138dd3e (diff)
Phonet: deliver broadcast packets to broadcast sockets
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r--net/phonet/af_phonet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index c711d58b4bb5..b113fe00c154 100644
--- a/net/phonet/af_phonet.c
+++ b/net/phonet/af_phonet.c
@@ -369,6 +369,12 @@ static int phonet_rcv(struct sk_buff *skb, struct net_device *dev,
369 369
370 pn_skb_get_dst_sockaddr(skb, &sa); 370 pn_skb_get_dst_sockaddr(skb, &sa);
371 371
372 /* check if this is broadcasted */
373 if (pn_sockaddr_get_addr(&sa) == PNADDR_BROADCAST) {
374 pn_deliver_sock_broadcast(net, skb);
375 goto out;
376 }
377
372 /* check if we are the destination */ 378 /* check if we are the destination */
373 if (phonet_address_lookup(net, pn_sockaddr_get_addr(&sa)) == 0) { 379 if (phonet_address_lookup(net, pn_sockaddr_get_addr(&sa)) == 0) {
374 /* Phonet packet input */ 380 /* Phonet packet input */