summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 2a2dfe92db7..e3879e9fcc2 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.407 2019/07/25 13:56:23 krw Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.408 2019/07/25 15:23:38 krw Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -1518,12 +1518,12 @@ void
setautoconf(const char *cmd, int val)
{
switch (afp->af_af) {
- case AF_INET6:
- setifxflags("inet6", val * IFXF_AUTOCONF6);
- break;
case AF_INET:
setifxflags("inet", val * IFXF_AUTOCONF4);
break;
+ case AF_INET6:
+ setifxflags("inet6", val * IFXF_AUTOCONF6);
+ break;
default:
errx(1, "autoconf not allowed for this address family");
}