Closed reynir closed 1 year ago
This is an alternative to #123 and #124 that expects from the C stubs a function get_ifindex_by_name. This simplifies the OCaml code, and allows us to use rtnl_link_get_by_name on Linux, and on FreeBSD the ifindex dance is moved to the C stub.
get_ifindex_by_name
rtnl_link_get_by_name
\o/ I'm happy with the much simpler code we have now.
This is an alternative to #123 and #124 that expects from the C stubs a function
get_ifindex_by_name
. This simplifies the OCaml code, and allows us to usertnl_link_get_by_name
on Linux, and on FreeBSD the ifindex dance is moved to the C stub.