public final class TCP extends PortPacket<TCP>
TCP
describes an TCP packet.
TCP option is not supported. TCP option is treated as a part of TCP payload.e
This class is provided only for VTN internal use. This class may be changed without any notice.
Packet.HeaderField
Constructor and Description |
---|
TCP() |
Modifier and Type | Method and Description |
---|---|
int |
getAckNumber()
Return the TCP acknowledgement number.
|
short |
getChecksum()
Get the stored checksum value of the TCP header.
|
byte |
getDataOffset()
Return the TCP data offset.
|
protected Map<String,Packet.HeaderField> |
getHeaderFormat()
Return a map that determines the format of the packet.
|
short |
getHeaderLenFlags()
Return the TCP header length and flags.
|
int |
getHeaderSize()
Gets the header size in bits.
|
byte |
getReserved()
Return the reserved field value.
|
int |
getSequenceNumber()
Return the TCP sequence number.
|
short |
getUrgentPointer()
Return the TCP urgent pointer.
|
short |
getWindowSize()
Return the TCP window size.
|
TCP |
setAckNumber(int acq)
Sets the TCP Ack number for the current TCP object instance.
|
TCP |
setChecksum(short cksum)
Sets the TCP checksum for the current TCP object instance.
|
TCP |
setDataOffset(byte off)
Sets the TCP data offset for the current TCP object instance.
|
TCP |
setHeaderLenFlags(short flags)
Sets the TCP flags for the current TCP object instance.
|
TCP |
setReserved(byte resv)
Sets the TCP reserved bits for the current TCP object instance.
|
TCP |
setSequenceNumber(int seq)
Sets the TCP sequence number for the current TCP object instance.
|
TCP |
setUrgentPointer(short urg)
Sets the TCP Urgent Pointer for the current TCP object instance.
|
TCP |
setWindowSize(short wsize)
Sets the TCP window size for the current TCP object instance.
|
clone, getDestinationPort, getSourcePort, setDestinationPort, setSourcePort
deserialize, equals, equalsField, getByte, getBytes, getFieldNumBits, getFieldNumBits, getFieldOffset, getFieldOffset, getHeaderFieldMap, getInt, getIp4Network, getPayload, getRawPayload, getRawPayloadSize, getShort, hashCode, isCorrupted, isZeroShort, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setCorrupted, setHeaderField, setPayload, setPayloadClass, setRawPayload, toString
public TCP setSequenceNumber(int seq)
seq
- The TCP sequence number.public TCP setDataOffset(byte off)
off
- The TCP data offset.public TCP setReserved(byte resv)
resv
- The reserved field value.public TCP setAckNumber(int acq)
acq
- The TCP acknowledgement number.public TCP setHeaderLenFlags(short flags)
flags
- The TCP flags.public TCP setWindowSize(short wsize)
wsize
- The TCP window size.public TCP setChecksum(short cksum)
cksum
- The TCP checksum.public TCP setUrgentPointer(short urg)
urg
- The TCP urgent pointer.public int getSequenceNumber()
public byte getDataOffset()
public byte getReserved()
public int getAckNumber()
public short getHeaderLenFlags()
public short getWindowSize()
public short getChecksum()
public short getUrgentPointer()
public int getHeaderSize()
getHeaderSize
in class Packet
protected Map<String,Packet.HeaderField> getHeaderFormat()
getHeaderFormat
in class Packet
Copyright © 2018 OpenDaylight. All rights reserved.