C# Класс SharpPcap.Packets.EthernetPacket

Наследование: Packet, EthernetFields
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_ethOffset int
_timeval SharpPcap.Packets.Util.Timeval

Открытые методы

Метод Описание
EthernetPacket ( int lLen, byte bytes ) : System

Construct a new ethernet packet.

For the purpose of jpcap, when the type of ethernet packet is recognized as a protocol for which a class exists network library, then a more specific class like IPPacket or ARPPacket is instantiated. The subclass can always be cast into a more generic form.

EthernetPacket ( int lLen, byte bytes, Timeval tv ) : System

Construct a new ethernet packet, including the capture time.

OnOffsetChanged ( ) : void

should be overriden by upper classes

ToColoredString ( bool colored ) : System.String

Generate string with contents describing this ethernet packet.

ToColoredVerboseString ( bool colored ) : System.String

Convert this IP packet to a more verbose string.

ToString ( ) : System.String

Convert this ethernet packet to a readable string.

extractProtocol ( byte packetBytes ) : int

Extract the protocol type field from packet data.

The type field indicates what type of data is contained in the packet's data block.

Описание методов

EthernetPacket() публичный Метод

Construct a new ethernet packet.

For the purpose of jpcap, when the type of ethernet packet is recognized as a protocol for which a class exists network library, then a more specific class like IPPacket or ARPPacket is instantiated. The subclass can always be cast into a more generic form.

public EthernetPacket ( int lLen, byte bytes ) : System
lLen int
bytes byte
Результат System

EthernetPacket() публичный Метод

Construct a new ethernet packet, including the capture time.
public EthernetPacket ( int lLen, byte bytes, Timeval tv ) : System
lLen int
bytes byte
tv SharpPcap.Packets.Util.Timeval
Результат System

OnOffsetChanged() публичный Метод

should be overriden by upper classes
public OnOffsetChanged ( ) : void
Результат void

ToColoredString() публичный Метод

Generate string with contents describing this ethernet packet.
public ToColoredString ( bool colored ) : System.String
colored bool whether or not the string should contain ansi /// color escape sequences. ///
Результат System.String

ToColoredVerboseString() публичный Метод

Convert this IP packet to a more verbose string.
public ToColoredVerboseString ( bool colored ) : System.String
colored bool
Результат System.String

ToString() публичный Метод

Convert this ethernet packet to a readable string.
public ToString ( ) : System.String
Результат System.String

extractProtocol() публичный статический Метод

Extract the protocol type field from packet data.

The type field indicates what type of data is contained in the packet's data block.

public static extractProtocol ( byte packetBytes ) : int
packetBytes byte packet bytes. ///
Результат int

Описание свойств

_ethOffset защищенное свойство

protected int _ethOffset
Результат int

_timeval защищенное свойство

protected Timeval,SharpPcap.Packets.Util _timeval
Результат SharpPcap.Packets.Util.Timeval