From eea72a8a972b0dc017205a1af8b5a9e061a3f47f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 7 Sep 2013 11:13:05 +0000 Subject: [PATCH] Don't bother managing a /128 prefix. --- ipv6.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.47.3