X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fnetwork%2Fnetworkd-route.c;h=1ea6237cc7e03f15eca7b639c3207d89e1c71997;hb=71008e18a0bf9e9b96348fe2fb751aea23397186;hp=b88c622614f0458147ad9f26fe6fc509816eadae;hpb=6ae115c1fe95611b39d2f20cfcea3d385429f59e;p=elogind.git diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index b88c62261..1ea6237cc 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -118,8 +118,6 @@ int route_configure(Route *route, Link *link, return r; } - link->rtnl_messages ++; - return 0; } @@ -144,6 +142,12 @@ int config_parse_gateway(const char *unit, assert(rvalue); assert(data); + if (streq(section, "Network")) { + /* we are not in an Route section, so treat + * this as the special '0' section */ + section_line = 0; + } + r = route_new(network, section_line, &n); if (r < 0) return r;