SharpPcap : SharpPcap.LibPcap Namespace

PcapHeader Struct

A wrapper for libpcap's pcap_pkthdr structure

Syntax

public struct PcapHeader

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 ValueType.

Public Constructors

Constructs a new PcapHeader

Public Fields

CaptureLength uint . The the bytes actually captured. If the capture length is small CaptureLength might be less than PacketLength
MicroSeconds uint . The microseconds value of the packet's timestamp
PacketLength uint . The length of the packet on the line
Seconds uint . The seconds value of the packet's timestamp

Public Properties

[read-only]
Date DateTime . Return the DateTime value of this pcap header

Public Methods

static
FromPointer (IntPtr) : PcapHeader
Get a PcapHeader structure from a pcap_pkthdr pointer.
MarshalToIntPtr () : IntPtr
Marshal this structure into the platform dependent version and return and IntPtr to that memory NOTE: IntPtr MUST BE FREED via Marshal.FreeHGlobal()

Member Details

PcapHeader Constructor

Constructs a new PcapHeader

Syntax

public PcapHeader (uint seconds, uint microseconds, uint packetLength, uint captureLength)

Parameters

seconds
The seconds value of the packet's timestamp
microseconds
The microseconds value of the packet's timestamp
packetLength
The actual length of the packet
captureLength
The length of the capture

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

CaptureLength Field

The the bytes actually captured. If the capture length is small CaptureLength might be less than PacketLength

Syntax

public uint CaptureLength

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

Date Property

Return the DateTime value of this pcap header

Syntax

public DateTime Date { get; }

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

FromPointer Method

Get a PcapHeader structure from a pcap_pkthdr pointer.

Syntax

public static PcapHeader FromPointer (IntPtr pcap_pkthdr)

Parameters

pcap_pkthdr
Documentation for this section has not yet been entered.

Returns

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

MarshalToIntPtr Method

Marshal this structure into the platform dependent version and return and IntPtr to that memory NOTE: IntPtr MUST BE FREED via Marshal.FreeHGlobal()

Syntax

public IntPtr MarshalToIntPtr ()

Returns

A IntPtr

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

MicroSeconds Field

The microseconds value of the packet's timestamp

Syntax

public uint MicroSeconds

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

PacketLength Field

The length of the packet on the line

Syntax

public uint PacketLength

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

Seconds Field

The seconds value of the packet's timestamp

Syntax

public uint Seconds

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