CreateProxyArpEntry (Compact 2013)

3/26/2014

This function creates a Proxy Address Resolution Protocol (PARP) entry on the local device for the specified IP address.

Syntax

DWORD CreateProxyArpEntry(
  DWORD dwAddress,
  DWORD dwMask,
  DWORD dwIfIndex
);

Parameters

  • dwAddress
    [in] The IPv4 address for which this computer acts as a proxy.
  • dwMask
    [in] The subnet mask for the IPv4 address specified in dwAddress.
  • dwIfIndex
    [in] The index of the interface on which to proxy ARP for the IPv4 address identified by dwAddress. In other words, when an ARP request for dwAddress is received on this interface, the local device 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 Value

Return code

Description

NO_ERROR (zero)

The function is successful.

ERROR_ACCESS_DENIED

Access is denied.

ERROR_INVALID_PARAMETER

An input parameter is invalid, no action was taken. This error is returned if the dwAddress parameter is zero or an invalid value, one of the other parameters is invalid.

ERROR_NOT_SUPPORTED

The IPv4 transport is not configured on the local device.

Other

Use FormatMessage to obtain the message string for the returned error.

Remarks

To retrieve the ARP table, call the GetIpNetTable function. To delete an existing PARP entry, call the DeleteProxyArpEntry .

Requirements

Header

iphlpapi.h

Library

Iphlpapi.lib

See Also

Reference

IP Helper Functions
DeleteProxyArpEntry
MIB_PROXYARP
GetIpNetTable