Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
Note: The `SIOCSIFADDR` and `SIOCDIFADDR` uses different params for `AF_INET` and `AF_INET6` (`struct ifreq` vs `struct in6_ifreq`) as defined by https://man7.org/linux/man-pages/man7/netdevice.7.html Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
Co-authored-by: Daniel Agar <daniel@agar.ca> Signed-off-by: chao an <anchao@xiaomi.com>