IPV6_PKTINFO/recvfromto

Alexander Clouter alex at digriz.org.uk
Sat Jan 15 21:48:00 CET 2011


Hi,

Finally found the time to look into this, a clean v2.1.10 tree with the 
following cherry-picks:
 * e5c861665f00f1213036ba412b7092aac7159ad7 (contains bug)
 * fa0851d9235f04ff0d4161fc6f842857ff8d52aa

The bug is fixed with the attached 0003-fix-recvpktinfo.patch, and then 
IPv6 is actually enabled with 0004-enable-ipv6.patch.

For PKTINFO to work, Linux needs IPV6_RECVPKTINFO (or the legacy 
IPV6_2292PKTINFO) passed to setsockopt, however when you jump into 
sendmsg() cmsg->cmsg_type has to be IPV6_PKTINFO (or the legacy 
IPV6_2292PKTINFO); this is broken in the commit do to all the 
define/undef magic going on.  I think I have sanitised it correctly.

Cheers

-- 
Alexander Clouter
.sigmonster says: Have an adequate day.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-fix-recvpktinfo.patch
Type: text/x-diff
Size: 870 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20110115/c893d1fb/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-enable-ipv6.patch
Type: text/x-diff
Size: 1363 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20110115/c893d1fb/attachment-0001.patch>


More information about the Freeradius-Devel mailing list