public class TCP
extends org.opendaylight.openflowplugin.libraries.liblldp.Packet
Modifier and Type | Field and Description |
---|---|
static String |
ACKNUMBER |
static String |
CHECKSUM |
static String |
DATAOFFSET |
static String |
DESTPORT |
static String |
HEADERLENFLAGS |
static String |
RESERVED |
static String |
SEQNUMBER |
static String |
SRCPORT |
static String |
URGENTPOINTER |
static String |
WINDOWSIZE |
Constructor and Description |
---|
TCP()
Default constructor that sets all the header fields to zero.
|
TCP(boolean writeAccess)
Constructor that sets the access level for the packet and
sets all the header fields to zero.
|
Modifier and Type | Method and Description |
---|---|
short |
getChecksum()
Get the stored checksum value of the TCP header.
|
short |
getDestinationPort()
Gets the stored destination port value of TCP header.
|
short |
getSourcePort()
Gets the stored source port value of TCP header.
|
TCP |
setAckNumber(int tcpAckNumber)
Sets the TCP Ack number for the current TCP object instance.
|
TCP |
setChecksum(short tcpChecksum)
Sets the TCP checksum for the current TCP object instance.
|
TCP |
setDataOffset(byte tcpDataOffset)
Sets the TCP data offset for the current TCP object instance.
|
TCP |
setDestinationPort(short tcpDestinationPort)
Sets the TCP destination port for the current TCP object instance.
|
void |
setHeaderField(String headerField,
byte[] readValue) |
TCP |
setHeaderLenFlags(short tcpFlags)
Sets the TCP flags for the current TCP object instance.
|
TCP |
setReserved(byte tcpReserved)
Sets the TCP reserved bits for the current TCP object instance.
|
TCP |
setSequenceNumber(int tcpSequenceNumber)
Sets the TCP sequence number for the current TCP object instance.
|
TCP |
setSourcePort(short tcpSourcePort)
Sets the TCP source port for the current TCP object instance.
|
TCP |
setUrgentPointer(short tcpUrgentPointer)
Sets the TCP Urgent Pointer for the current TCP object instance.
|
TCP |
setWindowSize(short tcpWsize)
Sets the TCP window size for the current TCP object instance.
|
deserialize, equals, getfieldnumBits, getfieldOffset, getHeaderSize, getParent, getPayload, getRawPayload, hashCode, isCorrupted, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setParent, setPayload, setRawPayload, toString
public static final String SRCPORT
public static final String DESTPORT
public static final String SEQNUMBER
public static final String ACKNUMBER
public static final String DATAOFFSET
public static final String RESERVED
public static final String HEADERLENFLAGS
public static final String WINDOWSIZE
public static final String CHECKSUM
public static final String URGENTPOINTER
public TCP()
public TCP(boolean writeAccess)
writeAccess
- - booleanpublic void setHeaderField(String headerField, byte[] readValue)
setHeaderField
in class org.opendaylight.openflowplugin.libraries.liblldp.Packet
public TCP setSourcePort(short tcpSourcePort)
tcpSourcePort
- shortpublic TCP setDestinationPort(short tcpDestinationPort)
tcpDestinationPort
- shortpublic TCP setSequenceNumber(int tcpSequenceNumber)
tcpSequenceNumber
- - intpublic TCP setDataOffset(byte tcpDataOffset)
tcpDataOffset
- - bytepublic TCP setReserved(byte tcpReserved)
tcpReserved
- bytepublic TCP setAckNumber(int tcpAckNumber)
tcpAckNumber
- intpublic TCP setHeaderLenFlags(short tcpFlags)
tcpFlags
- shortpublic TCP setWindowSize(short tcpWsize)
tcpWsize
- shortpublic TCP setChecksum(short tcpChecksum)
tcpChecksum
- shortpublic TCP setUrgentPointer(short tcpUrgentPointer)
tcpUrgentPointer
- shortpublic short getSourcePort()
public short getDestinationPort()
public short getChecksum()
Copyright © 2019 OpenDaylight. All rights reserved.