tag | line | file | source code |
apt | 328 | net/inet/arp.c | struct arp_table *apt; |
apt | 342 | net/inet/arp.c | apt = arp_table[hash]; |
apt | 343 | net/inet/arp.c | while(apt != NULL) { |
apt | 344 | net/inet/arp.c | if (apt->ip == paddr) { |
apt | 346 | net/inet/arp.c | return(apt); |
apt | 348 | net/inet/arp.c | apt = apt->next; |
apt | 359 | net/inet/arp.c | struct arp_table *apt; |
apt | 375 | net/inet/arp.c | while ((apt = *lapt) != NULL) { |
apt | 376 | net/inet/arp.c | if (apt->ip == paddr) { |
apt | 377 | net/inet/arp.c | *lapt = apt->next; |
apt | 378 | net/inet/arp.c | kfree_s(apt, sizeof(struct arp_table)); |
apt | 382 | net/inet/arp.c | lapt = &apt->next; |
apt | 392 | net/inet/arp.c | struct arp_table *apt; |
apt | 399 | net/inet/arp.c | apt = kmalloc(sizeof(struct arp_table), GFP_ATOMIC); |
apt | 400 | net/inet/arp.c | if (apt == NULL) { |
apt | 407 | net/inet/arp.c | apt->ip = paddr; |
apt | 408 | net/inet/arp.c | apt->hlen = hlen; |
apt | 409 | net/inet/arp.c | apt->htype = htype; |
apt | 410 | net/inet/arp.c | apt->flags = (ATF_INUSE | ATF_COM); /* USED and COMPLETED entry */ |
apt | 411 | net/inet/arp.c | memcpy(apt->ha, addr, hlen); |
apt | 412 | net/inet/arp.c | apt->last_used = timer_seq; |
apt | 414 | net/inet/arp.c | apt->next = arp_table[hash]; |
apt | 415 | net/inet/arp.c | arp_table[hash] = apt; |
apt | 417 | net/inet/arp.c | return(apt); |
apt | 581 | net/inet/arp.c | struct arp_table *apt; |
apt | 596 | net/inet/arp.c | apt = arp_lookup(paddr); |
apt | 597 | net/inet/arp.c | if (apt != NULL) { |
apt | 603 | net/inet/arp.c | if ((!(apt->flags & ATF_PERM)) || |
apt | 604 | net/inet/arp.c | (!before(apt->last_used, timer_seq+ARP_TIMEOUT) && apt->hlen != 0)) { |
apt | 605 | net/inet/arp.c | apt->last_used = timer_seq; |
apt | 606 | net/inet/arp.c | memcpy(haddr, apt->ha, dev->addr_len); |
apt | 610 | net/inet/arp.c | in_ntoa(apt->ip))); |
apt | 632 | net/inet/arp.c | struct arp_table *apt; |
apt | 645 | net/inet/arp.c | apt = arp_lookup(addr); |
apt | 646 | net/inet/arp.c | if (apt != NULL) { |
apt | 648 | net/inet/arp.c | apt->last_used = timer_seq; |
apt | 649 | net/inet/arp.c | memcpy(apt->ha, haddr , dev->addr_len); |
apt | 660 | net/inet/arp.c | struct arp_table *apt; |
apt | 663 | net/inet/arp.c | apt = arp_lookup(addr); |
apt | 664 | net/inet/arp.c | if (apt != NULL) { |
apt | 665 | net/inet/arp.c | apt->flags |= ATF_PERM; |
apt | 716 | net/inet/arp.c | struct arp_table *apt; |
apt | 725 | net/inet/arp.c | apt = arp_table[i]; |
apt | 727 | net/inet/arp.c | while (apt != NULL) { |
apt | 732 | net/inet/arp.c | memcpy((char *) req->arp_pa.sa_data, (char *) &apt->ip, 4); |
apt | 733 | net/inet/arp.c | req->arp_ha.sa_family = apt->htype; |
apt | 735 | net/inet/arp.c | (char *) &apt->ha, apt->hlen); |
apt | 739 | net/inet/arp.c | apt = apt->next; |
apt | 752 | net/inet/arp.c | struct arp_table *apt; |
apt | 781 | net/inet/arp.c | apt = arp_lookup(si->sin_addr.s_addr); |
apt | 782 | net/inet/arp.c | if (apt == NULL) { |
apt | 783 | net/inet/arp.c | apt = arp_create(si->sin_addr.s_addr, r.arp_ha.sa_data, hlen, htype); |
apt | 784 | net/inet/arp.c | if (apt == NULL) return(-ENOMEM); |
apt | 788 | net/inet/arp.c | memcpy((char *) &apt->ha, (char *) &r.arp_ha.sa_data, hlen); |
apt | 789 | net/inet/arp.c | apt->last_used = timer_seq; |
apt | 790 | net/inet/arp.c | apt->flags = r.arp_flags; |
apt | 801 | net/inet/arp.c | struct arp_table *apt; |
apt | 810 | net/inet/arp.c | apt = arp_lookup(si->sin_addr.s_addr); |
apt | 811 | net/inet/arp.c | if (apt == NULL) return(-ENXIO); |
apt | 814 | net/inet/arp.c | memcpy((char *) r.arp_ha.sa_data, (char *) &apt->ha, apt->hlen); |
apt | 815 | net/inet/arp.c | r.arp_ha.sa_family = apt->htype; |