|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.route.RouteZrpBrp.MessageBrp
private static class RouteZrpBrp.MessageBrp
BRP (Bordercast Resolution Protocol) packet.
query source size: 4 -- encapsulated query destination size: 4 -- encapsulated query ID size: 2 -- encapsulated query extension size: 1 -- not impl. RESERVED size: 1 prev bordercast node size: 4 -- not necessary (from IP) target length size: 1 -- not in spec. target addresses size: 4 * n -- not in spec. encapsulated packet size: *
Field Summary | |
---|---|
private RouteInterface.Zrp.MessageIerp |
encapsulated
encapsulated query. |
static int |
FIXED_SIZE
fixed ierp packet size. |
private NetAddress[] |
targets
targets of broadcast packet. |
Fields inherited from interface jist.swans.misc.Message |
---|
NULL |
Constructor Summary | |
---|---|
RouteZrpBrp.MessageBrp(RouteInterface.Zrp.MessageIerp query,
NetAddress[] targets)
Create new bordercast packet. |
Method Summary | |
---|---|
void |
getBytes(byte[] b,
int offset)
Store packet into byte array. |
NetAddress |
getDst()
Return query destination. |
short |
getID()
Return query identifier. |
RouteInterface.Zrp.MessageIerp |
getPayload()
Return encapsulated query. |
int |
getSize()
Return packet size or Constants.ZERO_WIRE_SIZE. |
NetAddress |
getSrc()
Return query source. |
NetAddress[] |
getTargets()
Return next hop targets. |
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
private NetAddress[] targets
private RouteInterface.Zrp.MessageIerp encapsulated
Constructor Detail |
---|
public RouteZrpBrp.MessageBrp(RouteInterface.Zrp.MessageIerp query, NetAddress[] targets)
query
- encapsulated query packettargets
- bordercast next hop targetsMethod Detail |
---|
public NetAddress getSrc()
public NetAddress getDst()
public short getID()
public NetAddress[] getTargets()
public RouteInterface.Zrp.MessageIerp getPayload()
public int getSize()
getSize
in interface Message
public void getBytes(byte[] b, int offset)
getBytes
in interface Message
b
- 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 |