LwIP
arp_table
is only used within LwIP.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
LwIP
arp_table
arp_table variable
Syntax
from
etharp.c:105
static
struct
etharp_entry
arp_table
[
ARP_TABLE_SIZE
]
;
References
Location
Referrer
Text
etharp.c:105
static
struct
etharp_entry
arp_table
[
ARP_TABLE_SIZE
]
;
etharp.c:173
etharp_free_entry()
if
(
arp_table
[
i
]
.
q
!=
NULL
)
{
etharp.c:176
etharp_free_entry()
free_etharp_q
(
arp_table
[
i
]
.
q
)
;
etharp.c:177
etharp_free_entry()
arp_table
[
i
]
.
q
=
NULL
;
etharp.c:180
etharp_free_entry()
arp_table
[
i
]
.
state
=
ETHARP_STATE_EMPTY
;
etharp.c:204
etharp_tmr()
u8_t
state
=
arp_table
[
i
]
.
state
;
etharp.c:210
etharp_tmr()
arp_table
[
i
]
.
ctime
++
;
etharp.c:211
etharp_tmr()
if
(
(
arp_table
[
i
]
.
ctime
>=
ARP_MAXAGE
)
||
etharp.c:212
etharp_tmr()
(
(
arp_table
[
i
]
.
state
==
ETHARP_STATE_PENDING
)
&&
etharp.c:213
etharp_tmr()
(
arp_table
[
i
]
.
ctime
>=
ARP_MAXPENDING
)
)
)
{
etharp.c:219
etharp_tmr()
}
else
if
(
arp_table
[
i
]
.
state
==
ETHARP_STATE_STABLE_REREQUESTING_1
)
{
etharp.c:221
etharp_tmr()
arp_table
[
i
]
.
state
=
ETHARP_STATE_STABLE_REREQUESTING_2
;
etharp.c:222
etharp_tmr()
}
else
if
(
arp_table
[
i
]
.
state
==
ETHARP_STATE_STABLE_REREQUESTING_2
)
{
etharp.c:225
etharp_tmr()
arp_table
[
i
]
.
state
=
ETHARP_STATE_STABLE
;
etharp.c:226
etharp_tmr()
}
else
if
(
arp_table
[
i
]
.
state
==
ETHARP_STATE_PENDING
)
{
etharp.c:228
etharp_tmr()
etharp_request
(
arp_table
[
i
]
.
netif
,
&
arp_table
[
i
]
.
ipaddr
)
;
etharp.c:284
etharp_find_entry()
u8_t
state
=
arp_table
[
i
]
.
state
;
etharp.c:294
etharp_find_entry()
if
(
ipaddr
&&
ip4_addr_cmp
(
ipaddr
,
&
arp_table
[
i
]
.
ipaddr
)
etharp.c:296
etharp_find_entry()
&&
(
(
netif
==
NULL
)
||
(
netif
==
arp_table
[
i
]
.
netif
)
)
etharp.c:306
etharp_find_entry()
if
(
arp_table
[
i
]
.
q
!=
NULL
)
{
etharp.c:307
etharp_find_entry()
if
(
arp_table
[
i
]
.
ctime
>=
age_queue
)
{
etharp.c:309
etharp_find_entry()
age_queue
=
arp_table
[
i
]
.
ctime
;
etharp.c:314
etharp_find_entry()
if
(
arp_table
[
i
]
.
ctime
>=
age_pending
)
{
etharp.c:316
etharp_find_entry()
age_pending
=
arp_table
[
i
]
.
ctime
;
etharp.c:327
etharp_find_entry()
if
(
arp_table
[
i
]
.
ctime
>=
age_stable
)
{
etharp.c:329
etharp_find_entry()
age_stable
=
arp_table
[
i
]
.
ctime
;
etharp.c:365
etharp_find_entry()
LWIP_ASSERT
(
"arp_table[i].q == NULL"
,
arp_table
[
i
]
.
q
==
NULL
)
;
etharp.c:389
etharp_find_entry()
arp_table
[
i
]
.
state
==
ETHARP_STATE_EMPTY
)
;
etharp.c:394
etharp_find_entry()
ip4_addr_copy
(
arp_table
[
i
]
.
ipaddr
,
*
ipaddr
)
;
etharp.c:396
etharp_find_entry()
arp_table
[
i
]
.
ctime
=
0
;
etharp.c:398
etharp_find_entry()
arp_table
[
i
]
.
netif
=
netif
;
etharp.c:455
etharp_update_arp_entry()
arp_table
[
i
]
.
state
=
ETHARP_STATE_STABLE
;
etharp.c:459
etharp_update_arp_entry()
arp_table
[
i
]
.
netif
=
netif
;
etharp.c:465
etharp_update_arp_entry()
SMEMCPY
(
&
arp_table
[
i
]
.
ethaddr
,
ethaddr
,
ETH_HWADDR_LEN
)
;
etharp.c:467
etharp_update_arp_entry()
arp_table
[
i
]
.
ctime
=
0
;
etharp.c:481
etharp_update_arp_entry()
if
(
arp_table
[
i
]
.
q
!=
NULL
)
{
etharp.c:482
etharp_update_arp_entry()
struct
pbuf
*
p
=
arp_table
[
i
]
.
q
;
etharp.c:483
etharp_update_arp_entry()
arp_table
[
i
]
.
q
=
NULL
;
etharp.c:564
etharp_cleanup_netif()
u8_t
state
=
arp_table
[
i
]
.
state
;
etharp.c:565
etharp_cleanup_netif()
if
(
(
state
!=
ETHARP_STATE_EMPTY
)
&&
(
arp_table
[
i
]
.
netif
==
netif
)
)
{
etharp.c:594
etharp_find_addr()
if
(
(
i
>=
0
)
&&
(
arp_table
[
i
]
.
state
>=
ETHARP_STATE_STABLE
)
)
{
etharp.c:595
etharp_find_addr()
*
eth_ret
=
&
arp_table
[
i
]
.
ethaddr
;
etharp.c:596
etharp_find_addr()
*
ip_ret
=
&
arp_table
[
i
]
.
ipaddr
;
etharp.c:618
etharp_get_entry()
if
(
(
i
<
ARP_TABLE_SIZE
)
&&
(
arp_table
[
i
]
.
state
>=
ETHARP_STATE_STABLE
)
)
{
etharp.c:619
etharp_get_entry()
*
ipaddr
=
&
arp_table
[
i
]
.
ipaddr
;
etharp.c:620
etharp_get_entry()
*
netif
=
arp_table
[
i
]
.
netif
;
etharp.c:621
etharp_get_entry()
*
eth_ret
=
&
arp_table
[
i
]
.
ethaddr
;
etharp.c:751
etharp_output_to_arp_index()
arp_table
[
arp_idx
]
.
state
>=
ETHARP_STATE_STABLE
)
;
etharp.c:755
etharp_output_to_arp_index()
if
(
arp_table
[
arp_idx
]
.
state
==
ETHARP_STATE_STABLE
)
{
etharp.c:756
etharp_output_to_arp_index()
if
(
arp_table
[
arp_idx
]
.
ctime
>=
ARP_AGE_REREQUEST_USED_BROADCAST
)
{
etharp.c:758
etharp_output_to_arp_index()
if
(
etharp_request
(
netif
,
&
arp_table
[
arp_idx
]
.
ipaddr
)
==
ERR_OK
)
{
etharp.c:759
etharp_output_to_arp_index()
arp_table
[
arp_idx
]
.
state
=
ETHARP_STATE_STABLE_REREQUESTING_1
;
etharp.c:761
etharp_output_to_arp_index()
}
else
if
(
arp_table
[
arp_idx
]
.
ctime
>=
ARP_AGE_REREQUEST_USED_UNICAST
)
{
etharp.c:763
etharp_output_to_arp_index()
if
(
etharp_request_dst
(
netif
,
&
arp_table
[
arp_idx
]
.
ipaddr
,
&
arp_table
[
arp_idx
]
.
ethaddr
)
==
ERR_OK
)
{
etharp.c:764
etharp_output_to_arp_index()
arp_table
[
arp_idx
]
.
state
=
ETHARP_STATE_STABLE_REREQUESTING_1
;
etharp.c:769
etharp_output_to_arp_index()
return
ethernet_output
(
netif
,
q
,
(
struct
eth_addr
*
)
(
netif
->
hwaddr
)
,
&
arp_table
[
arp_idx
]
.
ethaddr
,
ETHTYPE_IP
)
;
etharp.c:861
etharp_output()
if
(
(
arp_table
[
etharp_cached_entry
]
.
state
>=
ETHARP_STATE_STABLE
)
&&
etharp.c:863
etharp_output()
(
arp_table
[
etharp_cached_entry
]
.
netif
==
netif
)
&&
etharp.c:865
etharp_output()
(
ip4_addr_cmp
(
dst_addr
,
&
arp_table
[
etharp_cached_entry
]
.
ipaddr
)
)
)
{
etharp.c:878
etharp_output()
if
(
(
arp_table
[
i
]
.
state
>=
ETHARP_STATE_STABLE
)
&&
etharp.c:880
etharp_output()
(
arp_table
[
i
]
.
netif
==
netif
)
&&
etharp.c:882
etharp_output()
(
ip4_addr_cmp
(
dst_addr
,
&
arp_table
[
i
]
.
ipaddr
)
)
)
{
etharp.c:965
etharp_query()
if
(
arp_table
[
i
]
.
state
==
ETHARP_STATE_EMPTY
)
{
etharp.c:967
etharp_query()
arp_table
[
i
]
.
state
=
ETHARP_STATE_PENDING
;
etharp.c:969
etharp_query()
arp_table
[
i
]
.
netif
=
netif
;
etharp.c:974
etharp_query()
(
(
arp_table
[
i
]
.
state
==
ETHARP_STATE_PENDING
)
||
etharp.c:975
etharp_query()
(
arp_table
[
i
]
.
state
>=
ETHARP_STATE_STABLE
)
)
)
;
etharp.c:995
etharp_query()
if
(
arp_table
[
i
]
.
state
>=
ETHARP_STATE_STABLE
)
{
etharp.c:999
etharp_query()
result
=
ethernet_output
(
netif
,
q
,
srcaddr
,
&
(
arp_table
[
i
]
.
ethaddr
)
,
ETHTYPE_IP
)
;
etharp.c:1001
etharp_query()
}
else
if
(
arp_table
[
i
]
.
state
==
ETHARP_STATE_PENDING
)
{
etharp.c:1068
etharp_query()
if
(
arp_table
[
i
]
.
q
!=
NULL
)
{
etharp.c:1070
etharp_query()
pbuf_free
(
arp_table
[
i
]
.
q
)
;
etharp.c:1072
etharp_query()
arp_table
[
i
]
.
q
=
p
;
Data Use
Functions reading
arp_table
arp_table
etharp_free_entry()
etharp_tmr()
etharp_find_entry()
etharp_update_arp_entry()
etharp_cleanup_netif()
etharp_find_addr()
etharp_get_entry()
etharp_output_to_arp_index()
etharp_output()
etharp_query()
all items filtered out
Type of
arp_table
arp_table
etharp_entry
all items filtered out