From: Roy Marples Date: Sat, 16 Apr 2016 20:30:53 +0000 (+0000) Subject: Warn that an sla of 0 is not RFC3633 (section 12.1) compliant. X-Git-Tag: v6.10.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d5e789295a466d4ff6cb15b40be6cb366b4d821;p=thirdparty%2Fdhcpcd.git Warn that an sla of 0 is not RFC3633 (section 12.1) compliant. --- diff --git a/if-options.c b/if-options.c index fce74f88..037ba3e5 100644 --- a/if-options.c +++ b/if-options.c @@ -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; }