little-dude / netlink

netlink libraries for rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot create VxLan interface with IPv6 local address, underlying enum variant is IFLA_VXLAN_LOCAL instead of IFLA_VXLAN_LOCAL6

uprhst opened this issue · comments

During my attempts to setup a vxlan interface with ipv6 local address I stumbled upon netlink errors where the payload message had Local([bytes here]) instead of Local6([...]).

Tracked it down to the code below, where IFLA_VXLAN_LOCAL should be IFLA_VXLAN_LOCAL6 for the Local6() enum variant.

Local(_) => IFLA_VXLAN_LOCAL,
Local6(_) => IFLA_VXLAN_LOCAL,