-
Thomas Haller authored
Extended address flags are represented by the additional netlink attribute IFA_FLAGS. Older kernels don't know this flag and refuse the messages RTM_NEWADDR and RTMDEL_ADDR when it contains unknown attributes. See net/core/rtnetlink.c, rtnetlink_rcv_msg(). This was fixed by kernel commit 661d2967b3f1b34eeaa7e212e7b9bbe8ee072b59. libnl was fixed in commit 5206c050504f8676a24854519b9c351470fb7cc6 only to send the additional netlink attribute, when there are actually flags that make this necessary. This commit changes nm-platform to strip the flags to &= 0xFF, if we detect that the kernel does not understand extended address flags. https://bugzilla.redhat.com/show_bug.cgi?id=1063885 Signed-off-by: Thomas Haller <thaller@redhat.com>
dac51747