Class Icmp
java.lang.Object
com.github.ffalcinelli.jdivert.headers.Header
com.github.ffalcinelli.jdivert.headers.Icmp
Created by fabio on 25/10/2016.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbytegetCode()intReturn the Header length (in bytes).bytegetType()voidsetChecksum(int cksum) voidsetCode(byte code) voidsetType(byte type) Methods inherited from class Header
buildHeaders, buildHeaders, equals, getByteBuffer, getBytesAtOffset, getFlag, getRawHeaderBytes, hashCode, setBytesAtOffset, setFlag
-
Constructor Details
-
Icmp
-
-
Method Details
-
getType
public byte getType() -
setType
public void setType(byte type) -
getCode
public byte getCode() -
setCode
public void setCode(byte code) -
getChecksum
public int getChecksum() -
setChecksum
public void setChecksum(int cksum) -
getHeaderLength
public int getHeaderLength()Description copied from class:HeaderReturn the Header length (in bytes).- Specified by:
getHeaderLengthin classHeader- Returns:
- The header length (in bytes).
-