]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Skip arpping directives if we have a profile but not parsing one.
authorRoy Marples <roy@marples.name>
Fri, 20 Jun 2014 22:32:44 +0000 (22:32 +0000)
committerRoy Marples <roy@marples.name>
Fri, 20 Jun 2014 22:32:44 +0000 (22:32 +0000)
if-options.c

index b5fb83479e4441dbd8163bce27b981665827acda..7dd2c9b0048278c0a8db892cc77f66261ea3699d 100644 (file)
@@ -2124,6 +2124,10 @@ read_config(struct dhcpcd_ctx *ctx,
                                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);