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 | 183 | 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 | 130 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 319 | net/ipv4/arp.c | struct hh_cache *hh, *next; |
hh | 327 | net/ipv4/arp.c | for (hh = entry->hh; hh; hh = next) |
hh | 329 | net/ipv4/arp.c | next = hh->hh_next; |
hh | 330 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 331 | net/ipv4/arp.c | if (!--hh->hh_refcnt) |
hh | 332 | net/ipv4/arp.c | kfree_s(hh, sizeof(struct(struct hh_cache))); |
hh | 346 | net/ipv4/arp.c | struct hh_cache *hh, **hhp; |
hh | 349 | net/ipv4/arp.c | hhp = &entry->hh; |
hh | 350 | net/ipv4/arp.c | while ((hh=*hhp) != NULL) |
hh | 352 | net/ipv4/arp.c | if (hh->hh_refcnt == 1) |
hh | 354 | net/ipv4/arp.c | *hhp = hh->hh_next; |
hh | 355 | net/ipv4/arp.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 358 | net/ipv4/arp.c | count += hh->hh_refcnt-1; |
hh | 359 | net/ipv4/arp.c | hhp = &hh->hh_next; |
hh | 371 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 373 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=hh->hh_next) |
hh | 374 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 383 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 385 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=hh->hh_next) |
hh | 386 | net/ipv4/arp.c | entry->dev->header_cache_update(hh, entry->dev, entry->ha); |
hh | 1016 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1239 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1350 | net/ipv4/arp.c | entry->hh ? entry->hh->hh_refcnt : -1, |
hh | 1351 | net/ipv4/arp.c | entry->hh ? entry->hh->hh_uptodate : 0); |
hh | 1377 | net/ipv4/arp.c | struct hh_cache *hh = *hhp; |
hh | 1381 | net/ipv4/arp.c | if (hh) |
hh | 1387 | net/ipv4/arp.c | if (hh) |
hh | 1389 | net/ipv4/arp.c | hh = kmalloc(sizeof(struct hh_cache), GFP_ATOMIC); |
hh | 1390 | net/ipv4/arp.c | if (!hh) |
hh | 1393 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 1394 | net/ipv4/arp.c | hh->hh_refcnt = 1; |
hh | 1395 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 1396 | net/ipv4/arp.c | hh->hh_next = NULL; |
hh | 1397 | net/ipv4/arp.c | hh->hh_type = htype; |
hh | 1398 | net/ipv4/arp.c | *hhp = hh; |
hh | 1399 | net/ipv4/arp.c | dev->header_cache_update(hh, dev, haddr); |
hh | 1412 | net/ipv4/arp.c | for (hh = entry->hh; hh; hh=hh->hh_next) |
hh | 1413 | net/ipv4/arp.c | if (hh->hh_type == htype) |
hh | 1415 | net/ipv4/arp.c | if (hh) |
hh | 1417 | net/ipv4/arp.c | hh->hh_refcnt++; |
hh | 1418 | net/ipv4/arp.c | *hhp = hh; |
hh | 1426 | net/ipv4/arp.c | hh = kmalloc(sizeof(struct hh_cache), GFP_ATOMIC); |
hh | 1427 | net/ipv4/arp.c | if (!hh) |
hh | 1433 | net/ipv4/arp.c | hh->hh_uptodate = 0; |
hh | 1434 | net/ipv4/arp.c | hh->hh_refcnt = 1; |
hh | 1435 | net/ipv4/arp.c | hh->hh_arp = NULL; |
hh | 1436 | net/ipv4/arp.c | hh->hh_next = NULL; |
hh | 1437 | net/ipv4/arp.c | hh->hh_type = htype; |
hh | 1441 | net/ipv4/arp.c | dev->header_cache_update(hh, dev, entry->ha); |
hh | 1442 | net/ipv4/arp.c | *hhp = hh; |
hh | 1444 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1445 | net/ipv4/arp.c | entry->hh = hh; |
hh | 1446 | net/ipv4/arp.c | hh->hh_refcnt++; |
hh | 1462 | net/ipv4/arp.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 1473 | net/ipv4/arp.c | entry->hh = hh; |
hh | 1474 | net/ipv4/arp.c | ATOMIC_INCR(&hh->hh_refcnt); |
hh | 1487 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1502 | net/ipv4/arp.c | *hhp = hh; |
hh | 1511 | net/ipv4/arp.c | struct hh_cache *hh; |
hh | 1541 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=hh->hh_next) |
hh | 1542 | net/ipv4/arp.c | hh->hh_arp = (void*)entry; |
hh | 1562 | net/ipv4/arp.c | for (hh=entry->hh; hh; hh=next) |
hh | 1564 | net/ipv4/arp.c | next = hh->hh_next; |
hh | 1565 | net/ipv4/arp.c | hh->hh_next = entry1->hh; |
hh | 1566 | net/ipv4/arp.c | entry1->hh = hh; |
hh | 1567 | net/ipv4/arp.c | hh->hh_arp = (void*)entry1; |
hh | 1569 | net/ipv4/arp.c | entry->hh = NULL; |
hh | 1699 | 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 | 951 | net/ipv4/route.c | struct hh_cache * hh = rt->rt_hh; |
hh | 953 | net/ipv4/route.c | if (hh && !--hh->hh_refcnt) |
hh | 956 | net/ipv4/route.c | kfree_s(hh, sizeof(struct hh_cache)); |
hh | 986 | net/ipv4/route.c | struct hh_cache * hh = rt->rt_hh; |
hh | 992 | net/ipv4/route.c | if (hh && !--hh->hh_refcnt) |
hh | 995 | net/ipv4/route.c | kfree_s(hh, sizeof(struct hh_cache)); |