d09304008e
* net/netdev/netdev_ioctl.c: (netdev_ifr_ioctl): The ioctl SIOCGIFHWADDR provides the hardware address (e.g., Ethernet MAC, etc.) of a network interface. It is based on Linux. (BSD-based systems don't have this ioctl.) The Linux implementation sets sa_family to ARPHRD_ETHER for Ethernet and IEEE 802.11 interfaces [1]. NuttX was setting it to NET_SOCK_FAMILY for these interface types as well as 6LoWPAN and PKTRADIO; this was incorrect and also the value of NET_SOCK_FAMILY varies based on Kconfig settings. Correcting this to ARPHRD_ETHER for Ethernet and IEEE 802.11 and ARPHRD_IEEE802154 for 6LoWPAN and PKTRADIO. References: [1] 'man 7 netdevice' on Linux. |
||
---|---|---|
.. | ||
Kconfig | ||
Make.defs | ||
netdev_carrier.c | ||
netdev_count.c | ||
netdev_default.c | ||
netdev_findbyaddr.c | ||
netdev_findbyindex.c | ||
netdev_findbyname.c | ||
netdev_foreach.c | ||
netdev_ifconf.c | ||
netdev_ioctl.c | ||
netdev_lladdrsize.c | ||
netdev_register.c | ||
netdev_txnotify.c | ||
netdev_unregister.c | ||
netdev_verify.c | ||
netdev.h | ||
netdown_notifier.c |