#include <oskit/net/freebsd.h>oskit_error_t oskit_freebsd_net_add_default_route(char *gateway);
OS Network stack
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.
- gateway
- The IP address of the default gateway to be set in "xxx.xxx.xxx.xxx" notation.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.