diff options
| author | Roy Marples <roy@marples.name> | 2020-11-04 14:25:00 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-11-04 14:25:00 +0000 |
| commit | c49db0e1ced7c95d49fb6c844b918cf6ca899d4f (patch) | |
| tree | 4baadecd86c8ed64eabdaaa7e3460fee27b22095 | |
| parent | e9dfc2416bc5ff97166905cbb69e71dd2be6411a (diff) | |
| download | dhcpcd-c49db0e1ced7c95d49fb6c844b918cf6ca899d4f.tar.xz | |
When adding a route, the interface will always have options.
| -rw-r--r-- | src/route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/route.c b/src/route.c index f5f4f83c..8e759775 100644 --- a/src/route.c +++ b/src/route.c @@ -713,8 +713,7 @@ rt_build(struct dhcpcd_ctx *ctx, int af) #endif RB_TREE_FOREACH_SAFE(rt, &routes, rtn) { - if (rt->rt_ifp && rt->rt_ifp->options && - !(rt->rt_ifp->options->options & DHCPCD_CONFIGURE)) + if (rt->rt_ifp->options->options & DHCPCD_CONFIGURE) continue; #ifdef BSD if (rt_is_default(rt) && |
