ironcore-dev / metalbond

Route reflector for IronCore Infrastructure Overlay Network
Apache License 2.0
0 stars 1 forks source link

malformed netlink messages #12

Open MalteJ opened 2 years ago

MalteJ commented 2 years ago

We get netlink error messages when putting ip6tnl encap routes into the kernel route table:

image

Still, it works somehow.

gehoern commented 2 years ago

image

have the same here

directly after the restart you see on the picture everything worked as expected

byteocean commented 2 years ago

This issue regarding leftover bytes has something to do with the netlink msg content when requesting the linux kernel to insert ip6tnl routing rules. It might be caused by excessive long Attr fields in netlink msg or due to alignment, which are uncertain yet (the initial conclusion is derived from the comparison between netlink messages from our netlink patch and iproute2). For now, two fields, tc and options, which are currently not needed are removed from netlink messages to avoid such warning/error in kernel.

This branch, https://github.com/byteocean/netlink/tree/ip6tnl-pr, has been updated to reflect the above changes. Hence, for metalbond, in go.mod, if netlink is pointed to the latest change of netlink patch as following, this system message shall be gone. replace github.com/vishvananda/netlink v1.1.0 => github.com/byteocean/netlink v1.1.1-0.20220608143109-d6cf8228de69