Added parameter to ipolite that specifies how many dups that are acceptable, before suppressing one's own packet

This commit is contained in:
adamdunkels 2010-01-25 13:54:06 +00:00
parent 0b58ca3b22
commit 423e37f426
4 changed files with 25 additions and 16 deletions

View file

@ -33,7 +33,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: netflood.c,v 1.5 2009/11/09 08:22:40 adamdunkels Exp $
* $Id: netflood.c,v 1.6 2010/01/25 13:54:06 adamdunkels Exp $
*/
/**
@ -148,7 +148,7 @@ void
netflood_open(struct netflood_conn *c, clock_time_t queue_time,
uint16_t channel, const struct netflood_callbacks *u)
{
ipolite_open(&c->c, channel, &netflood);
ipolite_open(&c->c, channel, 1, &netflood);
c->u = u;
c->queue_time = queue_time;
}