mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
netpoll: Should handle ETH_P_ARP other than ETH_P_IP in netpoll_neigh_reply
[ Upstream commitb0dd663b60] The received ARP request type in the Ethernet packet head is ETH_P_ARP other than ETH_P_IP. [ Bug introduced by commitb7394d2429("netpoll: prepare for ipv6") ] Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b3483fd035
commit
f6dbceef21
@@ -550,7 +550,7 @@ static void netpoll_neigh_reply(struct sk_buff *skb, struct netpoll_info *npinfo
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
proto = ntohs(eth_hdr(skb)->h_proto);
|
proto = ntohs(eth_hdr(skb)->h_proto);
|
||||||
if (proto == ETH_P_IP) {
|
if (proto == ETH_P_ARP) {
|
||||||
struct arphdr *arp;
|
struct arphdr *arp;
|
||||||
unsigned char *arp_ptr;
|
unsigned char *arp_ptr;
|
||||||
/* No arp on this interface */
|
/* No arp on this interface */
|
||||||
|
|||||||
Reference in New Issue
Block a user