Skip to content

Commit

Permalink
netpoll: Should handle ETH_P_ARP other than ETH_P_IP in netpoll_neigh…
Browse files Browse the repository at this point in the history
…_reply

The received ARP request type in the Ethernet packet head is ETH_P_ARP other than ETH_P_IP.

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

Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sonicz authored and davem330 committed Sep 12, 2013
1 parent c7cb020 commit b0dd663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b0dd663

Please sign in to comment.