next up previous contents index
Next: 26.3.2 oskit_freebsd_net_open_ether_if: find and Up: 26.3 Interfaces Previous: 26.3 Interfaces

26.3.1 oskit_freebsd_net_init: initialize the networking code

 

SYNOPSIS

#include <oskit/net/freebsd.h>

oskit_error_t oskit_freebsd_net_init( [out] oskit_socket_factory_t **outfact);

DIRECTION

OS tex2html_wrap_inline32841 Network stack

DESCRIPTION

This function initializes the FreeBSD networking code.

PARAMETERS

outfact
*outfact will contain a oskit_socket_factory_t * which can be used according to the specifications in the OSKit socket_factory COM interface in Chapter 8.

RETURNS

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


Limitation/pecularity of the current implementation:

oskit_freebsd_net_init will always succeed, and may panic otherwise.



University of Utah Flux Research Group