]> granicus.if.org Git - libnl/commit
route/addr: only sent IFA_FLAGS when needed to workaround picky older kernels
authorThomas Haller <thaller@redhat.com>
Thu, 3 Apr 2014 16:09:51 +0000 (18:09 +0200)
committerThomas Haller <thaller@redhat.com>
Fri, 4 Apr 2014 14:31:36 +0000 (16:31 +0200)
commit5206c050504f8676a24854519b9c351470fb7cc6
tree0b48e1cab8dc2da96fef0096cc042ce3e4ef90c0
parent34bfce62150d07cf9894f2d9cbd0c989a203ea52
route/addr: only sent IFA_FLAGS when needed to workaround picky older kernels

Older kernels don't accept receiving unknown netlink attributes.
See net/core/rtnetlink.c, rtnetlink_rcv_msg(). This was fixed by kernel
commit 661d2967b3f1b34eeaa7e212e7b9bbe8ee072b59.

As a workaround, only set the additional attributes, when the user
provided flags that makes this necessary and useful.

https://github.com/thom311/libnl/issues/56
https://bugzilla.redhat.com/show_bug.cgi?id=1063885

Based-on-patch-by: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/addr.c