se.sics.jipv6.core
Class UDPPacket
java.lang.Object
se.sics.jipv6.core.UDPPacket
- All Implemented Interfaces:
- IPPayload
public class UDPPacket
- extends Object
- implements IPPayload
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
DISPATCH
public static final int DISPATCH
- See Also:
- Constant Field Values
UDPPacket
public UDPPacket()
replyPacket
public UDPPacket replyPacket()
getPayload
public byte[] getPayload()
setPayload
public void setPayload(byte[] payload)
getSourcePort
public int getSourcePort()
setSourcePort
public void setSourcePort(int sourcePort)
getDestinationPort
public int getDestinationPort()
setDestinationPort
public void setDestinationPort(int destinationPort)
generatePacketData
public byte[] generatePacketData(IPv6Packet packet)
- Specified by:
generatePacketData
in interface IPPayload
getDispatch
public byte getDispatch()
- Specified by:
getDispatch
in interface IPPayload
printPacket
public void printPacket(PrintStream out)
- Specified by:
printPacket
in interface IPPayload
parsePacketData
public void parsePacketData(IPv6Packet packet)
- Specified by:
parsePacketData
in interface IPPayload
doVirtualChecksum
public int doVirtualChecksum(IPv6Packet packet)