Compress UDP header when UIP_CONF_UDP is disabled but we are routing
others' UDP packets.
This commit is contained in:
parent
e7cd04b558
commit
27daa94030
1 changed files with 2 additions and 2 deletions
|
@ -578,7 +578,7 @@ compress_hdr_hc06(rimeaddr_t *rime_destaddr)
|
||||||
/* Note that the payload length is always compressed */
|
/* Note that the payload length is always compressed */
|
||||||
|
|
||||||
/* Next header. We compress it if UDP */
|
/* 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) {
|
if(UIP_IP_BUF->proto == UIP_PROTO_UDP) {
|
||||||
iphc0 |= SICSLOWPAN_IPHC_NH_C;
|
iphc0 |= SICSLOWPAN_IPHC_NH_C;
|
||||||
}
|
}
|
||||||
|
@ -700,7 +700,7 @@ compress_hdr_hc06(rimeaddr_t *rime_destaddr)
|
||||||
|
|
||||||
uncomp_hdr_len = UIP_IPH_LEN;
|
uncomp_hdr_len = UIP_IPH_LEN;
|
||||||
|
|
||||||
#if UIP_CONF_UDP
|
#if UIP_CONF_UDP || UIP_CONF_ROUTER
|
||||||
/* UDP header compression */
|
/* UDP header compression */
|
||||||
if(UIP_IP_BUF->proto == UIP_PROTO_UDP) {
|
if(UIP_IP_BUF->proto == UIP_PROTO_UDP) {
|
||||||
PRINTF("IPHC: Uncompressed UDP ports on send side: %x, %x\n",
|
PRINTF("IPHC: Uncompressed UDP ports on send side: %x, %x\n",
|
||||||
|
|
Loading…
Reference in a new issue