aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_conf.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-12-08 11:20:42 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2011-12-08 11:20:42 +0100
commitffb01b018c747560efb8e691c3041751614bfe5e (patch)
tree6014855f36e359d0539d64f1e2cb83c1e0746f5e /pingu_conf.c
parent6c48490c23e8c32856d3dc49d95786cc5dd9e0a9 (diff)
downloadpingu-ffb01b018c747560efb8e691c3041751614bfe5e.tar.bz2
pingu-ffb01b018c747560efb8e691c3041751614bfe5e.tar.xz
pingu_conf: add optional rule-priority config option
This will set the preference for the 'ip rule'
Diffstat (limited to 'pingu_conf.c')
-rw-r--r--pingu_conf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pingu_conf.c b/pingu_conf.c
index ad433e8..d425322 100644
--- a/pingu_conf.c
+++ b/pingu_conf.c
@@ -138,6 +138,8 @@ static int pingu_conf_read_iface(struct pingu_conf *conf, char *ifname)
iface->gw_down_action = xstrdup(value);
} else if (strcmp(key, "required-hosts-online") == 0) {
iface->required_hosts_online = atoi(value);
+ } else if (strcmp(key, "rule-priority") == 0) {
+ iface->rule_priority = atoi(value);
} else if (strcmp(key, "load-balance") == 0) {
int weight = 0;
if (value != NULL) {