Contiki 2.5
|
implementation of flood routing More...
#include <string.h>
#include "net/netstack.h"
#include "net/rime/rimeaddr.h"
#include "lib/list.h"
#include "lib/memb.h"
#include "contiki.h"
#include "clock.h"
#include "logging.h"
#include "bundle.h"
#include "storage.h"
#include "sdnv.h"
#include "agent.h"
#include "discovery.h"
#include "statistics.h"
#include "bundleslot.h"
#include "delivery.h"
#include "convergence_layer.h"
#include "registration.h"
#include "routing.h"
Go to the source code of this file.
Macros | |
#define | EPIDEMIC_ROUTE_RETURN_OK 1 |
Internally used return values. | |
Functions | |
PROCESS (routing_process,"Epidemic ROUTE process") | |
Routing process. | |
void | routing_epidemic_init (void) |
called by agent at startup | |
void | routing_epidemic_schedule_resubmission (void) |
Poll our process, so that we can resubmit bundles. | |
struct neighbour_list_entry_t * | routing_epidemic_get_neighbour (rimeaddr_t *dest) |
checks for a neighbour in the neighbour list More... | |
void | routing_epidemic_new_neighbour (rimeaddr_t *dest) |
checks if there are bundle to send to dest More... | |
int | routing_epidemic_send_bundle (uint32_t bundle_number, rimeaddr_t *neighbour) |
Send bundle to neighbour. More... | |
int | routing_epidemic_send_to_local (struct routing_entry_t *entry) |
Deliver a bundle to a local service. More... | |
int | routing_epidemic_forward (struct routing_entry_t *entry) |
Forward a bundle to the next hop. More... | |
void | routing_epidemic_send_to_known_neighbours (void) |
iterate through all bundles and forward bundles More... | |
void | routing_epidemic_resubmit_bundles () |
Wrapper function for agent calls to resubmit bundles for already known neighbours. | |
int | routing_epidemic_new_bundle (uint32_t *bundle_number) |
Adds a new bundle to the list of bundles. More... | |
void | routing_epidemic_delete_bundle (uint32_t bundle_number) |
deletes bundle from list More... | |
void | routing_epidemic_bundle_sent (struct transmit_ticket_t *ticket, uint8_t status) |
Callback function informing us about the status of a sent bundle. More... | |
void | routing_epidemic_bundle_delivered_locally (struct mmem *bundlemem) |
Incoming notification, that service has finished processing bundle. More... | |
PROCESS_THREAD (routing_process, ev, data) | |
Routing persistent process. | |
implementation of flood routing
Definition in file routing_epidemic.c.