• Home
  • Raw
  • Download

Lines Matching refs:arp

81 	struct arp_entry *arp;  in arp_find_entry()  local
83 for ( arp = arp_table ; arp < arp_table_end ; arp++ ) { in arp_find_entry()
84 if ( ( arp->ll_protocol == ll_protocol ) && in arp_find_entry()
85 ( arp->net_protocol == net_protocol ) && in arp_find_entry()
86 ( memcmp ( arp->net_addr, net_addr, in arp_find_entry()
88 return arp; in arp_find_entry()
117 const struct arp_entry *arp; in arp_resolve() local
123 arp = arp_find_entry ( ll_protocol, net_protocol, dest_net_addr ); in arp_resolve()
124 if ( arp ) { in arp_resolve()
126 net_protocol->name, net_protocol->ntoa ( arp->net_addr ), in arp_resolve()
127 ll_protocol->name, ll_protocol->ntoa ( arp->ll_addr ) ); in arp_resolve()
128 memcpy ( dest_ll_addr, arp->ll_addr, ll_protocol->ll_addr_len); in arp_resolve()
203 struct arp_entry *arp; in arp_rx() local
220 arp = arp_find_entry ( ll_protocol, net_protocol, in arp_rx()
222 if ( arp ) { in arp_rx()
223 memcpy ( arp->ll_addr, arp_sender_ha ( arphdr ), in arp_rx()
227 net_protocol->name, net_protocol->ntoa ( arp->net_addr ), in arp_rx()
228 ll_protocol->name, ll_protocol->ntoa ( arp->ll_addr ) ); in arp_rx()
237 arp = &arp_table[next_new_arp_entry++ % NUM_ARP_ENTRIES]; in arp_rx()
238 arp->ll_protocol = ll_protocol; in arp_rx()
239 arp->net_protocol = net_protocol; in arp_rx()
240 memcpy ( arp->ll_addr, arp_sender_ha ( arphdr ), in arp_rx()
242 memcpy ( arp->net_addr, arp_sender_pa ( arphdr ), in arp_rx()
245 net_protocol->name, net_protocol->ntoa ( arp->net_addr ), in arp_rx()
246 ll_protocol->name, ll_protocol->ntoa ( arp->ll_addr ) ); in arp_rx()