diff options
author | 2017-05-04 13:59:25 +0000 | |
---|---|---|
committer | 2017-05-04 13:59:25 +0000 | |
commit | f3bfe48b086059b64d07179be7a92560f4b2d0e2 (patch) | |
tree | 0b2a974e37ecaeee03d1473a20b95e59869aa600 | |
parent | Fix the ca command so that certs it generates have RFC5280 conformant time. (diff) | |
download | wireguard-openbsd-f3bfe48b086059b64d07179be7a92560f4b2d0e2.tar.xz wireguard-openbsd-f3bfe48b086059b64d07179be7a92560f4b2d0e2.zip |
Reset the MLD default ip6_opts by using ip6_initpktopts(). This fixes a
problem with MLD packets being sent with hlim set to zero.
with suggestion from and ok bluhm@
-rw-r--r-- | sys/netinet6/mld6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c index 4ee6cde2e10..56c7c5fcc1c 100644 --- a/sys/netinet6/mld6.c +++ b/sys/netinet6/mld6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mld6.c,v 1.51 2017/04/06 02:11:08 dhill Exp $ */ +/* $OpenBSD: mld6.c,v 1.52 2017/05/04 13:59:25 rzalamena Exp $ */ /* $KAME: mld6.c,v 1.26 2001/02/16 14:50:35 itojun Exp $ */ /* @@ -111,6 +111,7 @@ mld6_init(void) hbh_buf[5] = IP6OPT_RTALERT_LEN - 2; memcpy(&hbh_buf[6], (caddr_t)&rtalert_code, sizeof(u_int16_t)); + ip6_initpktopts(&ip6_opts); ip6_opts.ip6po_hbh = hbh; } |