tfGetArpEntryByPhysAddr

Jump to: navigation, search

Table of Contents >> Programmer's Reference

Note Note: The content on this page has been deprecated.
For the new content, please see tfNgGetArpEntryByPhysAddr().


#include <trsocket.h>



int tfGetArpEntryByPhysAddr (
ttUserInterface interfaceHandle,
char * physAddrPtr,
int physAddrLength
);
Conditional parameter. See details in Parameters below.


Function Description

This function is used retrieve an entry from the ARP cache by looking up the entry by the physical address. 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.
  • physAddrPtr
    The physical address to lookup the entry in the ARP cache.
  • physAddrLength
    The length of the physical address.
  • arpIpAddressPtr
    The location where the IP address of the matching physical entry will be stored.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid parameter.
  • TM_ENOENT
    No ARP entry found with this physical address.


Table of Contents >> Programmer's Reference