nuttx/net/netdev
Nathan Hartman 6c4bd5c5ef net: Fix memcpy() size used by SIOCSIFHWADDR for radios
* net/netdev/netdev_ioctl.c:
  (netdev_ifr_ioctl): The ioctl SIOCSIFHWADDR sets the hardware address
   (e.g., Ethernet MAC, etc.) of a network interface. Radio devices may
   have different lengths of hardware addresses, such as
   NET_6LOWPAN_EADDRSIZE (8), NET_6LOWPAN_SADDRSIZE (2), or
   RADIO_MAX_ADDRLEN (8). Also, Kconfig CONFIG_PKTRADIO_ADDRLEN allows
   the user to set any arbitrary size. Note that while the sister ioctl
   SIOCGIFHWADDR "get hardware address" copies
   `dev->d_mac.radio.nv_addrlen` bytes, SIOCSIFHWADDR was copying
   NET_6LOWPAN_ADDRSIZE bytes unconditionally. Depending on which radio
   is used, this could be incorrect. Fixing it to use
   `dev->d_mac.radio.nv_addrlen` for SIOCSIFHWADDR as well. Also adding
   DEBUGASSERT to ensure this is within bounds of source and
   destination of the copy.
2022-09-16 02:59:40 +08:00
..
Kconfig
Make.defs
netdev.h net/netdev: move netdev_ifup/down to public header 2022-07-03 02:28:50 +08: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 memcpy() size used by SIOCSIFHWADDR for radios 2022-09-16 02:59:40 +08:00
netdev_lladdrsize.c
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
netdown_notifier.c