summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2014-03-21 12:53:57 (GMT)
committerJiri Slaby <jslaby@suse.cz>2014-04-18 09:07:10 (GMT)
commitd40390bf12065bb1c228e4e8becc4ea62c307b48 (patch)
treeefa43b4d5b229121c03ccad97e6eb3757ff87042 /net
parentd8496cba73e6eb7f5fd36adbd3dbaf348bbe0ef2 (diff)
downloadlinux-fsl-qoriq-d40390bf12065bb1c228e4e8becc4ea62c307b48.tar.xz
netpoll: fix the skb check in pkt_is_ns
[ Not applicable upstream commit, the code here has been removed upstream. ] Neighbor Solicitation is ipv6 protocol, so we should check skb->protocol with ETH_P_IPV6 Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Cc: WANG Cong <amwang@redhat.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'net')
-rw-r--r--net/core/netpoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 462cdc9..9b40f23 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -740,7 +740,7 @@ static bool pkt_is_ns(struct sk_buff *skb)
struct nd_msg *msg;
struct ipv6hdr *hdr;
- if (skb->protocol != htons(ETH_P_ARP))
+ if (skb->protocol != htons(ETH_P_IPV6))
return false;
if (!pskb_may_pull(skb, sizeof(struct ipv6hdr) + sizeof(struct nd_msg)))
return false;