summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorGerhard Roth <gerhard@cvs.openbsd.org>2020-04-27 11:16:52 +0000
committerGerhard Roth <gerhard@cvs.openbsd.org>2020-04-27 11:16:52 +0000
commitcd7283e3eeddc751284546f7461c40b2d95892b5 (patch)
treece9e50845735c57c7f1c405e44edcaaef6f2b733 /sys/dev/usb
parentf7a98dfc2599aca3ebfa45ef20fc447af1c294bb (diff)
IPv6 is no longer on by default. It must be enabled with "inet6 eui64".
Input from sthen@, ok claudio@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_umb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/if_umb.c b/sys/dev/usb/if_umb.c
index 7b840835c64..0d6a46dbb20 100644
--- a/sys/dev/usb/if_umb.c
+++ b/sys/dev/usb/if_umb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_umb.c,v 1.32 2020/02/18 08:09:37 gerhard Exp $ */
+/* $OpenBSD: if_umb.c,v 1.33 2020/04/27 11:16:51 gerhard Exp $ */
/*
* Copyright (c) 2016 genua mbH
@@ -2583,7 +2583,8 @@ umb_send_connect(struct umb_softc *sc, int command)
c->iptype = htole32(MBIM_CONTEXT_IPTYPE_IPV4);
#ifdef INET6
/* XXX FIXME: support IPv6-only mode, too */
- if ((sc->sc_flags & UMBFLG_NO_INET6) == 0)
+ if ((sc->sc_flags & UMBFLG_NO_INET6) == 0 &&
+ in6ifa_ifpforlinklocal(GET_IFP(sc), 0) != NULL)
c->iptype = htole32(MBIM_CONTEXT_IPTYPE_IPV4V6);
#endif
memcpy(c->context, umb_uuid_context_internet, sizeof (c->context));