Adding VXLAN Support
gabrik opened this issue · comments
Hi,
First, thank you for this very useful crate.
I noticed that in rtnetlink
only some types of interfaces can be created.
And I also see that the VxLAN info is not yet defined:
As this is very interesting for me to have if you can point me to some references I can try to add it and do a PR with the code.
Should I follow libnl for the definition of the attributes? https://www.infradead.org/~tgr/libnl/doc/api/vxlan_8c_source.html
Thanks
Hey, thanks a lot for taking a stab at this!
I think libnl
is indeed a good source. The netlink go library seems to also support vxlan attributes, so you may look there as well, if you want: https://github.com/vishvananda/netlink/blob/d40f9887b852ec4ce633f2a46734422c87fc8336/link_linux.go#L904
This is was implemented by #114, I'm closing this issue