#include <oskit/net/freebsd.h>oskit_error_t oskit_freebsd_net_open_first_ether_if( [out] struct oskit_freebsd_net_ether_if ** out_eif);
OS Network stack
This function is a convenience function to find and open the first ethernet device and to create an associated oskit_freebsd_net_ether_if structure.
Limitation/pecularity of the current implementation:It leaks references to other ethernet devices, if any.
- out_eif
- *out_eif points to an oskit_freebsd_net_ether_if structure on success.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.