diff options
author | 2020-04-27 11:16:51 +0000 | |
---|---|---|
committer | 2020-04-27 11:16:51 +0000 | |
commit | 24784047ae8bb0ae319ead72aac4428bfce22b4c (patch) | |
tree | 5d65d91d602534492629697c06e9d739a9203085 | |
parent | When creating the rx filter, indicate we want to match against the outermost (diff) | |
download | wireguard-openbsd-24784047ae8bb0ae319ead72aac4428bfce22b4c.tar.xz wireguard-openbsd-24784047ae8bb0ae319ead72aac4428bfce22b4c.zip |
IPv6 is no longer on by default. It must be enabled with "inet6 eui64".
Input from sthen@, ok claudio@
-rw-r--r-- | sys/dev/usb/if_umb.c | 5 |
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)); |