SharpPcap : SharpPcap Namespace

ARP Class

Resolves MAC addresses from IP addresses using the Address Resolution Protocol (ARP)

Syntax

public class ARP

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

Members

See Also: Inherited members from object.

Public Constructors

Constructs a new ARP Resolver

Public Properties

Timeout TimeSpan . Timeout for a given call to Resolve()

Public Methods

Resolve (System.Net.IPAddress) : System.Net.NetworkInformation.PhysicalAddress
Resolves the MAC address of the specified IP address. The 'DeviceName' propery must be set prior to using this method.
Resolve (System.Net.IPAddress, System.Net.IPAddress, System.Net.NetworkInformation.PhysicalAddress) : System.Net.NetworkInformation.PhysicalAddress
Resolves the MAC address of the specified IP address

Member Details

ARP Constructor

Constructs a new ARP Resolver

Syntax

Parameters

device
The network device on which this resolver sends its ARP packets

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

Resolve Method

Resolves the MAC address of the specified IP address. The 'DeviceName' propery must be set prior to using this method.

Syntax

Parameters

destIP
The IP address to resolve

Returns

The MAC address that matches to the given IP address

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

Resolve Method

Resolves the MAC address of the specified IP address

Syntax

Parameters

destIP
The IP address to resolve
localIP
The local IP address from which to send the ARP request, if null the local address will be discovered
localMAC
The localMAC address to use, if null the local mac will be discovered

Returns

The MAC address that matches to the given IP address or null if there was a timeout

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0

Timeout Property

Timeout for a given call to Resolve()

Syntax

public TimeSpan Timeout { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: SharpPcap
Assembly: SharpPcap (in SharpPcap.dll)
Assembly Versions: 4.0.1.0