HBH hdr len correction.
Without this fix, MLD query to all nodes fails to send. Merge from recent KAME bug fix. Approved by: jkh
This commit is contained in:
parent
25d1d7e1a4
commit
947bd9af68
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user