CreateProxyArpEntry

The CreateProxyArpEnry function creates a Proxy Address Resolution Protocol (PARP) entry on the local computer for the specified IP address.

DWORD CreateProxyArpEntry(
  DWORD dwAddress,  // IP address for which to act as proxy
  DWORD dwMask,     // subnet mask for IP address
  DWORD dwIfIndex   // interface on which to proxy 
);

Parameters

dwAddress
[in] Specifies the IP address for which this computer acts as a proxy.
dwMask
[in] Specifies the subnet mask for the IP address identified by the dwAddress parameter.
dwIfIndex
[in] Specifies the index of the interface on which to proxy ARP for the IP address identified by the dwAddress parameter. In other words, when an ARP request for dwAddress is received on this interface, the local computer responds with the physical address of this interface. If this interface is of a type that does not support ARP, such as PPP, then the call fails.

Return Values

If the function succeeds, the return value is NO_ERROR.

If the function fails, use FormatMessage to obtain the message string for the returned error.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Iphlpapi.h.
  Library: Use Iphlpapi.lib.

See Also

DeleteProxyArpEntry, MIB_PROXYARP