diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-05 09:37:27 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-05 09:46:34 +0200 |
commit | dcd2b0e077ff2995660f15ef28580e8a002c5c5f (patch) | |
tree | a1e67a24467e5c9600fe738994cb7090ba6917d4 /pingu_conf.h | |
parent | aff9e3e9c991544a8ade2b576da3690dc0dbb071 (diff) | |
download | pingu-dcd2b0e077ff2995660f15ef28580e8a002c5c5f.tar.bz2 pingu-dcd2b0e077ff2995660f15ef28580e8a002c5c5f.tar.xz |
pingu: implement new config format
New format allows users to define interfaces and ping hosts separately.
This means we can run pingu in routing-only mode to set up and manage
route tables for multi-isp.
We allow the user config a preferred alternate route table for each
interface. If not configured, pingu will pick one.
Example interface definition looks like:
interface eth0 {
route-table 10
}
Example host definition looks like:
host 192.168.0.1 {
bind-interface eth0
}
Diffstat (limited to 'pingu_conf.h')
-rw-r--r-- | pingu_conf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pingu_conf.h b/pingu_conf.h new file mode 100644 index 0000000..8962475 --- /dev/null +++ b/pingu_conf.h @@ -0,0 +1,6 @@ +#ifndef PINGU_CONF_H +#define PINGU_CONF_H + +int pingu_conf_read(const char *filename); + +#endif |