Home |
Function xn_add_host_table_entry Function xn_delete_host_table_entry Function xn_interface_open_config Function xn_interface_ethernet_statistics Function xn_interface_statistics Function xn_arp_add Function xn_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
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.
|