Neighbor subsystem of linux protocol stack (related process 5)

  
 

int arp_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt){struct arphdr *arp;/* ARP header, plus 2 device addresses, plus 2 IP addresses. *///Determine whether skb contains sufficient data if (pskb_may_pull (skb, (sizeof (struct arphdr) + (2 * dev- & gt;! addr_len) + (2 * sizeof (u32))))) goto freeskb; arp = skb- & gt; nh.arph ;if (arp->ar_hln != dev->addr_len

Copyright © Windows knowledge All Rights Reserved