jist.swans.route
Interface RouteInterface.Zrp.Ndp

All Superinterfaces:
Protocol
All Known Implementing Classes:
RouteZrpNdp
Enclosing interface:
RouteInterface.Zrp

public static interface RouteInterface.Zrp.Ndp
extends Protocol

Node Discovery (sub)Protocol interface.


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.
 
Methods inherited from interface jist.swans.misc.Protocol
start
 

Method Detail

receive

void receive(RouteInterface.Zrp.MessageNdp msg,
             NetAddress src,
             MacAddress macAddr,
             byte macId)
Process incoming NDP packet.

Parameters:
msg - ndp packet
src - network address of incoming packet
macAddr - link source address of incoming packet
macId - interface of incoming packet

getMacAddress

MacAddress getMacAddress(NetAddress addr)
Return mac address of neighbour.

Parameters:
addr - ip address of neighbour
Returns:
mac address of neighbour, or null if unknown

getMacId

byte getMacId(NetAddress addr)
Return mac entity for neighbour.

Parameters:
addr - ip address of neighbour
Returns:
mac interface id for neighbour, or null if unknown

getNeighbours

NetAddress[] getNeighbours()
Return neighbours.

Returns:
array of neighbours

getNumNeighbours

int getNumNeighbours()
Return number of neighbours.

Returns:
number of neighbours

isNeighbour

boolean isNeighbour(NetAddress addr)
Whether given address is a neighbour.

Parameters:
addr - address to check
Returns:
whether given address is a neighbour