Commit b2626860 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow configuring per-interface flags manually.

parent 79e67b88
...@@ -392,6 +392,24 @@ parse_nconf(gnc_t gnc, void *closure) ...@@ -392,6 +392,24 @@ parse_nconf(gnc_t gnc, void *closure)
if(c < -1 || interval <= 0 || interval > 0xFFFF) if(c < -1 || interval <= 0 || interval > 0xFFFF)
goto error; goto error;
nconf->hello_interval = interval; nconf->hello_interval = interval;
} else if(strcmp(token, "wired") == 0) {
int v;
c = getbool(c, &v, gnc, closure);
if(c < -1)
goto error;
nconf->wired = v;
} else if(strcmp(token, "link-quality") == 0) {
int v;
c = getbool(c, &v, gnc, closure);
if(c < -1)
goto error;
nconf->lq = v;
} else if(strcmp(token, "split-horizon") == 0) {
int v;
c = getbool(c, &v, gnc, closure);
if(c < -1)
goto error;
nconf->split_horizon = v;
} else { } else {
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment