aboutsummaryrefslogtreecommitdiffstats
path: root/src/pingu_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pingu_conf.c')
-rw-r--r--src/pingu_conf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pingu_conf.c b/src/pingu_conf.c
index 4bdb1bf..24ef229 100644
--- a/src/pingu_conf.c
+++ b/src/pingu_conf.c
@@ -153,7 +153,11 @@ static int pingu_conf_read_iface(struct pingu_conf *conf, char *ifname)
if (key == NULL || key[0] == '}')
break;
if (strcmp(key, "route-table") == 0) {
- pingu_iface_set_route_table(iface, atoi(value));
+ int status, n;
+ status = parse_int(value, &n, conf->lineno);
+ if (status == 0)
+ pingu_iface_set_route_table(iface, n);
+ r += status;
} else if (strcmp(key, "label") == 0) {
iface->label = xstrdup(value);
} else if (strcmp(key, "gateway-up-action") == 0) {