diff options
| author | 2015-12-18 22:25:16 +0000 | |
|---|---|---|
| committer | 2015-12-18 22:25:16 +0000 | |
| commit | 79e2bfee1e5b8748c3d0d0dfe91eccaa5c8323dd (patch) | |
| tree | 348902598065aa050403591771abd269300855fe /sys/netinet6/in6_pcb.c | |
| parent | Check ioctl() result with == -1, not < 0. Break long line. (diff) | |
| download | wireguard-openbsd-79e2bfee1e5b8748c3d0d0dfe91eccaa5c8323dd.tar.xz wireguard-openbsd-79e2bfee1e5b8748c3d0d0dfe91eccaa5c8323dd.zip | |
Fix SO_REUSE* flags effects when binding multicast addresses. No
regression observed on avahi.
ok benno@
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
| -rw-r--r-- | sys/netinet6/in6_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 12fbb4f4c2b..2c9c1b0ac84 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_pcb.c,v 1.83 2015/12/02 22:13:44 vgross Exp $ */ +/* $OpenBSD: in6_pcb.c,v 1.84 2015/12/18 22:25:16 vgross Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -214,7 +214,7 @@ in6_pcbbind(struct inpcb *inp, struct mbuf *nam, struct proc *p) * and a multicast address is bound on both * new and duplicated sockets. */ - if (so->so_options & SO_REUSEADDR) + if (so->so_options & (SO_REUSEADDR|SO_REUSEPORT)) reuseport = SO_REUSEADDR | SO_REUSEPORT; } else if (!IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) { struct ifaddr *ifa = NULL; |
