mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-12 00:10:14 +00:00
netlib and NSH: Add logic to set the IEEE802.15.4 PAN ID.
This commit is contained in:
parent
a029316ba7
commit
c2bdd49421
7 changed files with 236 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue