C# Class SharpPcap.Packets.IPv4Packet

Inheritance: EthernetPacket
Afficher le fichier Open project: Zepheus/Fiesta_Utils Class Usage Examples

Méthodes publiques

Свойство Type Description
ipVersion int

Protected Properties

Свойство Type Description
_ipOffset int

Méthodes publiques

Méthode Description
ComputeIPChecksum ( ) : int

Same as computeIPChecksum(true);

ComputeIPChecksum ( bool update ) : int

Computes the IP checksum, optionally updating the IP checksum header.

IPv4Packet ( int lLen, byte bytes ) : System

Create a new IP packet.

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

Create a new IP packet.

IsValidTransportLayerChecksum ( bool pseudoIPHeader ) : bool
OnOffsetChanged ( ) : void

should be overriden by upper classes

ToColoredString ( bool colored ) : System.String

Generate string with contents describing this IP packet.

ToColoredVerboseString ( bool colored ) : System.String

Convert this IP packet to a more verbose string.

ToString ( ) : System.String

Convert this IP packet to a readable string.

Méthodes protégées

Méthode Description
AttachPseudoIPHeader ( byte origHeader ) : byte[]
SetChecksum ( int cs, int checkSumOffset ) : void

Sets the IP header checksum.

SetTransportLayerChecksum ( int cs, int csPos ) : void

Method Details

AttachPseudoIPHeader() protected méthode

protected AttachPseudoIPHeader ( byte origHeader ) : byte[]
origHeader byte
Résultat byte[]

ComputeIPChecksum() public méthode

Same as computeIPChecksum(true);
public ComputeIPChecksum ( ) : int
Résultat int

ComputeIPChecksum() public méthode

Computes the IP checksum, optionally updating the IP checksum header.
public ComputeIPChecksum ( bool update ) : int
update bool Specifies whether or not to update the IP checksum /// header after computing the checksum. A value of true indicates /// the header should be updated, a value of false indicates it /// should not be updated. ///
Résultat int

IPv4Packet() public méthode

Create a new IP packet.
public IPv4Packet ( int lLen, byte bytes ) : System
lLen int
bytes byte
Résultat System

IPv4Packet() public méthode

Create a new IP packet.
public IPv4Packet ( int lLen, byte bytes, Timeval tv ) : System
lLen int
bytes byte
tv SharpPcap.Packets.Util.Timeval
Résultat System

IsValidTransportLayerChecksum() public méthode

public IsValidTransportLayerChecksum ( bool pseudoIPHeader ) : bool
pseudoIPHeader bool
Résultat bool

OnOffsetChanged() public méthode

should be overriden by upper classes
public OnOffsetChanged ( ) : void
Résultat void

SetChecksum() protected méthode

Sets the IP header checksum.
protected SetChecksum ( int cs, int checkSumOffset ) : void
cs int
checkSumOffset int
Résultat void

SetTransportLayerChecksum() protected méthode

protected SetTransportLayerChecksum ( int cs, int csPos ) : void
cs int
csPos int
Résultat void

ToColoredString() public méthode

Generate string with contents describing this IP packet.
public ToColoredString ( bool colored ) : System.String
colored bool whether or not the string should contain ansi /// color escape sequences. ///
Résultat System.String

ToColoredVerboseString() public méthode

Convert this IP packet to a more verbose string.
public ToColoredVerboseString ( bool colored ) : System.String
colored bool
Résultat System.String

ToString() public méthode

Convert this IP packet to a readable string.
public ToString ( ) : System.String
Résultat System.String

Property Details

_ipOffset protected_oe property

protected int _ipOffset
Résultat int

ipVersion public_oe static_oe property

public static int ipVersion
Résultat int