Contiki 2.5
|
Basic discovery module. More...
#include <string.h>
#include "clock.h"
#include "net/netstack.h"
#include "net/packetbuf.h"
#include "net/rime/rimeaddr.h"
#include "logging.h"
#include "dtn_network.h"
#include "agent.h"
#include "discovery.h"
Go to the source code of this file.
Functions | |
void | discovery_basic_neighbour_found (rimeaddr_t *neighbour) |
We have found a new neighbour, now go and notify the agent. More... | |
void | discovery_basic_refresh_neighbour (rimeaddr_t *neighbour) |
Checks if ''neighbours'' is already known Yes: refresh timestamp No: Create entry. More... | |
void | discovery_basic_save_neighbour (rimeaddr_t *neighbour) |
Save neighbour to local cache. More... | |
void | discovery_basic_stop_pending () |
Stops pending discoveries. | |
LIST (neighbour_list) | |
List and memory blocks to save information about neighbours. | |
void | discovery_basic_init () |
Initialize basic discovery module. | |
uint8_t | discovery_basic_is_neighbour (rimeaddr_t *dest) |
Is the provided address currently listed as neighbour? More... | |
void | discovery_basic_send_discovery (rimeaddr_t *destination) |
Send out discovery to provided address. More... | |
uint8_t | discovery_basic_is_beacon (uint8_t *msg) |
checks if incoming message is an answer to a discovery message More... | |
uint8_t | discovery_basic_is_discovery (uint8_t *msg, rimeaddr_t *dest) |
checks if incoming message is a discovery message More... | |
void | discovery_basic_enable () |
Enable discovery functionality. | |
void | discovery_basic_disable () |
Disable discovery functionality Prevents outgoing packets from being sent. | |
void | discovery_basic_receive (rimeaddr_t *source, uint8_t *payload, uint8_t length) |
DTN Network has received an incoming discovery packet. More... | |
uint8_t | discovery_basic_discover (rimeaddr_t *dest) |
Start to discover a neighbour. More... | |
struct discovery_neighbour_list_entry * | discovery_basic_list_neighbours () |
Returns the list of currently known neighbours. More... | |
void | b_dis_start_pending () |
Starts a periodic rediscovery. | |
PROCESS_THREAD (discovery_process, ev, data) | |
Basic Discovery Persistent Process. More... | |
Basic discovery module.
Definition in file discovery_basic.c.