Mercurial > hg > dhcpcd
changeset 2541:98b581c3152b draft
Skip arpping directives if we have a profile but not parsing one.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 20 Jun 2014 22:32:44 +0000 |
| parents | 1264779ee9c0 |
| children | 28b1ed6d98ad |
| files | if-options.c |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/if-options.c Wed Jun 18 21:12:39 2014 +0000 +++ b/if-options.c Fri Jun 20 22:32:44 2014 +0000 @@ -2124,6 +2124,10 @@ skip = 1; continue; } + /* Skip arping if we have selected a profile but not parsing + * one. */ + if (profile && !have_profile && strcmp(option, "arping") == 0) + continue; if (skip) continue; parse_config_line(ctx, ifname, ifo, option, line, &ldop, &edop);
