diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2024-04-26 00:04:53 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-04-26 07:46:54 +0200 |
commit | d03c4e20202b9546b2b233a2ff98cb3b3395b8d9 (patch) | |
tree | 554d790008a0374ec3647b4cbaf2ef6955bedef9 /tap.c | |
parent | bfc83b54c43bed241282365d29d3ecd34ef88e8e (diff) | |
download | passt-d03c4e20202b9546b2b233a2ff98cb3b3395b8d9.tar passt-d03c4e20202b9546b2b233a2ff98cb3b3395b8d9.tar.gz passt-d03c4e20202b9546b2b233a2ff98cb3b3395b8d9.tar.bz2 passt-d03c4e20202b9546b2b233a2ff98cb3b3395b8d9.tar.lz passt-d03c4e20202b9546b2b233a2ff98cb3b3395b8d9.tar.xz passt-d03c4e20202b9546b2b233a2ff98cb3b3395b8d9.tar.zst passt-d03c4e20202b9546b2b233a2ff98cb3b3395b8d9.zip |
netlink: Use IFA_F_NODAD also while duplicating addresses from the host2024_04_26.d03c4e2
...not just for a single set address (legacy operation with
--no-copy-addrs). I forgot to add this to nl_addr_dup().
Note that we can have two version of flags: the 8-bit ifa_flags in
ifaddrmsg, and the newer 32-bit version as IFA_FLAGS attribute, which
is given priority if present. Make sure IFA_F_NODAD is set in both.
Without this, a Podman user reports, something on the lines of:
pasta --config-net -- ping -c1 -6 passt.top
would fail as the kernel would start Duplicate Address Detection
once we configure the address, which can't really work (and doesn't
make sense) in this case.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tap.c')
0 files changed, 0 insertions, 0 deletions