diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-20 15:48:49 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-20 15:48:49 +0200 |
commit | 7476d91f882da665b4d15ef879927cee3d7762e3 (patch) | |
tree | 0c37c2f3742fda73765e0fa41cd5ed024210837c /pingu_conf.c | |
parent | 8a091a690faa26da004e3b05bfc96f5602032c62 (diff) | |
download | pingu-7476d91f882da665b4d15ef879927cee3d7762e3.tar.bz2 pingu-7476d91f882da665b4d15ef879927cee3d7762e3.tar.xz |
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.
Diffstat (limited to 'pingu_conf.c')
-rw-r--r-- | pingu_conf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |