#include "config.h"
#include "syshead.h"
#include "networking.h"
#include <assert.h>
Go to the source code of this file.
|
static int | net__iface_up (bool up) |
|
static int | net__iface_new (const char *name, const char *type) |
|
static int | net__iface_type (const char *name, const char *type) |
|
static int | net__iface_del (const char *name) |
|
static int | net__iface_mtu_set (int mtu) |
|
static int | net__addr_v4_add (const char *addr_str, int prefixlen) |
|
static int | net__addr_v6_add (const char *addr_str, int prefixlen) |
|
static int | net__route_v4_add (const char *dst_str, int prefixlen, int metric) |
|
static int | net__route_v4_add_gw (const char *dst_str, int prefixlen, const char *gw_str, int metric) |
|
static int | net__route_v6_add (const char *dst_str, int prefixlen, int metric) |
|
static int | net__route_v6_add_gw (const char *dst_str, int prefixlen, const char *gw_str, int metric) |
|
static void | usage (char *name) |
|
int | main (int argc, char *argv[]) |
|
|
static char * | iface = "ovpn-dummy0" |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 224 of file test_networking.c.
References iface, net__addr_v4_add(), net__addr_v6_add(), net__iface_del(), net__iface_mtu_set(), net__iface_new(), net__iface_type(), net__iface_up(), net__route_v4_add(), net__route_v4_add_gw(), net__route_v6_add(), net__route_v6_add_gw(), and usage().
◆ net__addr_v4_add()
static int net__addr_v4_add |
( |
const char * |
addr_str, |
|
|
int |
prefixlen |
|
) |
| |
|
static |
◆ net__addr_v6_add()
static int net__addr_v6_add |
( |
const char * |
addr_str, |
|
|
int |
prefixlen |
|
) |
| |
|
static |
◆ net__iface_del()
static int net__iface_del |
( |
const char * |
name | ) |
|
|
static |
◆ net__iface_mtu_set()
static int net__iface_mtu_set |
( |
int |
mtu | ) |
|
|
static |
◆ net__iface_new()
static int net__iface_new |
( |
const char * |
name, |
|
|
const char * |
type |
|
) |
| |
|
static |
◆ net__iface_type()
static int net__iface_type |
( |
const char * |
name, |
|
|
const char * |
type |
|
) |
| |
|
static |
◆ net__iface_up()
static int net__iface_up |
( |
bool |
up | ) |
|
|
static |
◆ net__route_v4_add()
static int net__route_v4_add |
( |
const char * |
dst_str, |
|
|
int |
prefixlen, |
|
|
int |
metric |
|
) |
| |
|
static |
◆ net__route_v4_add_gw()
static int net__route_v4_add_gw |
( |
const char * |
dst_str, |
|
|
int |
prefixlen, |
|
|
const char * |
gw_str, |
|
|
int |
metric |
|
) |
| |
|
static |
◆ net__route_v6_add()
static int net__route_v6_add |
( |
const char * |
dst_str, |
|
|
int |
prefixlen, |
|
|
int |
metric |
|
) |
| |
|
static |
◆ net__route_v6_add_gw()
static int net__route_v6_add_gw |
( |
const char * |
dst_str, |
|
|
int |
prefixlen, |
|
|
const char * |
gw_str, |
|
|
int |
metric |
|
) |
| |
|
static |
◆ usage()
static void usage |
( |
char * |
name | ) |
|
|
static |
◆ iface
char* iface = "ovpn-dummy0" |
|
static |