netlib and NSH: Add logic to set the IEEE802.15.4 PAN ID.

This commit is contained in:
Gregory Nutt
2017-04-19 18:10:19 -06:00
parent a029316ba7
commit c2bdd49421
7 changed files with 236 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ int netlib_setnodeaddr(FAR const char *ifname, FAR const uint8_t *nodeaddr)
req.ifr_hwaddr.sa_family = AF_INET6;
memcpy(&req.ifr_hwaddr.sa_data, nodeaddr, NET_6LOWPAN_RIMEADDR_SIZE);
/* Perform the ioctl to set the MAC address */
/* Perform the ioctl to set the node address */
ret = ioctl(sockfd, SIOCSIFHWADDR, (unsigned long)&req);
close(sockfd);