public class UDP
extends org.opendaylight.openflowplugin.libraries.liblldp.Packet
Modifier and Type | Method and Description |
---|---|
short |
getChecksum()
Get the stored checksum value of the UDP header.
|
int |
getDestinationPort()
Get the stored destination port.
|
short |
getLength()
Gets the stored length of UDP header.
|
int |
getSourcePort()
Get the stored source port.
|
UDP |
setChecksum(short udpChecksum)
Set the checksum for the current UDP object instance.
|
UDP |
setDestinationPort(int udpDestinationPort)
Sets the destinationPort value for the current UDP object instance.
|
void |
setHeaderField(String headerField,
byte[] readValue)
Store the value read from data stream in hdrFieldMap.
|
UDP |
setLength(short udpLength)
Set the UDP header length value for the current UDP object instance.
|
UDP |
setSourcePort(int udpSourcePort)
Sets the sourcePort value for the current UDP object instance.
|
deserialize, equals, getfieldnumBits, getfieldOffset, getHeaderSize, getParent, getPayload, getRawPayload, hashCode, isCorrupted, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setParent, setPayload, setRawPayload, toString
public int getSourcePort()
public int getDestinationPort()
public short getLength()
public short getChecksum()
public void setHeaderField(String headerField, byte[] readValue)
setHeaderField
in class org.opendaylight.openflowplugin.libraries.liblldp.Packet
public UDP setSourcePort(int udpSourcePort)
udpSourcePort
- int source port to setpublic UDP setDestinationPort(int udpDestinationPort)
udpDestinationPort
- int destination port to setpublic UDP setLength(short udpLength)
udpLength
- - short - the length to setpublic UDP setChecksum(short udpChecksum)
udpChecksum
- - short - the checksum to setCopyright © 2019 OpenDaylight. All rights reserved.