5454/** @brief When the age of an entry in the ARP table reaches this value (it counts down
5555 * to zero, so this is an old entry) an ARP request will be sent to see if the
5656 * entry is still valid and can therefore be refreshed. */
57- #define arpMAX_ARP_AGE_BEFORE_NEW_ARP_REQUEST ( 3 )
57+ #define arpMAX_ARP_AGE_BEFORE_NEW_ARP_REQUEST ( 3 )
5858
5959/** @brief The time between gratuitous ARPs. */
6060#ifndef arpGRATUITOUS_ARP_PERIOD
61- #define arpGRATUITOUS_ARP_PERIOD ( pdMS_TO_TICKS( 20000U ) )
61+ #define arpGRATUITOUS_ARP_PERIOD ( pdMS_TO_TICKS(20000U ) )
6262#endif
6363
6464/** @brief When there is another device which has the same IP address as the IP address
7979/*
8080 * Lookup an MAC address in the ARP cache from the IP address.
8181 */
82- static eARPLookupResult_t prvCacheLookup ( uint32_t ulAddressToLookup ,
82+ static eARPLookupResult_t prvCacheLookup ( uint32_t ulAddressToLookup ,
8383 MACAddress_t * const pxMACAddress );
8484
8585/*-----------------------------------------------------------*/
8686
87- static void vProcessARPPacketReply ( ARPPacket_t * pxARPFrame ,
87+ static void vProcessARPPacketReply ( ARPPacket_t * pxARPFrame ,
8888 uint32_t ulSenderProtocolAddress );
8989
9090/*-----------------------------------------------------------*/
@@ -94,7 +94,7 @@ _static ARPCacheRow_t xARPCache[ ipconfigARP_CACHE_ENTRIES ];
9494
9595/** @brief The time at which the last gratuitous ARP was sent. Gratuitous ARPs are used
9696 * to ensure ARP tables are up to date and to detect IP address conflicts. */
97- static TickType_t xLastGratuitousARPTime = 0U ;
97+ static TickType_t xLastGratuitousARPTime = 0U ;
9898
9999/*
100100 * IP-clash detection is currently only used internally. When DHCP doesn't respond, the
@@ -103,18 +103,18 @@ static TickType_t xLastGratuitousARPTime = 0U;
103103 */
104104#if ( ipconfigARP_USE_CLASH_DETECTION != 0 )
105105 /* Becomes non-zero if another device responded to a gratuitous ARP message. */
106- BaseType_t xARPHadIPClash ;
106+ BaseType_t xARPHadIPClash ;
107107 /* MAC-address of the other device containing the same IP-address. */
108- MACAddress_t xARPClashMacAddress ;
108+ MACAddress_t xARPClashMacAddress ;
109109#endif /* ipconfigARP_USE_CLASH_DETECTION */
110110
111111/** @brief This local variable is used to keep track of number of ARP requests sent and
112112 * also to limit the requests to arpIP_CLASH_MAX_RETRIES per arpIP_CLASH_RESET_TIMEOUT_MS
113113 * period. */
114- static UBaseType_t uxARPClashCounter = 0U ;
114+ static UBaseType_t uxARPClashCounter = 0U ;
115115
116116/** @brief The time at which the last ARP clash was sent. */
117- static TimeOut_t xARPClashTimeOut ;
117+ static TimeOut_t xARPClashTimeOut ;
118118
119119/** @brief Next defensive request must not be sent for arpIP_CLASH_RESET_TIMEOUT_MS
120120 * period. */
0 commit comments