next up previous contents index
Next: 27 BOOTP Support: liboskit_bootp.a Up: 26.3 Interfaces Previous: 26.3.5 oskit_freebsd_net_ifconfig: configure an

26.3.6 oskit_freebsd_net_add_default_route: set a default route

 

SYNOPSIS

#include <oskit/net/freebsd.h>

oskit_error_t oskit_freebsd_net_add_default_route(char *gateway);

DIRECTION

OS tex2html_wrap_inline32841 Network stack

DESCRIPTION

This function sets a default route.


Limitation/pecularity of the current implementation:

Take a look at the implementation in freebsd/net/bsdnet_add_default_route.c.

PARAMETERS

gateway
The IP address of the default gateway to be set in "xxx.xxx.xxx.xxx" notation.

RETURNS

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


University of Utah Flux Research Group