1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/projects/OHM/ohm_routing.h

19 lines
376 B
C
Raw Normal View History

2011-10-05 15:30:59 +02:00
#ifndef WEATHER_ROUTING_H
#define WEATHER_ROUTING_H
#include <time.h>
#define FLOODING_PROB (100)
#define MAX_SOURCES (20)
#define MAX_INTERVAL (5 * 60)
typedef struct {
uint8_t id;
time_t timestamp;
} source_timestamp_t;
void route_packet(void* msg, int msg_size);
uint8_t update_sources(uint8_t id, time_t timestamp);
#endif /* WEATHER_ROUTING_H */