|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.swans.route.RouteZrpNdp
public class RouteZrpNdp
Zone Routing Protocol: Node Discovery (sub)Protocol: Default implementation.
| Field Summary | |
|---|---|
static long |
JITTER
jitter. |
static short |
LIFETIME_BEATS
heartbeats until link expiration. |
static org.apache.log4j.Logger |
logNDP
logger for NDP events. |
static long |
PERIOD
heartbeat period. |
| Constructor Summary | |
|---|---|
RouteZrpNdp(RouteZrp zrp)
Create new "default" NDP (ZRP sub-protocol) handler. |
|
RouteZrpNdp(RouteZrp zrp,
java.lang.String config)
Create new "default" NDP (ZRP sub-protocol) handler. |
|
| Method Summary | |
|---|---|
MacAddress |
getMacAddress(NetAddress addr)
Return mac address of neighbour. |
byte |
getMacId(NetAddress addr)
Return mac entity for neighbour. |
NetAddress[] |
getNeighbours()
Return neighbours. |
int |
getNumNeighbours()
Return number of neighbours. |
boolean |
isNeighbour(NetAddress addr)
Whether given address is a neighbour. |
void |
receive(RouteInterface.Zrp.MessageNdp msg,
NetAddress src,
MacAddress macAddr,
byte macId)
Process incoming NDP packet. |
void |
start()
Start running protocol. |
void |
timeout()
Timer expiration processing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger logNDP
public static final long PERIOD
public static final long JITTER
public static final short LIFETIME_BEATS
| Constructor Detail |
|---|
public RouteZrpNdp(RouteZrp zrp)
zrp - object reference to zrp routing framework
public RouteZrpNdp(RouteZrp zrp,
java.lang.String config)
zrp - object reference to zrp routing frameworkconfig - configuration string| Method Detail |
|---|
public void start()
start in interface Protocol
public void receive(RouteInterface.Zrp.MessageNdp msg,
NetAddress src,
MacAddress macAddr,
byte macId)
receive in interface RouteInterface.Zrp.Ndpmsg - ndp packetsrc - network address of incoming packetmacAddr - link source address of incoming packetmacId - interface of incoming packetpublic MacAddress getMacAddress(NetAddress addr)
getMacAddress in interface RouteInterface.Zrp.Ndpaddr - ip address of neighbour
public byte getMacId(NetAddress addr)
getMacId in interface RouteInterface.Zrp.Ndpaddr - ip address of neighbour
public NetAddress[] getNeighbours()
getNeighbours in interface RouteInterface.Zrp.Ndppublic int getNumNeighbours()
getNumNeighbours in interface RouteInterface.Zrp.Ndppublic boolean isNeighbour(NetAddress addr)
isNeighbour in interface RouteInterface.Zrp.Ndpaddr - address to check
public void timeout()
timeout in interface Timer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||