C# Class SharpPcap.Packets.IPProtocol

IPProtocol utility class.
Mostrar archivo Open project: Zepheus/Fiesta_Utils Class Usage Examples

Public Methods

Method Description
ExtractVersion ( int lLen, byte packetBytes ) : IPPacket.IPVersions
extractProtocol ( int lLen, byte packetBytes ) : int

Extract the protocol code from packet data. The packet data must contain an IP datagram. The protocol code specifies what kind of information is contained in the data block of the ip datagram.

getDescription ( int code ) : System.String

Fetch a protocol description.

Private Methods

Method Description
IPProtocol ( ) : SharpPcap.Packets.Util

Method Details

ExtractVersion() public static method

public static ExtractVersion ( int lLen, byte packetBytes ) : IPPacket.IPVersions
lLen int
packetBytes byte
return IPPacket.IPVersions

extractProtocol() public static method

Extract the protocol code from packet data. The packet data must contain an IP datagram. The protocol code specifies what kind of information is contained in the data block of the ip datagram.
public static extractProtocol ( int lLen, byte packetBytes ) : int
lLen int the length of the link-level header. ///
packetBytes byte packet bytes, including the link-layer header. ///
return int

getDescription() public static method

Fetch a protocol description.
public static getDescription ( int code ) : System.String
code int the code associated with the message. ///
return System.String