next up previous contents index
Next: 26.3.4 oskit_freebsd_net_close_ether_if: close an Up: 26.3 Interfaces Previous: 26.3.2 oskit_freebsd_net_open_ether_if: find and

26.3.3 oskit_freebsd_net_open_first_ether_if: find and open first ethernet interface

 

SYNOPSIS

#include <oskit/net/freebsd.h>

oskit_error_t oskit_freebsd_net_open_first_ether_if( [out] struct oskit_freebsd_net_ether_if ** out_eif);

DIRECTION

OS tex2html_wrap_inline32841 Network stack

DESCRIPTION

This function is a convenience function to find and open the first ethernet devicegif 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.

PARAMETERS

out_eif
*out_eif points to an oskit_freebsd_net_ether_if structure on success.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group