Zhe Weng fb72849089 nshlib/ifconfig: Set network mask before setting gateway
Switch the order of setting network mask and gateway, re-order only, no
logic change.

In IPv6 cases, we may set `addr6` and prefix length together to an
interface, but the gateway logic may change the value in `addr6`, and
result in wrong address set to the interface.

The order doesn't change behavior in network stack, so we just need to
make sure the value is correct.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-12-07 07:16:43 -08:00
..
2023-07-08 13:52:02 +08:00
2023-03-23 22:10:19 +02:00
2023-09-21 10:48:29 +08:00
2023-05-08 21:35:16 +03:00
2023-08-01 08:13:23 -07:00
2022-10-16 19:07:16 +02:00
2022-04-22 11:14:17 +08:00
2023-05-08 21:35:16 +03:00