Skip to content

Commit c27f087

Browse files
Li RongQingdavem330
authored andcommitted
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 <[email protected]> Cc: WANG Cong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ebf4ad9 commit c27f087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/netpoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ static bool pkt_is_ns(struct sk_buff *skb)
742742
struct nd_msg *msg;
743743
struct ipv6hdr *hdr;
744744

745-
if (skb->protocol != htons(ETH_P_ARP))
745+
if (skb->protocol != htons(ETH_P_IPV6))
746746
return false;
747747
if (!pskb_may_pull(skb, sizeof(struct ipv6hdr) + sizeof(struct nd_msg)))
748748
return false;

0 commit comments

Comments
 (0)