<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Trebuchet MS","sans-serif";
        color:#17365D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>I’m trying to create a Netlink socket to configure an ipv6 interface.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>The socket call I used is –<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'><o:p> </o:p></span></p><p class=MsoNormal><i><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE6);<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'><o:p> </o:p></span></i></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>I’m getting compiler error “error: NETLINK_ROUTE6 undeclared (first use in this function)”<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>And I’m facing the same problem for “AF_NETLINK6”.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>I grep’ed in source code of 2.6.32 kernel and system header files, I didn’t find anywhere these constants.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'>Are these constants are correct ? If not, what are the correct one’s and in which header file I can find them.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#17365D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#002060'>Thanks & Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Trebuchet MS","sans-serif";color:#002060'>Murali Annamneni</span><span style='color:#17365D'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div><span style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: gray; FONT-SIZE: 7.5pt; mso-fareast-font-family: 'Times New Roman'">
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><br><br><font style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: gray; FONT-SIZE: 9px">::DISCLAIMER::<br>----------------------------------------------------------------------------------------------------------------------------------------------------</font></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><font style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: gray; FONT-SIZE: 11px">The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.<br>E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, <br>lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents <br>(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. <br>Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the <br>views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, <br>distribution and / or publication of this message without the prior written consent of authorized representative of <br>HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. <br>Before opening any email and/or attachments, please check them for viruses and other defects.</font></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><font style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: gray; FONT-SIZE: 11px">----------------------------------------------------------------------------------------------------------------------------------------------------</font></span></P></body></html>