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 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 net: Fix: left shift of 1 by 31 places cannot be represented in type 'long int' 2021-06-23 05:24:15 -07:00
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/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