|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteZrpIarp.MessageIarp
private static class RouteZrpIarp.MessageIarp
IARP (IntrAzone Routing Protocol) packet.
link source address size: 4 link state sequence number size: 2 zone radius size: 1 -- not impl. time-to-live (TTL) size: 1 RESERVED size: 2 RESERVED size: 1 link destination count size: 1 link destination address(es) size: 4 * count link destination mask(s) size: 4 * count -- not impl. link metrics size: k * count -- not impl.
| Field Summary | |
|---|---|
private byte |
compress
compression mode. |
private NetAddress[] |
dst
links destinations. |
static int |
FIXED_SIZE
fixed ierp packet size. |
static int |
INC_SIZE
incremental ierp packet size. |
private short |
seq
link state sequence identifier. |
private NetAddress |
src
link source. |
private byte |
ttl
time-to-live. |
| Fields inherited from interface jist.swans.misc.Message |
|---|
NULL |
| Constructor Summary | |
|---|---|
RouteZrpIarp.MessageIarp(NetAddress src,
short seq,
byte ttl,
NetAddress[] dst,
byte compress)
Create new IARP packet. |
|
| Method Summary | |
|---|---|
RouteZrpIarp.MessageIarp |
decTTL()
Create new IARP message with decremented TTL. |
void |
getBytes(byte[] b,
int offset)
Store packet into byte array. |
NetAddress[] |
getDst()
Return links destination addresses. |
short |
getSeq()
Return link state sequence identifier. |
int |
getSize()
Return packet size or Constants.ZERO_WIRE_SIZE. |
NetAddress |
getSrc()
Return link source address. |
byte |
getTTL()
Return packet time-to-live. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FIXED_SIZE
public static final int INC_SIZE
private NetAddress src
private short seq
private byte ttl
private NetAddress[] dst
private byte compress
| Constructor Detail |
|---|
public RouteZrpIarp.MessageIarp(NetAddress src,
short seq,
byte ttl,
NetAddress[] dst,
byte compress)
src - link source addressseq - link state sequence identifierttl - packet time-to-livedst - links destinationscompress - packet compression mode/format| Method Detail |
|---|
public NetAddress getSrc()
public short getSeq()
public byte getTTL()
public NetAddress[] getDst()
public RouteZrpIarp.MessageIarp decTTL()
public int getSize()
getSize in interface Message
public void getBytes(byte[] b,
int offset)
getBytes in interface Messageb - destination byte arrayoffset - byte array starting offsetpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||