public final class UDP extends PortPacket<UDP>
UDP
describes an UDP packet.
This class is provided only for VTN internal use. This class may be changed without any notice.
Packet.HeaderField
Constructor and Description |
---|
UDP() |
Modifier and Type | Method and Description |
---|---|
short |
getChecksum()
Get the stored checksum value of the UDP packet.
|
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.
|
UDP |
setChecksum(short cksum)
Set the checksum for the current UDP object instance.
|
UDP |
setLength(short len)
Set the UDP header length value for the current UDP 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 short getLength()
public short getChecksum()
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 © 2018 OpenDaylight. All rights reserved.