From 0bad2b1748c10ea1c866b0af58eaec10b7b6db7f Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 26 Nov 2012 19:41:11 +0100 Subject: [PATCH] Added a configuration option to annotate IP transmissions with red arrows in Cooja. --- core/net/tcpip.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/net/tcpip.c b/core/net/tcpip.c index f6184144a..018a6a982 100644 --- a/core/net/tcpip.c +++ b/core/net/tcpip.c @@ -586,6 +586,11 @@ tcpip_ipv6_output(void) } else { nexthop = &locrt->nexthop; } +#if TCPIP_CONF_ANNOTATE_TRANSMISSIONS + if(nexthop != NULL) { + printf("#L %u 1; red\n", nexthop->u8[sizeof(uip_ipaddr_t) - 1]); + } +#endif /* TCPIP_CONF_ANNOTATE_TRANSMISSIONS */ } /* End of next hop determination */ #if UIP_CONF_IPV6_RPL