From: Roy Marples Date: Sat, 7 Sep 2013 11:13:05 +0000 (+0000) Subject: Don't bother managing a /128 prefix. X-Git-Tag: v6.1.0~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eea72a8a972b0dc017205a1af8b5a9e061a3f47f;p=thirdparty%2Fdhcpcd.git Don't bother managing a /128 prefix. --- diff --git a/ipv6.c b/ipv6.c index e384e9af..a47c4fc5 100644 --- a/ipv6.c +++ b/ipv6.c @@ -815,7 +815,13 @@ make_prefix(const struct interface * ifp, const struct ra *rap, { struct rt6 *r; - if (addr == NULL || addr->prefix_len > 128) + if (addr == NULL || addr->prefix_len > 128) { + errno = EINVAL; + return NULL; + } + + /* There is no point in trying to manage a /128 prefix. */ + if (addr->prefix_len == 128) return NULL; r = make_route(ifp, rap);