netpoll: fix the skb check in pkt_is_ns
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 21 Mar 2014 12:53:57 +0000 (20:53 +0800)
committerJiri Slaby <jslaby@suse.cz>
Fri, 18 Apr 2014 09:07:10 +0000 (11:07 +0200)
[ 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>
net/core/netpoll.c

index 462cdc97fad8f0c5c878bed8a4d4266693672fbc..9b40f234b802025aa5add99d6b20daec1c552832 100644 (file)
@@ -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;