summaryrefslogtreecommitdiffstats
path: root/net/tipc/netlink.c
diff options
context:
space:
mode:
authorZhang Shengju2016-03-04 15:07:54 +0100
committerDavid S. Miller2016-03-07 20:55:04 +0100
commit8dfd329fbc240729938d24bf87aca49ea89289c5 (patch)
treea8767866d67312c2a9506c127e51c64582443a42 /net/tipc/netlink.c
parentnetlabel: do not initialise statics to NULL (diff)
downloadkernel-qcow2-linux-8dfd329fbc240729938d24bf87aca49ea89289c5.tar.gz
kernel-qcow2-linux-8dfd329fbc240729938d24bf87aca49ea89289c5.tar.xz
kernel-qcow2-linux-8dfd329fbc240729938d24bf87aca49ea89289c5.zip
arp: correct return value of arp_rcv
Currently, arp_rcv() always return zero on a packet delivery upcall. To make its behavior more compliant with the way this API should be used, this patch changes this to let it return NET_RX_SUCCESS when the packet is proper handled, and NET_RX_DROP otherwise. v1->v2: If sanity check is failed, call kfree_skb() instead of consume_skb(), then return the correct return value. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/netlink.c')
0 files changed, 0 insertions, 0 deletions