6loWPAN: Correct a couple of tiny but fatal bugs.

This commit is contained in:
Gregory Nutt 2017-04-03 16:17:10 -06:00
parent 7cb34d969d
commit cc9445624f
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ static void sixlowpan_setup_params(FAR struct ieee802154_driver_s *ieee,
/* Initialize all prameters to all zero */
memset(&params, 0, sizeof(params));
memset(params, 0, sizeof(params));
/* Reset to an empty frame */

View File

@ -149,7 +149,7 @@ void sixlowpan_rimefromip(const net_ipv6addr_t ipaddr,
{
/* REVISIT: See notes about 2 byte addresses in sixlowpan_ipfromrime() */
DEBUGASSERT(ipaddr[0] == 0xfe80);
DEBUGASSERT(ipaddr[0] == HTONS(0xfe80));
memcpy(rime, &ipaddr[4], CONFIG_NET_6LOWPAN_RIMEADDR_SIZE);
rime->u8[0] ^= 0x02;