diff options
author | Wen Liang <liangwen12year@gmail.com> | 2022-09-08 09:28:28 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-09-08 19:43:31 +0200 |
commit | 96d266cf518f221df37008c87e49b42b09f7da89 (patch) | |
tree | 1faa001c05bf142c7d4543231ea7cea4a6750b70 /src/libnm-client-public/nm-enum-types.c.template | |
parent | ef51d0f980bdadd8274aafc609f92a9730f0c55e (diff) | |
download | NetworkManager-96d266cf518f221df37008c87e49b42b09f7da89.tar.gz |
platform: add NMPIPAddressSyncFlags parameter to nm_platform_ip_address_sync()
Previously, nm_platform_ip_address_sync() would always add the "IFA_F_NOPREFIXROUTE"
flag. Add a way to let the caller control that.
Add a flags argument, with a new flag "with-noprefixroute". By default
(with flags "none"), nm_platform_ip_address_sync() would no longer
add "IFA_F_NOPREFIXROUTE" flag, but the caller can now opt-in to that.
The purpose is that on "lo" interface we will want to let kernel
handle the prefix route. So have a per-ifindex opt-in for controlling
this.
During nm_platform_ip_address_flush() we use "none" flags, because the
function anyway doesn't add any addresses, so it wouldn't matter.
There is no change in behavior.
Co-authored-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/libnm-client-public/nm-enum-types.c.template')
0 files changed, 0 insertions, 0 deletions