tfAddArpEntry
Table of Contents >> Programmer's Reference
Note: | The content on this page has been deprecated. |
For the new content, please see tfNgAddArpEntry(). |
#include <trsocket.h> |
int tfAddArpEntry | ( |
ttUserInterface interfaceHandle, | |
ttUserIpAddress arpIpAddress, | |
char * physAddrPtr | |
); | |
Conditional parameter. See details in Parameters below. |
Function Description
This function is to used add an entry to the ARP cache. This function will allow the user to manipulate the ARP cache beyond standard means. Normally the TCP/IP stack maintains the ARP cache.
Parameters
- interfaceHandle
- Interface ID as returned by tfAddInterface(). NOTE: This parameter is conditional and only present when TM_USE_STRONG_ESL is defined at compile time. For more information, please see Appendix C: Strong End System Model / Weak End System Model.
- arpIpAddress
- The IP address to add to the ARP cache.
- physAddrPtr
- A pointer to the character array that contains the physical address.
- physAddrLength
- The length of the physical address.
Returns
- TM_ENOERROR
- Success
- TM_EINVAL
- Bad parameter