From ffb01b018c747560efb8e691c3041751614bfe5e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 8 Dec 2011 11:20:42 +0100 Subject: pingu_conf: add optional rule-priority config option This will set the preference for the 'ip rule' --- pingu_conf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pingu_conf.c') 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) { -- cgit v1.2.3