|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--SSF.OS.IpHeader
IP packet Header class.
| Field Summary | |
static int |
DEFAULT_TIME_TO_LIVE
Default limit on number of hops : 128 |
static byte |
DELAY_BIT_MASK
|
int |
DEST_IP
The destination IP address of this IP packet. |
int |
NEXT_HOP_IP
The next hop IP address, not in the standard IP header. |
int |
PROTOCOL_NO
The protocol number for this header. |
int |
SOURCE_IP
The source IP address of this IP packet. |
static byte |
THROUGHPUT_BIT_MASK
|
int |
TIME_TO_LIVE
The time-to-live field decremented by each router. |
byte |
TOS
The type of service field. |
static java.lang.String |
VERSION
The version of this IP protocol. |
| Constructor Summary | |
IpHeader(int prot_no,
int src_ip,
int dest_ip)
IP header constructor with default TTL. |
|
IpHeader(int prot_no,
int src_ip,
int dest_ip,
int ttl)
IP header constructor. |
|
| Method Summary | |
int |
bytecount()
Returns the total number of bytes in this IP packet. |
java.lang.Object |
getMeasurementBucket()
|
int |
header_bytecount()
Returns the size (in bytes) of the IP header only, doesn't include the payload, if any. |
void |
setMeasurementBucket(java.lang.Object meas)
Attaches user-defined per-packet measurement data to this IP message. |
java.lang.String |
toString()
|
| Methods inherited from class SSF.OS.ProtocolMessage |
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, payload, previous, size, tobytes, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSION
public int SOURCE_IP
public int DEST_IP
public int PROTOCOL_NO
public byte TOS
public static final byte THROUGHPUT_BIT_MASK
public static final byte DELAY_BIT_MASK
public int TIME_TO_LIVE
public static final int DEFAULT_TIME_TO_LIVE
public int NEXT_HOP_IP
| Constructor Detail |
public IpHeader(int prot_no,
int src_ip,
int dest_ip,
int ttl)
prot_no - Protocol numbersrc_ip - IP address of packet sourcedest_ip - IP address of packet destinationttl - time to live, in hops.
public IpHeader(int prot_no,
int src_ip,
int dest_ip)
prot_no - Protocol numbersrc_ip - IP address of packet sourcedest_ip - IP address of packet destination| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic int header_bytecount()
header_bytecount in class ProtocolMessagepublic int bytecount()
bytecount in class ProtocolMessagepublic void setMeasurementBucket(java.lang.Object meas)
public java.lang.Object getMeasurementBucket()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||