robur-coop / albatross

Albatross: orchestrate and manage MirageOS unikernels with Solo5
ISC License
141 stars 17 forks source link

Use get_ifindex_by_name #125

Closed reynir closed 1 year ago

reynir commented 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.

reynir commented 1 year ago

\o/ I'm happy with the much simpler code we have now.