From 90e969344afa0b6c73eb58602afaa0ed0fd38814 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Fri, 16 Mar 2012 03:08:47 -0700 Subject: [PATCH] added config for serializing attributes --- examples/ipv6/native-border-router/border-router-rdc.c | 4 +++- examples/ipv6/native-border-router/project-conf.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/ipv6/native-border-router/border-router-rdc.c b/examples/ipv6/native-border-router/border-router-rdc.c index 5e4540714..78699122f 100644 --- a/examples/ipv6/native-border-router/border-router-rdc.c +++ b/examples/ipv6/native-border-router/border-router-rdc.c @@ -117,8 +117,10 @@ send_packet(mac_callback_t sent, void *ptr) } else { /* here we send the data over SLIP to the radio-chip */ - + size = 0; +#if SERIALIZE_ATTRIBUTES size = packetutils_serialize_atts(&buf[3], sizeof(buf) - 3); +#endif if(size < 0 || size + packetbuf_totlen() + 3 > sizeof(buf)) { PRINTF("br-rdc: send failed, too large header\n"); mac_call_sent_callback(sent, ptr, MAC_TX_ERR_FATAL, 1); diff --git a/examples/ipv6/native-border-router/project-conf.h b/examples/ipv6/native-border-router/project-conf.h index 90576783a..2ab3cda7b 100644 --- a/examples/ipv6/native-border-router/project-conf.h +++ b/examples/ipv6/native-border-router/project-conf.h @@ -45,6 +45,8 @@ #undef WEBSERVER_CONF_CFS_CONNS #define WEBSERVER_CONF_CFS_CONNS 2 +#define SERIALIZE_ATTRIBUTES 1 + #define CMD_CONF_OUTPUT border_router_cmd_output #undef NETSTACK_CONF_RDC