sd-netlink,network: do not set NLM_F_CREATE and NLM_F_EXCL flags if an interface...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Oct 2024 14:32:50 +0000 (23:32 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 30 Oct 2024 09:28:18 +0000 (10:28 +0100)
commit7e322c3dd05ed3d1cfd0f8538b88742f928bdc86
treed6ba4c869dc8fafa8c32340da99ede1c380a14cc
parent0a1b553e2a38ada5c57527cab3700853846fb079
sd-netlink,network: do not set NLM_F_CREATE and NLM_F_EXCL flags if an interface index is specified

If an ifindex is specified, we are modifying the existing interface.
Hence, these flags should not be set. Otherwise, the request will be
refused with -EEXIST.
src/libsystemd/sd-netlink/netlink-message-rtnl.c
src/network/netdev/bridge.c
src/network/netdev/ipoib.c
src/network/networkd-can.c
src/network/networkd-setlink.c