commit | d05b9dd8d56f6337839c0a896753940d543e975a | [log] [tgz] |
---|---|---|
author | Jian Zhang <zhangjian.3032@bytedance.com> | Tue Jul 04 14:48:40 2023 +0800 |
committer | Jian Zhang <zhangjian.3032@bytedance.com> | Tue Jul 04 19:08:57 2023 +0800 |
tree | 624eeb49b55dee291c4151dad8d53a8fee790073 | |
parent | 127a24bfd495e610502f1fed30c0f9810d0a73fb [diff] |
fix set ipv4 netmask failed Before `createIfAddr`, we accept the address is nullopt when set the ipv4 netmask, so, if the address is not null, check the address is `0.0.0.0`, if null, use the `ifaddr->address`. Tested: 1. Set netmask. ~# ipmitool lan set 1 netmask 255.255.255.0 2. Check the netmask. ~# ipmitool lan print 1 | grep -i sub Subnet Mask : 255.255.255.0 Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com> Change-Id: I7b5967cb8c00bc9a1507c04df06e7898478b079f
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage