On Mon, Jun 11, 2012 at 12:53 PM, Simon Perreault <[email protected]> wrote: > On 2012-06-11 15:31, Peter J. Philipp wrote: >> I just got through a thread in misc@, >> >> http://marc.info/?l=openbsd-misc&m=133934252713974&w=2 >> >> and it seems like the sample code in ip6(4) is wrong. I've made adjustments >> but it doesn't look as nice anymore, perhaps someone can look over it? These >> changes will really help someone first time trying the sample code, I think. >> Credit should be given to Simon Perreault, I just did what he suggested. > > You can expect the same issue with IPV6_PKTINFO, IPV6_HOPOPTS, IPV6_DSTOPTS, > and IPV6_RTHDR. The "RECV" part was added to them in RFC3542.
Yep. In addition, the text should be clarified to indicate that turning on IPV6_RECV* will result in the process getting cmsg data of type IPV6_*. E.g., IPV6_RECVHOPLIMIT turns on receiving of IPV6_HOPLIMIT cmsg data. Peter, do you want to take a stab at that part too? (There's also a typo in the current page: s/HOPTLIMIT/HOPLIMIT/) Philip Guenther
