man: minor fixes to networkd page

Also enforce that we don't allow setting the Broadcast for IPv6 addresses.
This commit is contained in:
Tom Gundersen
2014-02-18 15:50:45 +01:00
parent 7e95eda5b3
commit 482e2ac193
2 changed files with 28 additions and 6 deletions
+7
View File
@@ -275,6 +275,13 @@ int config_parse_broadcast(const char *unit,
if (r < 0)
return r;
if (n->family == AF_INET6) {
log_syntax(unit, LOG_ERR, filename, line, EINVAL,
"Broadcast is not valid for IPv6 addresses, "
"ignoring assignment: %s", address);
return 0;
}
r = net_parse_inaddr(address, &n->family, &n->broadcast);
if (r < 0) {
log_syntax(unit, LOG_ERR, filename, line, EINVAL,