mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-31 11:00:32 +01:00
tui: use 128 as the default prefix for IPv6 addresses
This commit is contained in:
parent
5378d7929e
commit
d7b8aeea33
1 changed files with 6 additions and 2 deletions
|
|
@ -104,8 +104,12 @@ ip_string_parse (const char *text,
|
|||
|| (family == AF_INET && *prefix > 32)
|
||||
|| (family == AF_INET6 && *prefix > 128))
|
||||
valid = FALSE;
|
||||
} else if (prefix)
|
||||
*prefix = 32;
|
||||
} else if (prefix) {
|
||||
if (family == AF_INET)
|
||||
*prefix = 32;
|
||||
else
|
||||
*prefix = 128;
|
||||
}
|
||||
|
||||
return valid;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue