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 | 1039 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1270 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1381 | net/ipv4/arp.c | entry->hh ? entry->hh->hh_refcnt : -1, |
hh | 1382 | net/ipv4/arp.c | entry->hh ? entry->hh->hh_uptodate : 0); |
hh | 1408 | net/ipv4/arp.c | struct hh_cache *hh = *hhp; |
hh | 1412 | net/ipv4/arp.c | if (hh) |
hh | 1418 | net/ipv4/arp.c | if (hh) |
hh | 1420 | net/ipv4/arp.c | hh = kmalloc(sizeof(struct hh_cache), GFP_ATOMIC); |
hh | 1421 | net/ipv4/arp.c | if (!hh) |
hh | 1424 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 1425 | net/ipv4/arp.c | hh->hh_refcnt = 1; |
hh | 1426 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 1427 | net/ipv4/arp.c | hh->hh_next = NULL; |
hh | 1428 | net/ipv4/arp.c | hh->hh_type = htype; |
hh | 1429 | net/ipv4/arp.c | *hhp = hh; |
hh | 1430 | net/ipv4/arp.c | dev->header_cache_update(hh, dev, haddr); |
hh | 1443 | net/ipv4/arp.c | for (hh = entry->hh; hh; hh=hh->hh_next) |
hh | 1444 | net/ipv4/arp.c | if (hh->hh_type == htype) |
hh | 1446 | net/ipv4/arp.c | if (hh) |
hh | 1448 | net/ipv4/arp.c | hh->hh_refcnt++; |
hh | 1449 | net/ipv4/arp.c | *hhp = hh; |
hh | 1457 | net/ipv4/arp.c | hh = kmalloc(sizeof(struct hh_cache), GFP_ATOMIC); |
hh | 1458 | net/ipv4/arp.c | if (!hh) |
hh | 1464 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 1465 | net/ipv4/arp.c | hh->hh_refcnt = 1; |
hh | 1466 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 1467 | net/ipv4/arp.c | hh->hh_next = NULL; |
hh | 1468 | net/ipv4/arp.c | hh->hh_type = htype; |
hh | 1472 | net/ipv4/arp.c | dev->header_cache_update(hh, dev, entry->ha); |
hh | 1473 | net/ipv4/arp.c | *hhp = hh; |
hh | 1475 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1476 | net/ipv4/arp.c | entry->hh = hh; |
hh | 1477 | net/ipv4/arp.c | hh->hh_refcnt++; |
hh | 1493 | net/ipv4/arp.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 1504 | net/ipv4/arp.c | entry->hh = hh; |
hh | 1505 | net/ipv4/arp.c | ATOMIC_INCR(&hh->hh_refcnt); |
hh | 1518 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1533 | net/ipv4/arp.c | *hhp = hh; |
hh | 1542 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 1572 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=hh->hh_next) |
hh | 1573 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1593 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=next) |
hh | 1595 | net/ipv4/arp.c | next = hh->hh_next; |
hh | 1596 | net/ipv4/arp.c | hh->hh_next = entry1->hh; |
hh | 1597 | net/ipv4/arp.c | entry1->hh = hh; |
hh | 1598 | net/ipv4/arp.c | hh->hh_arp = (void*)entry1; |
hh | 1600 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1726 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 94 | net/ipv4/ip_forward.c | struct hh_cache *hh = NULL; |
hh | 202 | net/ipv4/ip_forward.c | hh = rt->rt_hh; |
hh | 324 | net/ipv4/ip_forward.c | if (hh) |
hh | 326 | net/ipv4/ip_forward.c | memcpy(skb_push(skb, dev2->hard_header_len), hh->hh_data, dev2->hard_header_len); |
hh | 327 | net/ipv4/ip_forward.c | if (!hh->hh_uptodate) |
hh | 584 | net/ipv4/ip_output.c | struct hh_cache * hh=NULL; |
hh | 618 | net/ipv4/ip_output.c | hh = rt->rt_hh; |
hh | 664 | net/ipv4/ip_output.c | if (hh) |
hh | 667 | net/ipv4/ip_output.c | memcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len); |
hh | 668 | net/ipv4/ip_output.c | if (!hh->hh_uptodate) |
hh | 840 | net/ipv4/ip_output.c | if (hh) |
hh | 843 | net/ipv4/ip_output.c | memcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len); |
hh | 844 | net/ipv4/ip_output.c | if (!hh->hh_uptodate) |
hh | 958 | net/ipv4/route.c | struct hh_cache * hh = rt->rt_hh; |
hh | 960 | net/ipv4/route.c | if (hh && !--hh->hh_refcnt) |
hh | 963 | net/ipv4/route.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 993 | net/ipv4/route.c | struct hh_cache * hh = rt->rt_hh; |
hh | 999 | net/ipv4/route.c | if (hh && !--hh->hh_refcnt) |
hh | 1002 | net/ipv4/route.c | kfree_s(hh, sizeof(struct hh_cache)); |