diff options
author | shin <shin@FreeBSD.org> | 2000-02-18 11:48:04 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-02-18 11:48:04 +0000 |
commit | c58e3f1eda64e3437fe2a5f59369e3cfee4fbccb (patch) | |
tree | 3636c72d1d97d06d19122f6781a1998fec6a38cb | |
parent | 1c48968f9bb041269c46f83e5db019f87e7b7d9b (diff) | |
download | FreeBSD-src-c58e3f1eda64e3437fe2a5f59369e3cfee4fbccb.zip FreeBSD-src-c58e3f1eda64e3437fe2a5f59369e3cfee4fbccb.tar.gz |
HBH hdr len correction.
Without this fix, MLD query to all nodes fails to send.
Merge from recent KAME bug fix.
Approved by: jkh
-rw-r--r-- | usr.sbin/pim6dd/mld6.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pim6dd/mld6.c b/usr.sbin/pim6dd/mld6.c index 9185935..4763433 100644 --- a/usr.sbin/pim6dd/mld6.c +++ b/usr.sbin/pim6dd/mld6.c @@ -422,10 +422,11 @@ make_mld6_msg(type, code, src, dst, group, ifindex, delay, datalen, alert) log(LOG_ERR, 0, "inet6_opt_append(0) failed"); if ((hbhlen = inet6_opt_finish(NULL, 0, hbhlen)) == -1) log(LOG_ERR, 0, "inet6_opt_finish(0) failed"); + ctllen += CMSG_SPACE(hbhlen); #else /* old advanced API */ - hbhlen = inet6_option_space(sizeof(raopt)); + hbhlen = inet6_option_space(sizeof(raopt)); + ctllen += hbhlen; #endif - ctllen += CMSG_SPACE(hbhlen); } /* extend ancillary data space (if necessary) */ if (ctlbuflen < ctllen) { |