-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtnl_addr_delete 3.2.24 doesn't work #56
Comments
|
Thanks for this bug report Can you post the original Netlink request message as well? The one preceeding the error message. |
|
Damn, error in copy/paste sorry. There is the full capture : -- Debug: Sent Message: 127.0.0.1/8 inet dev lo scope host Same result on kernel : Linux ubuntu 2.6.32-57-generic and 3.2.0 |
|
Without looking deep into this, it could be the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1063885#c22 Could you please retry with removing the line https://github.com/thom311/libnl/blob/master/lib/route/addr.c#L601 ? |
|
You got'it that resolve the problem. Thanks for the fast response. |
|
Interesting. But it's not really the solution, because this line should be correct and is actually needed. Could you please give more information about the system where this happens? Kernel version, architecture, ubuntu-version |
|
Informations about the first system (a little old) : Full uname -a : The ip configuration : NetworkManager is running The second system : |
|
I agree that this is a kernel bug but I can't reproduce this on a 3.13 kernel. |
… 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. #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>
|
fixed by commit 5206c05 |
- libnl issue #56 (thom311/libnl#56): "Older kernels don't accept receiving unknown netlink attributes." (old kernel + new libnl ==> NetworkManager doesn't work)
… 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. thom311/libnl#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>
Hi,
i am working on the 3.2.24 version of libnl, and i think there are a bug on the rtnl_addr_add and rtnl_addr_delete.
Even the test library in src fail to remove a route with interactive command :
swissdotnet@ubuntu:~/networkManager/workspace/libnl/libnl-3.2.24/src$ sudo ./nl-addr-delete -i
127.0.0.1/8 inet dev lo scope host
Delete? (y/N) n
10.110.0.247/24 inet dev eth3 scope global
Delete? (y/N) y
Error: Unable to delete address: Invalid input data or parameter
With debug informations :
----------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 88
.type = 2
.flags = 0 <>
.seq = 1394642172
.port = 10735
[ERRORMSG] 20 octets
.error = -22 "Invalid argument"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 21 <0x15>
.flags = 5 <REQUEST,ACK>
.seq = 1394642172
.port = 10735
--------------------------- END NETLINK MESSAGE ---------------------------
-- Error received: Invalid argument
-- Original message: type=0x15 length=68 flags=<REQUEST,ACK> sequence-nr=1394642172 pid=10735
Error: Unable to delete address: Invalid input data or parameter
I have check with version 3.2.7 and i have no problem with this version.
Thanks
The text was updated successfully, but these errors were encountered: