diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-11-30 05:42:32 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-11-30 05:42:32 +0000 |
commit | 8b897874d4555a8a3769a9352a413c1e5da7f6c2 (patch) | |
tree | f2bd27290911b98ba0722dbd75be8e10990069d9 /sbin | |
parent | 95fecfd526a1b6b00b30b48a18f8bf78d916bb1b (diff) |
ifconfig(8) did silently ignore the netmask parameter for inet6 and
interpreted only prefixlen. Also accept netmask for IPv6. This
is consistent to our man page and the route(8) command.
OK benno@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 2350c2d5770..0ee441181c9 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.415 2019/11/27 17:49:09 deraadt Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.416 2019/11/30 05:42:31 bluhm Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -1302,6 +1302,7 @@ void setifnetmask(const char *addr, int ignored) { afp->af_getaddr(addr, MASK); + explicit_prefix = 1; } /* ARGSUSED */ |