nuttx/net/netdev
Nathan Hartman d09304008e net: Fix sa_family returned by SIOCGIFHWADDR
* 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.
2022-09-16 02:59:50 +08:00
..
Kconfig net/netdev: Add CONFIG_NETDEV_CAN_FILTER_IOCTL 2022-05-06 08:54:58 +02:00
Make.defs net: Move if_nametoindex and if_indextoname to libc 2021-12-19 10:08:57 -06:00
netdev_carrier.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
netdev_count.c
netdev_default.c
netdev_findbyaddr.c
netdev_findbyindex.c
netdev_findbyname.c
netdev_foreach.c
netdev_ifconf.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
netdev_ioctl.c net: Fix sa_family returned by SIOCGIFHWADDR 2022-09-16 02:59:50 +08:00
netdev_lladdrsize.c netdev/lladdrsize: remove invalid duplicate case 2022-02-07 20:08:26 +08:00
netdev_register.c net_if: add IFF_LOOPBACK/POINTOPOINT/MULTICAST/BROADCAST 2022-07-03 09:57:10 -04:00
netdev_txnotify.c
netdev_unregister.c
netdev_verify.c
netdev.h net/netdev: move netdev_ifup/down to public header 2022-07-03 02:28:50 +08:00
netdown_notifier.c sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00