Added support for no-routes (X-Split-Exclude)

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-06 14:02:34 +01:00
parent 5f34edaf31
commit bcea928abe
15 changed files with 150 additions and 52 deletions

View File

@@ -46,6 +46,7 @@ static struct cfg_options available_options[] = {
{ .name = "deny-roaming", .type = OPTION_BOOLEAN },
{ .name = "require-cert", .type = OPTION_BOOLEAN },
{ .name = "route", .type = OPTION_MULTI_LINE },
{ .name = "no-route", .type = OPTION_MULTI_LINE },
{ .name = "iroute", .type = OPTION_MULTI_LINE },
{ .name = "dns", .type = OPTION_MULTI_LINE },
{ .name = "ipv4-dns", .type = OPTION_MULTI_LINE }, /* alias of dns */
@@ -183,6 +184,7 @@ unsigned prefix = 0;
READ_TF("require-cert", msg->require_cert, msg->has_require_cert);
READ_RAW_MULTI_LINE("route", msg->routes, msg->n_routes);
READ_RAW_MULTI_LINE("no-route", msg->no_routes, msg->n_no_routes);
READ_RAW_MULTI_LINE("iroute", msg->iroutes, msg->n_iroutes);
READ_RAW_MULTI_LINE("dns", msg->dns, msg->n_dns);