> So, I'd suggest to add some warning in the example about the
> possibility of the infinite loop or to rewrite the example itself like
> this:
>
> while ((cmsgptr = CMSG_NXTHDR(&msg, cmsgptr)) != NULL) {
> if (cmsgptr->cmsg_len == 0)
> break; /* and return some error if necessary */
I'll add this check to the two examples in the document.
Erik
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page: http://playground.sun.com/ipng
FTP archive: ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------