<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>IPv6 Link local address use with syslog-ng</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Hello,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Running syslog-ng-2.0.</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">5 on a Linux host</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">2.6.22.9.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">syslog-ng.conf entry as follows:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">source s_all {</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT FACE="Calibri">tcp</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">6</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">(ip(</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">2001:470:1f00:1288:220:abff:febe:4dac) port(146</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">8));</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">};</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">When syslog-ng is started, the Global address</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">(</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">2001:470:1f00:1288:220:abff:febe:4dac)</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">binds</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">a</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">nd connects fine</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">If I have the Link Local Address configured below:</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">source s_all {</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"> <FONT FACE="Calibri">tcp</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">6</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">(ip</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">(fe80:</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">:220:abff:febe:4dac) port(1468)</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">);</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">};</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">And start syslog-ng,</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">it</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">either errors on the bind or the connect</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">(g_connect in gsockaddr.c)</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> with an errno of 22 (Invalid Argument).</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Looking at</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">the</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> code shows that</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">there is no use of the sockaddr_in6</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">“</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">sin6_scope_id</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">”</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">, which is required to be set when using Link Local addresses</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> since they need to use the interface number (sin6_scope_id).</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Has anyone run into this issue?</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">If so, is there a workaround or a code patch for this?</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Thanks,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Phil Bellino</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#2653A1" SIZE=2 FACE="Arial">Phil Bellino<BR>
Software Engineer<BR>
MRV Communications, Inc.<BR>
</FONT><FONT COLOR="#2653A1" SIZE=2 FACE="Arial">295 Foster Street<BR>
Littleton, MA. 01460<BR>
Phone: 978-952-4807<BR>
Fax: 978-952-5444</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#2653A1" SIZE=2 FACE="Arial">Email: pbellino@mrv.com</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN><A HREF="http://www.mrv.com/"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<BR>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>