Packet.HeaderField
Constructor and Description |
---|
UDP() |
Modifier and Type | Method and Description |
---|---|
UDP |
clone()
Return a deep copy of this packet.
|
short |
getChecksum()
Get the stored checksum value of the UDP packet.
|
short |
getDestinationPort()
Get the stored destination port.
|
protected Map<String,Packet.HeaderField> |
getHeaderFormat()
Return a map that determines the format of the packet.
|
int |
getHeaderSize()
Gets the header size in bits.
|
short |
getLength()
Gets the stored length of UDP packet.
|
short |
getSourcePort()
Get the stored source port.
|
UDP |
setChecksum(short cksum)
Set the checksum for the current UDP object instance.
|
UDP |
setDestinationPort(short port)
Sets the destinationPort value for the current UDP object instance.
|
UDP |
setLength(short len)
Set the UDP header length value for the current UDP object instance.
|
UDP |
setSourcePort(short port)
Sets the sourcePort value for the current UDP object instance.
|
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 short getSourcePort()
public short getDestinationPort()
public short getLength()
public short getChecksum()
public UDP setSourcePort(short port)
port
- The source port number.public UDP setDestinationPort(short port)
port
- The destination port number.public UDP setLength(short len)
len
- The number of bytes in the UDP datagram.public UDP setChecksum(short cksum)
cksum
- The UDP checksum.public int getHeaderSize()
getHeaderSize
in class Packet
protected Map<String,Packet.HeaderField> getHeaderFormat()
getHeaderFormat
in class Packet
Copyright © 2017 OpenDaylight. All rights reserved.