diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-18 11:48:04 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-18 11:48:04 +0000 |
| commit | ea70950eccdf41e6ec62ff8f942c1926976f8063 (patch) | |
| tree | 421279b42edd6e8fb1e17b05a6570f2357c5876a /usr.sbin | |
| parent | 557779814e27f293d0f8e5c5b4307e5085aedc86 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -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 91859357b374..47634336e061 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) { |
