made number of transmissions configurable

This commit is contained in:
joxe 2010-10-26 13:25:32 +00:00
parent 09ce205987
commit 43023ab425

View file

@ -32,7 +32,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: sicslowpan.c,v 1.46 2010/10/19 18:29:04 adamdunkels Exp $
* $Id: sicslowpan.c,v 1.47 2010/10/26 13:25:32 joxe Exp $
*/
/**
* \file
@ -101,6 +101,12 @@ void uip_log(char *msg);
#define UIP_LOG(m)
#endif /* UIP_LOGGING == 1 */
#ifdef SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS
#define SICSLOWPAN_MAX_MAC_TRANSMISSIONS SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS
#else
#define SICSLOWPAN_MAX_MAC_TRANSMISSIONS 3
#endif
#ifndef SICSLOWPAN_COMPRESSION
#ifdef SICSLOWPAN_CONF_COMPRESSION
#define SICSLOWPAN_COMPRESSION SICSLOWPAN_CONF_COMPRESSION
@ -1276,7 +1282,8 @@ output(uip_lladdr_t *localdest)
packetbuf_clear();
rime_ptr = packetbuf_dataptr();
packetbuf_set_attr(PACKETBUF_ATTR_MAX_MAC_TRANSMISSIONS, 3);
packetbuf_set_attr(PACKETBUF_ATTR_MAX_MAC_TRANSMISSIONS,
SICSLOWPAN_MAX_MAC_TRANSMISSIONS);
#define TCP_FIN 0x01
/* Set stream mode for all TCP packets, except FIN packets. */