ip6opt.c
Hiroki Sato
hrs at FreeBSD.org
Tue Feb 4 02:29:47 UTC 2014
Mark Martinec <Mark.Martinec+freebsd at ijs.si> wrote
in <758be52b7a245c492ec80a1d3a21d79e at mailbox.ijs.si>:
Ma> It is against the specs.
Ma>
Ma> The RFC 3542 is clear on this:
Ma>
Ma>
Ma> 10.1. inet6_opt_init
Ma>
Ma> int inet6_opt_init(void *extbuf, socklen_t extlen);
Ma>
Ma> This function returns the number of bytes needed for the empty
Ma> extension header i.e., without any options. If extbuf is not NULL it
Ma> also initializes the extension header to have the correct length
Ma> field. In that case if the extlen value is not a positive (i.e.,
Ma> non-zero) multiple of 8 the function fails and returns -1.
Ah, I see. Thank you for the clarification.
Ma> li> Should I commit it?
Ma>
Ma> I'd say yes.
I think so, too.
-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20140204/ce092529/attachment.sig>
More information about the freebsd-net
mailing list