]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Warn that an sla of 0 is not RFC3633 (section 12.1) compliant.
authorRoy Marples <roy@marples.name>
Sat, 16 Apr 2016 20:30:53 +0000 (20:30 +0000)
committerRoy Marples <roy@marples.name>
Sat, 16 Apr 2016 20:30:53 +0000 (20:30 +0000)
if-options.c

index fce74f88436b8da87bfc950b5088067f374b4711..037ba3e505eecec67ffd5d6889a1852dee6054a1 100644 (file)
@@ -1444,6 +1444,13 @@ parse_option(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo,
                                                    ifname);
                                                goto err_sla;
                                        }
+                                       if (sla->sla == 0) {
+                                               logger(ctx, LOG_WARNING,
+                                                   "%s: sla of 0 is not "
+                                                   "RFC3633 (section 12.1) "
+                                                   "compliant",
+                                                   ifname);
+                                       }
                                }
                                p = np;
                        }