From 7476d91f882da665b4d15ef879927cee3d7762e3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 20 Aug 2013 15:48:49 +0200 Subject: pingu: add support for 'fwmark' route rule Support for adding a fwmark to an interface. It will make it possible to use firewall to mark specific traffic for a specific ISP. --- 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 57629b9..263a1f4 100644 --- a/pingu_conf.c +++ b/pingu_conf.c @@ -162,6 +162,8 @@ static int pingu_conf_read_iface(struct pingu_conf *conf, char *ifname) } else if (strcmp(key, "ping") == 0) { struct pingu_host *host = pingu_conf_new_host(value); host->iface = iface; + } else if (strcmp(key, "fwmark") == 0) { + iface->fwmark = atoi(value); } else { log_error("Unknown keyword '%s' on line %i", key, conf->lineno); -- cgit v1.2.3