C# Class SharpPcap.Packets.IPProtocol

IPProtocol utility class.
Afficher le fichier Open project: Zepheus/Fiesta_Utils Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
IPProtocol ( ) : SharpPcap.Packets.Util

Method Details

ExtractVersion() public static méthode

public static ExtractVersion ( int lLen, byte packetBytes ) : IPPacket.IPVersions
lLen int
packetBytes byte
Résultat IPPacket.IPVersions

extractProtocol() public static méthode

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. ///
Résultat int

getDescription() public static méthode

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