![]() |
Home |
|
Function xn_arp_addxn_arp_add adds or updates an entry in the ARP cache. int xn_arp_add(BYTE * ipn, BYTE * ethn, dword time_to_live); ParametersipnPointer to the IP address in network byte order to be added to the ARP cache. ethnPointer to the Ethernet address (MAC address) to be associated with parameter ipn. time_to_liveTime in seconds this ARP cache entry will remain valid. Value 0xFFFFFFFFul can be used to specify that this ARP cache entry never expires. Once the entry has expired and a packet must be sent to IP address ipn, RTIP-32 will send out a broadcast ARP request to refresh the entry. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error.
|