arp_table is only used within LwIP.
 
Symbols
loading...
Files
loading...

arp_table variable

Syntax

static struct etharp_entry arp_table[ARP_TABLE_SIZE];

References

LocationReferrerText
etharp.c:105
static struct etharp_entry arp_table[ARP_TABLE_SIZE];
etharp.c:173etharp_free_entry()
if (arp_table[i].q != NULL) {
etharp.c:176etharp_free_entry()
free_etharp_q(arp_table[i].q);
etharp.c:177etharp_free_entry()
arp_table[i].q = NULL;
etharp.c:180etharp_free_entry()
arp_table[i].state = ETHARP_STATE_EMPTY;
etharp.c:204etharp_tmr()
u8_t state = arp_table[i].state;
etharp.c:210etharp_tmr()
arp_table[i].ctime++;
etharp.c:211etharp_tmr()
if ((arp_table[i].ctime >= ARP_MAXAGE) ||
etharp.c:212etharp_tmr()
((arp_table[i].state == ETHARP_STATE_PENDING) &&
etharp.c:213etharp_tmr()
(arp_table[i].ctime >= ARP_MAXPENDING))) {
etharp.c:219etharp_tmr()
} else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) {
etharp.c:221etharp_tmr()
etharp.c:222etharp_tmr()
} else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) {
etharp.c:225etharp_tmr()
arp_table[i].state = ETHARP_STATE_STABLE;
etharp.c:226etharp_tmr()
} else if (arp_table[i].state == ETHARP_STATE_PENDING) {
etharp.c:228etharp_tmr()
etharp_request(arp_table[i].netif, &arp_table[i].ipaddr);
etharp.c:284etharp_find_entry()
u8_t state = arp_table[i].state;
etharp.c:294etharp_find_entry()
if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr)
etharp.c:296etharp_find_entry()
&& ((netif == NULL) || (netif == arp_table[i].netif))
etharp.c:306etharp_find_entry()
if (arp_table[i].q != NULL) {
etharp.c:307etharp_find_entry()
if (arp_table[i].ctime >= age_queue) {
etharp.c:309etharp_find_entry()
age_queue = arp_table[i].ctime;
etharp.c:314etharp_find_entry()
if (arp_table[i].ctime >= age_pending) {
etharp.c:316etharp_find_entry()
age_pending = arp_table[i].ctime;
etharp.c:327etharp_find_entry()
if (arp_table[i].ctime >= age_stable) {
etharp.c:329etharp_find_entry()
age_stable = arp_table[i].ctime;
etharp.c:365etharp_find_entry()
LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL);
etharp.c:389etharp_find_entry()
arp_table[i].state == ETHARP_STATE_EMPTY);
etharp.c:394etharp_find_entry()
ip4_addr_copy(arp_table[i].ipaddr, *ipaddr);
etharp.c:396etharp_find_entry()
arp_table[i].ctime = 0;
etharp.c:398etharp_find_entry()
arp_table[i].netif = netif;
etharp.c:455etharp_update_arp_entry()
arp_table[i].state = ETHARP_STATE_STABLE;
etharp.c:459etharp_update_arp_entry()
arp_table[i].netif = netif;
etharp.c:465etharp_update_arp_entry()
etharp.c:467etharp_update_arp_entry()
arp_table[i].ctime = 0;
etharp.c:481etharp_update_arp_entry()
if (arp_table[i].q != NULL) {
etharp.c:482etharp_update_arp_entry()
struct pbuf *p = arp_table[i].q;
etharp.c:483etharp_update_arp_entry()
arp_table[i].q = NULL;
etharp.c:564etharp_cleanup_netif()
u8_t state = arp_table[i].state;
etharp.c:565etharp_cleanup_netif()
if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) {
etharp.c:594etharp_find_addr()
if ((i >= 0) && (arp_table[i].state >= ETHARP_STATE_STABLE)) {
etharp.c:595etharp_find_addr()
*eth_ret = &arp_table[i].ethaddr;
etharp.c:596etharp_find_addr()
*ip_ret = &arp_table[i].ipaddr;
etharp.c:618etharp_get_entry()
if ((i < ARP_TABLE_SIZE) && (arp_table[i].state >= ETHARP_STATE_STABLE)) {
etharp.c:619etharp_get_entry()
*ipaddr = &arp_table[i].ipaddr;
etharp.c:620etharp_get_entry()
*netif = arp_table[i].netif;
etharp.c:621etharp_get_entry()
*eth_ret = &arp_table[i].ethaddr;
etharp.c:751etharp_output_to_arp_index()
etharp.c:755etharp_output_to_arp_index()
if (arp_table[arp_idx].state == ETHARP_STATE_STABLE) {
etharp.c:756etharp_output_to_arp_index()
etharp.c:758etharp_output_to_arp_index()
if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) {
etharp.c:759etharp_output_to_arp_index()
etharp.c:761etharp_output_to_arp_index()
} else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) {
etharp.c:763etharp_output_to_arp_index()
if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) {
etharp.c:764etharp_output_to_arp_index()
etharp.c:769etharp_output_to_arp_index()
return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP);
etharp.c:861etharp_output()
etharp.c:863etharp_output()
(arp_table[etharp_cached_entry].netif == netif) &&
etharp.c:865etharp_output()
(ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) {
etharp.c:878etharp_output()
if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
etharp.c:880etharp_output()
(arp_table[i].netif == netif) &&
etharp.c:882etharp_output()
(ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) {
etharp.c:965etharp_query()
if (arp_table[i].state == ETHARP_STATE_EMPTY) {
etharp.c:967etharp_query()
arp_table[i].state = ETHARP_STATE_PENDING;
etharp.c:969etharp_query()
arp_table[i].netif = netif;
etharp.c:974etharp_query()
((arp_table[i].state == ETHARP_STATE_PENDING) ||
etharp.c:975etharp_query()
(arp_table[i].state >= ETHARP_STATE_STABLE)));
etharp.c:995etharp_query()
if (arp_table[i].state >= ETHARP_STATE_STABLE) {
etharp.c:999etharp_query()
result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP);
etharp.c:1001etharp_query()
} else if (arp_table[i].state == ETHARP_STATE_PENDING) {
etharp.c:1068etharp_query()
if (arp_table[i].q != NULL) {
etharp.c:1070etharp_query()
pbuf_free(arp_table[i].q);
etharp.c:1072etharp_query()
arp_table[i].q = p;