diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2014-03-21 20:53:57 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-24 15:08:40 -0400 |
commit | c27f0872a3448c46e561e226b5b97f77187b06d2 (patch) | |
tree | 984e53e8277ec8b4bd50ee7b1bd8a803cfa02b85 /net | |
parent | ebf4ad955d3e26d4d2a33709624fc7b5b9d3b969 (diff) |
netpoll: fix the skb check in pkt_is_ns
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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/netpoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index a664f7829a6..df9e6b1a975 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -742,7 +742,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; |