Contiki 2.5
|
IP-ND compliant discovery module IP-ND = http://tools.ietf.org/html/draft-irtf-dtnrg-ipnd-01. More...
#include <string.h>
#include "net/netstack.h"
#include "net/packetbuf.h"
#include "net/rime/rimeaddr.h"
#include "clock.h"
#include "net/mac/frame802154.h"
#include "logging.h"
#include "dtn_network.h"
#include "agent.h"
#include "sdnv.h"
#include "statistics.h"
#include "convergence_layer.h"
#include "eid.h"
#include "discovery.h"
Go to the source code of this file.
Functions | |
void | discovery_ipnd_refresh_neighbour (rimeaddr_t *neighbour) |
Checks if ''neighbours'' is already known Yes: refresh timestamp No: Create entry. More... | |
void | discovery_ipnd_save_neighbour (rimeaddr_t *neighbour) |
Save neighbour to local cache. More... | |
LIST (neighbour_list) | |
List and memory blocks to save information about neighbours. | |
void | discovery_ipnd_init () |
IPND Discovery init function (called by agent) | |
uint8_t | discovery_ipnd_is_neighbour (rimeaddr_t *dest) |
Checks if address is currently listed a neighbour. More... | |
void | discovery_ipnd_enable () |
Enable discovery functionality. | |
void | discovery_ipnd_disable () |
Disable discovery functionality Prevents outgoing packets from being sent. | |
uint8_t | discovery_ipnd_parse_eid (uint32_t *eid, uint8_t *buffer, uint8_t length) |
Parses an incoming EID in an IPND frame. More... | |
uint8_t | discovery_ipnd_parse_service_block (uint8_t *buffer, uint8_t length) |
Dummy function that could parse the IPND service block. More... | |
uint8_t | discovery_ipnd_parse_bloomfilter (uint8_t *buffer, uint8_t length) |
Dummy function that could parse the IPND bloom filter. More... | |
void | discovery_ipnd_receive (rimeaddr_t *source, uint8_t *payload, uint8_t length) |
DTN Network has received an incoming discovery packet. More... | |
void | discovery_ipnd_send () |
Send out IPND beacon. More... | |
void | discovery_ipnd_delete_neighbour (rimeaddr_t *neighbour) |
Marks a neighbour as 'dead' after multiple transmission attempts have failed. More... | |
struct discovery_neighbour_list_entry * | discovery_ipnd_list_neighbours () |
Returns the list of currently known neighbours. More... | |
void | discovery_ipnd_stop_pending () |
Stops pending discoveries. | |
PROCESS_THREAD (discovery_process, ev, data) | |
IPND Discovery Persistent Process. More... | |
IP-ND compliant discovery module IP-ND = http://tools.ietf.org/html/draft-irtf-dtnrg-ipnd-01.
Definition in file discovery_ipnd.c.