Closed si74 closed 3 years ago
Note: Right now we're shelling out an iproute2 command for route-setting. But discovered that we can use rtnetlink and the netlink sockets to perhaps achieve some of this work.
Take a look at this: https://man7.org/linux/man-pages/man7/netlink.7.html
And at this: https://github.com/vishvananda/netlink
@nicboul as per our chat:
Brainstorming doc here: https://docs.google.com/drawings/d/1roLmnkihKfqFOXS_ZxdSqFfvWaGotA8RPmPBtRcBsck/edit
this code has been integrated into main go client so closing this
NOTE: The runCmd, interface creation, etc will be merged into forked tuntap package at a later point. The remainder of this PR (ARP-related code, has been merged into main).
TODOs:
clean up cruft on macb w/ old routes and tun iface [X] - abandoned