diff options
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 01d0e8dd17d8..7110779a0244 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -721,7 +721,7 @@ static int arp_process(struct sk_buff *skb) | |||
721 | if (in_dev == NULL) | 721 | if (in_dev == NULL) |
722 | goto out; | 722 | goto out; |
723 | 723 | ||
724 | arp = skb->nh.arph; | 724 | arp = arp_hdr(skb); |
725 | 725 | ||
726 | switch (dev_type) { | 726 | switch (dev_type) { |
727 | default: | 727 | default: |
@@ -937,7 +937,7 @@ static int arp_rcv(struct sk_buff *skb, struct net_device *dev, | |||
937 | (2 * sizeof(u32))))) | 937 | (2 * sizeof(u32))))) |
938 | goto freeskb; | 938 | goto freeskb; |
939 | 939 | ||
940 | arp = skb->nh.arph; | 940 | arp = arp_hdr(skb); |
941 | if (arp->ar_hln != dev->addr_len || | 941 | if (arp->ar_hln != dev->addr_len || |
942 | dev->flags & IFF_NOARP || | 942 | dev->flags & IFF_NOARP || |
943 | skb->pkt_type == PACKET_OTHERHOST || | 943 | skb->pkt_type == PACKET_OTHERHOST || |