preliminary configuration for networks.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-01-13 13:31:38 +01:00
parent cd440afc7e
commit 6db0cf229a
5 changed files with 351 additions and 151 deletions

View File

@@ -71,7 +71,14 @@ static struct cfg_st config = {
.root_dir = "root/",
.cookie_validity = 3600,
.db_file = "/tmp/db",
.ca = NULL
.ca = NULL,
.networks_size = 1,
.networks = {{
.name = "vpns0",
.ipv4_netmask = "255.255.255.0",
.ipv4 = "192.168.55.1",
.ipv4_dns = "192.168.55.1",
}}
};
/* Returns 0 on success or negative value on error.