diff options
| author | Roy Marples <roy@marples.name> | 2013-09-07 11:13:05 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2013-09-07 11:13:05 +0000 |
| commit | eea72a8a972b0dc017205a1af8b5a9e061a3f47f (patch) | |
| tree | e8e6c02b09e6618a1268db53fafc38c80b5aa20f /ipv6.c | |
| parent | c75310464a51c9bd430718c9bdee51f50096083a (diff) | |
| download | dhcpcd-eea72a8a972b0dc017205a1af8b5a9e061a3f47f.tar.xz | |
Don't bother managing a /128 prefix.
Diffstat (limited to 'ipv6.c')
| -rw-r--r-- | ipv6.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |
