summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-09 16:22:34 +0100
committerTom Gundersen <teg@jklm.no>2015-02-09 16:53:54 +0100
commit769b56a308c3f3d3952eda87fd4fb004207f4f49 (patch)
tree92b070e47c90f30dcc6131d21cf09606eedf73bb /src/network/networkd.h
parente2acdb6b0f68d9b4152708a9f21bf9e11f8b9e7e (diff)
networkd: support route scopes
For now we only support the hardcoded values RT_SCOPE_{UNIVERSE,LOCAL,HOST}, and not numerical values or values from /etc/iproute2/rt_scopes. This addresses https://bugs.freedesktop.org/show_bug.cgi?id=88508.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index 6fb920b158..22cc51d933 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -352,6 +352,10 @@ int config_parse_destination(const char *unit, const char *filename, unsigned li
int config_parse_route_priority(const char *unit, const char *filename, unsigned line,
const char *section, unsigned section_line, const char *lvalue,
int ltype, const char *rvalue, void *data, void *userdata);
+
+int config_parse_route_scope(const char *unit, const char *filename, unsigned line,
+ const char *section, unsigned section_line, const char *lvalue,
+ int ltype, const char *rvalue, void *data, void *userdata);
/* Address */
int address_new_static(Network *network, unsigned section, Address **ret);
int address_new_dynamic(Address **ret);