incubator-nuttx/net/utils
Zhe Weng 4c99ad1ba9 net/utils: Switch argument order of net_ipv6_pref2mask
When implementing IPv6-related logic, we found the `net_ipv6_pref2mask`
and `net_ipv6addr_copy` are using different argument order:
```
net_ipv6addr_copy(ifaddr->addr, addr);
net_ipv6_pref2mask(preflen, ifaddr->mask);
```
Change the order to:
```
net_ipv6addr_copy(ifaddr->addr, addr);
net_ipv6_pref2mask(ifaddr->mask, preflen);
```

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-11-07 19:30:36 +08:00
..
CMakeLists.txt netlink: Explicitly set ip address for netlink notify 2023-11-07 19:30:36 +08:00
Kconfig net: Rename tcp_dataconcat to net_iob_concat 2023-07-18 10:51:45 +08:00
Make.defs netlink: Explicitly set ip address for netlink notify 2023-11-07 19:30:36 +08:00
net_chksum.c Remove #warning if the code already return the error code or value 2023-05-18 15:44:28 +03:00
net_cmsg.c net/net_cmsg.c: Fix warning about using void* arithmetics 2023-05-10 17:58:25 +08:00
net_dsec2tick.c
net_dsec2timeval.c
net_getrandom.c net/tcp: Take out get random process as common function 2023-11-06 09:04:09 +08:00
net_icmpchksum.c
net_incr32.c
net_iob_concat.c net: Rename tcp_dataconcat to net_iob_concat 2023-07-18 10:51:45 +08:00
net_ipchksum.c
net_ipv6_maskcmp.c
net_ipv6_pref2mask.c net/utils: Switch argument order of net_ipv6_pref2mask 2023-11-07 19:30:36 +08:00
net_lock.c net: remove [enter|leave]_critical_section and sched_[un]lock 2023-08-10 12:24:30 +03:00
net_mask2pref.c net/netdev: Support multiple IPv6 addresses per device 2023-11-07 19:30:36 +08:00
net_snoop.c refine: set file mode when oflags contains O_CREAT 2023-09-23 15:20:51 +08:00
net_tcpchksum.c
net_timeval2dsec.c
net_udpchksum.c
utils.h net/utils: Switch argument order of net_ipv6_pref2mask 2023-11-07 19:30:36 +08:00