tfNgGetArpEntryByPhysAddr

Jump to: navigation, search

Table of Contents >> IPv6 Programmer's Reference


#include <trsocket.h>



int tfNgGetArpEntryByPhysAddr (
ttUserInterface interfaceHandle,
int addrFamily,
const ttUser8Bit * physAddrPtr,
int physAddrLen,
struct sockaddr_storage * arpIpAddrPtr
);
Conditional parameter. See details in Parameters below.


Function Description

Next Generation API replaces tfGetArpEntryByPhysAddr().


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.
  • addrFamily
    Set to AF_INET if you want to get an entry from the IPv4 ARP cache, AF_INET6 if you want to get an entry from the IPv6 Neighbor cache.
  • physAddrPtr
    The physical address to lookup the entry in the ARP cache.
  • physAddrLen
    The length of the physical address.
  • arpIpAddrPtr
    The location where the IP address of the matching physical entry will be stored.


Returns

  • TM_ENOERROR
    Success
  • TM_EINVAL
    One of the parameters is invalid.
  • TM_EAFNOSUPPORT
    addrFamily was not set to either AF_INET or AF_INET6.
  • TM_ENOENT
    No such ARP entry exists.


Table of Contents >> IPv6 Programmer's Reference