diff --git a/net/sixlowpan/sixlowpan_hc06.c b/net/sixlowpan/sixlowpan_hc06.c index 204cf69cbcd..7072e880617 100644 --- a/net/sixlowpan/sixlowpan_hc06.c +++ b/net/sixlowpan/sixlowpan_hc06.c @@ -3,7 +3,7 @@ * 6lowpan HC06 implementation (draft-ietf-6lowpan-hc-06, updated to RFC * 6282) * - * Copyright (C) 2017, Gregory Nutt, all rights reserved + * Copyright (C) 2017-2018 Gregory Nutt, all rights reserved * Author: Gregory Nutt * * Derives from Contiki: @@ -506,7 +506,7 @@ static void uncompress_addr(FAR const struct netdev_varaddr_s *addr, if (fullmac) { - ipaddr[7] ^= 0x0200; + ipaddr[7] ^= HTONS(0x0200); } /* If we took the data from packet, then update the packet pointer */