netpoll: Should handle ETH_P_ARP other than ETH_P_IP in netpoll_neigh_reply
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 11 Sep 2013 03:31:53 +0000 (11:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Sep 2013 21:19:14 +0000 (17:19 -0400)
The received ARP request type in the Ethernet packet head is ETH_P_ARP other than ETH_P_IP.

[ Bug introduced by commit b7394d2429c198b1da3d46ac39192e891029ec0f
  ("netpoll: prepare for ipv6") ]

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c

index 2c637e9..c3c7b27 100644 (file)
@@ -550,7 +550,7 @@ static void netpoll_neigh_reply(struct sk_buff *skb, struct netpoll_info *npinfo
                return;
 
        proto = ntohs(eth_hdr(skb)->h_proto);
-       if (proto == ETH_P_IP) {
+       if (proto == ETH_P_ARP) {
                struct arphdr *arp;
                unsigned char *arp_ptr;
                /* No arp on this interface */