Mercurial > hg > dhcpcd
comparison src/route.c @ 5535:a0d828e25482 draft
Add --noconfigure option
With this set dhcpcd will not configure anything on the host.
The expectation is that a 3rd party script will instead.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 04 Nov 2020 14:18:48 +0000 |
| parents | 30603cb789ea |
| children | ddb1318a21e8 |
comparison
equal
deleted
inserted
replaced
| 5534:605f7f9a20c0 | 5535:a0d828e25482 |
|---|---|
| 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 && | |
| 717 !(rt->rt_ifp->options->options & DHCPCD_CONFIGURE)) | |
| 718 continue; | |
| 716 #ifdef BSD | 719 #ifdef BSD |
| 717 if (rt_is_default(rt) && | 720 if (rt_is_default(rt) && |
| 718 if_missfilter(rt->rt_ifp, &rt->rt_gateway) == -1) | 721 if_missfilter(rt->rt_ifp, &rt->rt_gateway) == -1) |
| 719 logerr("if_missfilter"); | 722 logerr("if_missfilter"); |
| 720 #endif | 723 #endif |
| 769 logerr(__func__); | 772 logerr(__func__); |
| 770 rt_free(rt); | 773 rt_free(rt); |
| 771 } | 774 } |
| 772 } | 775 } |
| 773 | 776 |
| 774 | |
| 775 getfail: | 777 getfail: |
| 776 rt_headclear(&routes, AF_UNSPEC); | 778 rt_headclear(&routes, AF_UNSPEC); |
| 777 rt_headclear(&kroutes, AF_UNSPEC); | 779 rt_headclear(&kroutes, AF_UNSPEC); |
| 778 } | 780 } |
