Interface: moteiv.tos.lib.sp.SPNeighbor
interface SPNeighbor
Manage entries in the SP neighbor table.
- Author:
-
Joe Polastre, Moteiv Corporation <info@moteiv.com>
Commands
command void change(sp_neighbor_t *neighbor)
command result_t find()
command result_t findDone()
command sp_neighbor_t *get(uint8_t n)
command sp_neighbor_flags_t getFlags(sp_neighbor_t *neighbor)
command result_t insert(sp_neighbor_t *neighbor)
command uint8_t max()
command uint8_t next(uint8_t n)
command result_t remove(sp_neighbor_t *neighbor)
command bool valid(uint8_t n)
Events
event result_t admit(sp_neighbor_t *neighbor)
event void evicted(sp_neighbor_t *neighbor)
event void expired(sp_neighbor_t *neighbor)
event void update(sp_neighbor_t *neighbor)
Commands - Details
change
command void change(sp_neighbor_t *neighbor)
find
command result_t find()
findDone
command result_t findDone()
first
command uint8_t first()
get
command sp_neighbor_t *get(uint8_t n)
getFlags
command sp_neighbor_flags_t getFlags(sp_neighbor_t *neighbor)
insert
command result_t insert(sp_neighbor_t *neighbor)
max
command uint8_t max()
next
command uint8_t next(uint8_t n)
populated
command uint8_t populated()
remove
command result_t remove(sp_neighbor_t *neighbor)
valid
command bool valid(uint8_t n)
Events - Details
admit
event result_t admit(sp_neighbor_t *neighbor)
- Returns:
-
SUCCESS to admit the neighbor to the neighbor table.
evicted
event void evicted(sp_neighbor_t *neighbor)
expired
event void expired(sp_neighbor_t *neighbor)
update
event void update(sp_neighbor_t *neighbor)