47 #include "lib/random.h"
52 #define MAX(a, b) ((a) > (b)? (a) : (b))
56 #define MIN(a, b) ((a) < (b)? (a) : (b))
62 #define PRINTF(...) printf(__VA_ARGS__)
69 recv(
struct broadcast_conn *broadcast,
const linkaddr_t *from)
80 if(c->dups == c->maxdups) {
95 sent(
struct broadcast_conn *bc,
int status,
int num_tx)
105 PRINTF(
"%d.%d: ipolite: send queuebuf %p\n",
110 queuebuf_to_packetbuf(c->q);
129 PRINTF(
"ipolite open channel %d\n", channel);
148 PRINTF(
"%d.%d: ipolite_send: cancel old send\n",
153 c->hdrsize = hdrsize;
155 PRINTF(
"%d.%d: ipolite_send: interval 0\n",
165 c->q = queuebuf_new_from_packetbuf();
172 PRINTF(
"%d.%d: ipolite_send: could not allocate queue buffer\n",