comparison src/route.c @ 5536:ddb1318a21e8 draft

When adding a route, the interface will always have options.
author Roy Marples <roy@marples.name>
date Wed, 04 Nov 2020 14:25:00 +0000
parents a0d828e25482
children 33b56ca3a0e5
comparison
equal deleted inserted replaced
5535:a0d828e25482 5536:ddb1318a21e8
711 /* Rewind the miss filter */ 711 /* Rewind the miss filter */
712 ctx->rt_missfilterlen = 0; 712 ctx->rt_missfilterlen = 0;
713 #endif 713 #endif
714 714
715 RB_TREE_FOREACH_SAFE(rt, &routes, rtn) { 715 RB_TREE_FOREACH_SAFE(rt, &routes, rtn) {
716 if (rt->rt_ifp && rt->rt_ifp->options && 716 if (rt->rt_ifp->options->options & DHCPCD_CONFIGURE)
717 !(rt->rt_ifp->options->options & DHCPCD_CONFIGURE))
718 continue; 717 continue;
719 #ifdef BSD 718 #ifdef BSD
720 if (rt_is_default(rt) && 719 if (rt_is_default(rt) &&
721 if_missfilter(rt->rt_ifp, &rt->rt_gateway) == -1) 720 if_missfilter(rt->rt_ifp, &rt->rt_gateway) == -1)
722 logerr("if_missfilter"); 721 logerr("if_missfilter");