From: Li RongQing Date: Fri, 21 Mar 2014 12:53:57 +0000 (+0800) Subject: netpoll: fix the skb check in pkt_is_ns X-Git-Tag: submit/tizen_common/20140905.094502~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41c35ad6a24aabbdc02bda489b62f08e600cd8e9;p=sdk%2Femulator%2Femulator-kernel.git 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 Cc: WANG Cong Signed-off-by: Jiri Slaby --- diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 462cdc97fad8..9b40f234b802 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;