https://bugzilla.kernel.org/show_bug.cgi?id=15952 --- Comment #2 from Josh Bowman <jbowman@xxxxxxxxxxxxx> 2013-06-04 22:57:59 --- (Sorry, that's section 4.2 of rfc 2292.) It looks like there's more detail in Appendix A of rfc 3542 (section 20.2): "While sending an application may or may not include padding at the end of last ancillary data in msg_controllen and implementations must accept both as valid." This seems to indicate that the sample code could be correct either way, but only because there's only one control message in the buffer. I think it's still confusing, and should be changed to show msg.msg_controllen initialized with a value coming from CMSG_SPACE. (Or at least to make clear why we can get away with using cmsg_len in this case.) -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html