1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00

Merge pull request #3424 from authmillenon/ng_sixlowpan_iphc/fix/null_iphc2

ng_sixlowpan_iphc: null correct byte for IPHC2 dispatch
This commit is contained in:
Martine Lenders 2015-07-15 23:21:46 +02:00
commit ae7701e0ef

View File

@ -399,7 +399,7 @@ bool ng_sixlowpan_iphc_encode(ng_pktsnip_t *pkt)
/* set initial dispatch value*/
iphc_hdr[IPHC1_IDX] = NG_SIXLOWPAN_IPHC1_DISP;
iphc_hdr[2] = 0;
iphc_hdr[IPHC2_IDX] = 0;
/* check for available contexts */
if (!ng_ipv6_addr_is_unspecified(&(ipv6_hdr->src))) {