SharpPcap : SharpPcap.LibPcap Namespace

PcapInterface Class

managed version of struct pcap_if NOTE: we can't use pcap_if directly because the class contains a pointer to pcap_if that will be freed when the device memory is freed, so instead convert the unmanaged structure to a managed one to avoid this issue

Syntax

public class PcapInterface

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Members

See Also: Inherited members from object.

Public Properties

[read-only]
Addresses List<PcapAddress> . Documentation for this section has not yet been entered.
[read-only]
Description string . Documentation for this section has not yet been entered.
[read-only]
Flags uint . Documentation for this section has not yet been entered.
[read-only]
FriendlyName string . Documentation for this section has not yet been entered.
[read-only]
GatewayAddress System.Net.IPAddress . Documentation for this section has not yet been entered.
[read-only]
MacAddress System.Net.NetworkInformation.PhysicalAddress . MacAddress of the interface
[read-only]
Name string . Documentation for this section has not yet been entered.

Public Methods

override
ToString () : string
ToString override

Member Details

Addresses Property

Documentation for this section has not yet been entered.

Syntax

public List<PcapAddress> Addresses { get; }

Value

Addresses associated with this device

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Description Property

Documentation for this section has not yet been entered.

Syntax

public string Description { get; }

Value

Text description of the interface as given by pcap/winpcap

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Flags Property

Documentation for this section has not yet been entered.

Syntax

public uint Flags { get; }

Value

Pcap interface flags

Remarks

Documentation for this section has not yet been entered.

Requirements

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

FriendlyName Property

Documentation for this section has not yet been entered.

Syntax

public string FriendlyName { get; }

Value

Human readable interface name derived from System.Net.NetworkInformation.NetworkInterface.Name

Remarks

Documentation for this section has not yet been entered.

Requirements

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

GatewayAddress Property

Documentation for this section has not yet been entered.

Syntax

public System.Net.IPAddress GatewayAddress { get; }

Value

Gateway address of this device NOTE: May only be available on Windows

Remarks

Documentation for this section has not yet been entered.

Requirements

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

MacAddress Property

MacAddress of the interface

Syntax

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Name Property

Documentation for this section has not yet been entered.

Syntax

public string Name { get; }

Value

Name of the interface. Used internally when passed to pcap_open_live()

Remarks

Documentation for this section has not yet been entered.

Requirements

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

ToString Method

ToString override

Syntax

public override string ToString ()

Returns

A string

Remarks

Documentation for this section has not yet been entered.

Requirements

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