<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.comment
        {mso-style-name:comment;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am working with multicast socket and I saw in the source of the kernel different define for identical operation, what should I use in a setsockopt() ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The file is /incude/linux/in.h<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_MULTICAST_IF">IP_MULTICAST_IF</a> 32<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_MULTICAST_TTL">IP_MULTICAST_TTL</a> 33<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_MULTICAST_LOOP">IP_MULTICAST_LOOP</a> 34<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_ADD_MEMBERSHIP">IP_ADD_MEMBERSHIP</a> 35<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_DROP_MEMBERSHIP">IP_DROP_MEMBERSHIP</a> 36<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_UNBLOCK_SOURCE">IP_UNBLOCK_SOURCE</a> 37<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_BLOCK_SOURCE">IP_BLOCK_SOURCE</a> 38<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_ADD_SOURCE_MEMBERSHIP">IP_ADD_SOURCE_MEMBERSHIP</a> 39<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_DROP_SOURCE_MEMBERSHIP">IP_DROP_SOURCE_MEMBERSHIP</a> 40<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=IP_MSFILTER">IP_MSFILTER</a> 41<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=MCAST_JOIN_GROUP">MCAST_JOIN_GROUP</a> 42<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=MCAST_BLOCK_SOURCE">MCAST_BLOCK_SOURCE</a> 43<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=MCAST_UNBLOCK_SOURCE">MCAST_UNBLOCK_SOURCE</a> 44<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=MCAST_LEAVE_GROUP">MCAST_LEAVE_GROUP</a> 45<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=MCAST_JOIN_SOURCE_GROUP">MCAST_JOIN_SOURCE_GROUP</a> 46<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=MCAST_LEAVE_SOURCE_GROUP">MCAST_LEAVE_SOURCE_GROUP</a> 47<o:p></o:p></span></pre>
<pre style="background:white"><span style="color:black">#define <a href="http://lxr.linux.no/linux+v3.2.9/+code=MCAST_MSFILTER">MCAST_MSFILTER</a> 48<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am working with IGMP V3 and I need to handle sources .<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal">Pietro Paolini<o:p></o:p></p>
</div>
</body>
</html>