From 27daa940303f99138d8f235f98eaf3fbb9d0742f Mon Sep 17 00:00:00 2001 From: Ivan Delamer Date: Wed, 1 Feb 2012 13:06:38 -0700 Subject: [PATCH] Compress UDP header when UIP_CONF_UDP is disabled but we are routing others' UDP packets. --- core/net/sicslowpan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/sicslowpan.c b/core/net/sicslowpan.c index 1afd46279..24d57ddbe 100644 --- a/core/net/sicslowpan.c +++ b/core/net/sicslowpan.c @@ -578,7 +578,7 @@ compress_hdr_hc06(rimeaddr_t *rime_destaddr) /* Note that the payload length is always compressed */ /* Next header. We compress it if UDP */ -#if UIP_CONF_UDP +#if UIP_CONF_UDP || UIP_CONF_ROUTER if(UIP_IP_BUF->proto == UIP_PROTO_UDP) { iphc0 |= SICSLOWPAN_IPHC_NH_C; } @@ -700,7 +700,7 @@ compress_hdr_hc06(rimeaddr_t *rime_destaddr) uncomp_hdr_len = UIP_IPH_LEN; -#if UIP_CONF_UDP +#if UIP_CONF_UDP || UIP_CONF_ROUTER /* UDP header compression */ if(UIP_IP_BUF->proto == UIP_PROTO_UDP) { PRINTF("IPHC: Uncompressed UDP ports on send side: %x, %x\n",