tag | line | file | source code |
hh | 39 | include/linux/etherdevice.h | extern void eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr); |
hh | 185 | include/linux/netdevice.h | void (*header_cache_update)(struct hh_cache *hh, struct device *dev, unsigned char * haddr); |
hh | 16 | include/net/arp.h | extern int arp_update_cache(struct hh_cache * hh); |
hh | 229 | net/ethernet/eth.c | struct hh_cache *hh; |
hh | 238 | net/ethernet/eth.c | if ((hh=*hhp) != NULL) |
hh | 240 | net/ethernet/eth.c | memcpy(hh->hh_data+6, dev->dev_addr, ETH_ALEN); |
hh | 241 | net/ethernet/eth.c | hh->hh_data[12] = htype>>8; |
hh | 242 | net/ethernet/eth.c | hh->hh_data[13] = htype&0xFF; |
hh | 250 | net/ethernet/eth.c | void eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr) |
hh | 252 | net/ethernet/eth.c | if (hh->hh_type != ETH_P_IP) |
hh | 254 | net/ethernet/eth.c | printk("eth_header_cache_update: %04x cache is not implemented\n", hh->hh_type); |
hh | 257 | net/ethernet/eth.c | memcpy(hh->hh_data, haddr, ETH_ALEN); |
hh | 258 | net/ethernet/eth.c | hh->hh_uptodate = 1; |
hh | 133 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 322 | net/ipv4/arp.c | struct hh_cache *hh, *next; |
hh | 330 | net/ipv4/arp.c | for (hh = entry->hh; hh; hh = next) |
hh | 332 | net/ipv4/arp.c | next = hh->hh_next; |
hh | 333 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 334 | net/ipv4/arp.c | if (!--hh->hh_refcnt) |
hh | 335 | net/ipv4/arp.c | kfree_s(hh, sizeof(struct(struct hh_cache))); |
hh | 349 | net/ipv4/arp.c | struct hh_cache *hh, **hhp; |
hh | 352 | net/ipv4/arp.c | hhp = &entry->hh; |
hh | 353 | net/ipv4/arp.c | while ((hh=*hhp) != NULL) |
hh | 355 | net/ipv4/arp.c | if (hh->hh_refcnt == 1) |
hh | 357 | net/ipv4/arp.c | *hhp = hh->hh_next; |
hh | 358 | net/ipv4/arp.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 361 | net/ipv4/arp.c | count += hh->hh_refcnt-1; |
hh | 362 | net/ipv4/arp.c | hhp = &hh->hh_next; |
hh | 374 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 376 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=hh->hh_next) |
hh | 377 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 386 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 388 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=hh->hh_next) |
hh | 389 | net/ipv4/arp.c | entry->dev->header_cache_update(hh, entry->dev, entry->ha); |
hh | 1032 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1263 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1374 | net/ipv4/arp.c | entry->hh ? entry->hh->hh_refcnt : -1, |
hh | 1375 | net/ipv4/arp.c | entry->hh ? entry->hh->hh_uptodate : 0); |
hh | 1401 | net/ipv4/arp.c | struct hh_cache *hh = *hhp; |
hh | 1405 | net/ipv4/arp.c | if (hh) |
hh | 1411 | net/ipv4/arp.c | if (hh) |
hh | 1413 | net/ipv4/arp.c | hh = kmalloc(sizeof(struct hh_cache), GFP_ATOMIC); |
hh | 1414 | net/ipv4/arp.c | if (!hh) |
hh | 1417 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 1418 | net/ipv4/arp.c | hh->hh_refcnt = 1; |
hh | 1419 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 1420 | net/ipv4/arp.c | hh->hh_next = NULL; |
hh | 1421 | net/ipv4/arp.c | hh->hh_type = htype; |
hh | 1422 | net/ipv4/arp.c | *hhp = hh; |
hh | 1423 | net/ipv4/arp.c | dev->header_cache_update(hh, dev, haddr); |
hh | 1436 | net/ipv4/arp.c | for (hh = entry->hh; hh; hh=hh->hh_next) |
hh | 1437 | net/ipv4/arp.c | if (hh->hh_type == htype) |
hh | 1439 | net/ipv4/arp.c | if (hh) |
hh | 1441 | net/ipv4/arp.c | hh->hh_refcnt++; |
hh | 1442 | net/ipv4/arp.c | *hhp = hh; |
hh | 1450 | net/ipv4/arp.c | hh = kmalloc(sizeof(struct hh_cache), GFP_ATOMIC); |
hh | 1451 | net/ipv4/arp.c | if (!hh) |
hh | 1457 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 1458 | net/ipv4/arp.c | hh->hh_refcnt = 1; |
hh | 1459 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 1460 | net/ipv4/arp.c | hh->hh_next = NULL; |
hh | 1461 | net/ipv4/arp.c | hh->hh_type = htype; |
hh | 1465 | net/ipv4/arp.c | dev->header_cache_update(hh, dev, entry->ha); |
hh | 1466 | net/ipv4/arp.c | *hhp = hh; |
hh | 1468 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1469 | net/ipv4/arp.c | entry->hh = hh; |
hh | 1470 | net/ipv4/arp.c | hh->hh_refcnt++; |
hh | 1486 | net/ipv4/arp.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 1497 | net/ipv4/arp.c | entry->hh = hh; |
hh | 1498 | net/ipv4/arp.c | ATOMIC_INCR(&hh->hh_refcnt); |
hh | 1511 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1526 | net/ipv4/arp.c | *hhp = hh; |
hh | 1535 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 1565 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=hh->hh_next) |
hh | 1566 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1586 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=next) |
hh | 1588 | net/ipv4/arp.c | next = hh->hh_next; |
hh | 1589 | net/ipv4/arp.c | hh->hh_next = entry1->hh; |
hh | 1590 | net/ipv4/arp.c | entry1->hh = hh; |
hh | 1591 | net/ipv4/arp.c | hh->hh_arp = (void*)entry1; |
hh | 1593 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1719 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 93 | net/ipv4/ip_forward.c | struct hh_cache *hh = NULL; |
hh | 201 | net/ipv4/ip_forward.c | hh = rt->rt_hh; |
hh | 320 | net/ipv4/ip_forward.c | if (hh) |
hh | 322 | net/ipv4/ip_forward.c | memcpy(skb_push(skb, dev2->hard_header_len), hh->hh_data, dev2->hard_header_len); |
hh | 323 | net/ipv4/ip_forward.c | if (!hh->hh_uptodate) |
hh | 583 | net/ipv4/ip_output.c | struct hh_cache * hh=NULL; |
hh | 617 | net/ipv4/ip_output.c | hh = rt->rt_hh; |
hh | 662 | net/ipv4/ip_output.c | if (hh) |
hh | 665 | net/ipv4/ip_output.c | memcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len); |
hh | 666 | net/ipv4/ip_output.c | if (!hh->hh_uptodate) |
hh | 838 | net/ipv4/ip_output.c | if (hh) |
hh | 841 | net/ipv4/ip_output.c | memcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len); |
hh | 842 | net/ipv4/ip_output.c | if (!hh->hh_uptodate) |
hh | 954 | net/ipv4/route.c | struct hh_cache * hh = rt->rt_hh; |
hh | 956 | net/ipv4/route.c | if (hh && !--hh->hh_refcnt) |
hh | 959 | net/ipv4/route.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 989 | net/ipv4/route.c | struct hh_cache * hh = rt->rt_hh; |
hh | 995 | net/ipv4/route.c | if (hh && !--hh->hh_refcnt) |
hh | 998 | net/ipv4/route.c | kfree_s(hh, sizeof(struct hh_cache)); |