tfGetArpEntryByIpAddr

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 tfNgGetArpEntryByIpAddr().


#include <trsocket.h>



int tfGetArpEntryByIpAddr (
ttUserInterface interfaceHandle,
ttUserIpAddress arpIpAddress,
char * physAddrPtr
);
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 IP 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.
  • arpIpAddress
    The IP address to use to lookup the entry.
  • physAddrPtr
    The pointer to the buffer where the physical address will be stored.
  • physAddrLength
    The length of the physical address buffer.


Returns

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


Table of Contents >> Programmer's Reference