C# 클래스 SharpPcap.Packets.IPv4Packet

상속: EthernetPacket
파일 보기 프로젝트 열기: Zepheus/Fiesta_Utils 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ipVersion int

보호된 프로퍼티들

프로퍼티 타입 설명
_ipOffset int

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
AttachPseudoIPHeader ( byte origHeader ) : byte[]
SetChecksum ( int cs, int checkSumOffset ) : void

Sets the IP header checksum.

SetTransportLayerChecksum ( int cs, int csPos ) : void

메소드 상세

AttachPseudoIPHeader() 보호된 메소드

protected AttachPseudoIPHeader ( byte origHeader ) : byte[]
origHeader byte
리턴 byte[]

ComputeIPChecksum() 공개 메소드

Same as computeIPChecksum(true);
public ComputeIPChecksum ( ) : int
리턴 int

ComputeIPChecksum() 공개 메소드

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. ///
리턴 int

IPv4Packet() 공개 메소드

Create a new IP packet.
public IPv4Packet ( int lLen, byte bytes ) : System
lLen int
bytes byte
리턴 System

IPv4Packet() 공개 메소드

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

IsValidTransportLayerChecksum() 공개 메소드

public IsValidTransportLayerChecksum ( bool pseudoIPHeader ) : bool
pseudoIPHeader bool
리턴 bool

OnOffsetChanged() 공개 메소드

should be overriden by upper classes
public OnOffsetChanged ( ) : void
리턴 void

SetChecksum() 보호된 메소드

Sets the IP header checksum.
protected SetChecksum ( int cs, int checkSumOffset ) : void
cs int
checkSumOffset int
리턴 void

SetTransportLayerChecksum() 보호된 메소드

protected SetTransportLayerChecksum ( int cs, int csPos ) : void
cs int
csPos int
리턴 void

ToColoredString() 공개 메소드

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. ///
리턴 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 IP packet to a readable string.
public ToString ( ) : System.String
리턴 System.String

프로퍼티 상세

_ipOffset 보호되어 있는 프로퍼티

protected int _ipOffset
리턴 int

ipVersion 공개적으로 정적으로 프로퍼티

public static int ipVersion
리턴 int