IpHlpApiFlushIpNetTable2 Method

Flushes the IP neighbor table on the local computer.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("IpHlpApi.dll", ExactSpelling = true)]
public static Win32ErrorCode FlushIpNetTable2(
	AddressFamily family,
	uint interfaceIndex
)

Parameters

family  AddressFamily
The address family to flush.

The values currently supported are Unspecified, InterNetwork, and InterNetworkV6.

interfaceIndex  UInt32
The interface index.

If the index is specified, flush the neighbor IP address entries on a specific interface, otherwise flush the neighbor IP address entries on all the interfaces.

To ignore the interface, set this parameter to zero.

Return Value

Win32ErrorCode
If this function succeeds, it returns ERROR_SUCCESS. Otherwise, it returns an Win32ErrorCode error code.

Remarks

See Also