public interface Datagram
Modifier and Type | Method and Description |
---|---|
byte[] |
getChecksum()
Get the checksum
|
byte |
getChecksumLength()
Get the checksum size
|
byte[] |
getData()
Get payload
|
Address |
getDstAddress()
Get dst address.
|
int |
getDstPort()
Get dst port.
|
byte |
getFlags()
Get the flags
|
byte[] |
getHeader()
Get header
|
byte |
getHeaderLength()
Get the header len
|
int |
getLength()
Get the length of the data, i.e.
|
byte[] |
getPayload()
Get payload
|
byte |
getProtocol()
Get the protocol
|
Address |
getSrcAddress()
Get src address.
|
int |
getSrcPort()
Get src port.
|
short |
getTotalLength()
Get the total len
|
int |
getTTL()
Get the TTL
|
Datagram |
setDstAddress(Address addr)
Set the dst address
|
Datagram |
setDstPort(int port)
Set the dst port
|
Datagram |
setProtocol(int p)
Set the protocol
|
Datagram |
setSrcAddress(Address addr)
Set the src address
|
Datagram |
setSrcPort(int port)
Set the src port
|
Datagram |
setTTL(int ttl)
Set the TTL
|
boolean |
TTLReduce()
Reduce TTL and return true if packet still valid
|
int getLength()
byte getHeaderLength()
short getTotalLength()
byte getChecksumLength()
byte getFlags()
int getTTL()
Datagram setTTL(int ttl)
byte getProtocol()
Datagram setProtocol(int p)
Address getSrcAddress()
Address getDstAddress()
int getSrcPort()
Datagram setSrcPort(int port)
int getDstPort()
Datagram setDstPort(int port)
boolean TTLReduce()
byte[] getHeader()
byte[] getPayload()
byte[] getData()
byte[] getChecksum()
User Space Routing 0.10.3