<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/l2tpns/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/l2tpns/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 02 Aug 2011 11:40:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/l2tpns/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>wrong size in vsnprintf in l2tpns.c function _log - solved</title><link>https://sourceforge.net/p/l2tpns/bugs/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Bug in l2tpns.c in in function _log: Fix included (please verify).&lt;/p&gt;
&lt;p&gt;// fixed size of 4095 in vsnprintf is wrong, must not be greater than sizeof(message) from the struct. Otherwise you get *** buffer overflow detected *** when compiled under recent gcc. With this fix, l2tpns compiles and works again.&lt;br /&gt;
// replace as shown in l2tpns.c in function _log&lt;br /&gt;
- vsnprintf(ringbuffer-&amp;gt;buffer[ringbuffer-&amp;gt;tail].message, 4095, format, ap);&lt;br /&gt;
+ vsnprintf(ringbuffer-&amp;gt;buffer[ringbuffer-&amp;gt;tail].message, sizeof(ringbuffer-&amp;gt;buffer[ringbuffer-&amp;gt;tail].message), format, ap);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oliver Kaufmann</dc:creator><pubDate>Tue, 02 Aug 2011 11:40:57 -0000</pubDate><guid>https://sourceforge.net483f480ddc065ff16a31697c53d82ee5f1949d50</guid></item><item><title>l2tpns not closing tunnels correctly</title><link>https://sourceforge.net/p/l2tpns/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;l2tpns manages its tunnels in  a way that is causing us some headaches.  We are not receiving radius accounting-records for STOP events when each user disconnects, and we are seeing events in l2tpns's logs indicating not-so-graceful tunnel-disconnects, regardless of the users' disconnect-method.&lt;/p&gt;
&lt;p&gt;It seems as if l2tpns does not acknowledge tunnels being terminated (either deliberately by the user, or due to a failure on the client-side), and as a result, is not sending a STOP-accounting Radius record to our logs when it should.&lt;/p&gt;
&lt;p&gt;We ARE successfully receiving START and INTERIM-UPDATE records ..... but STOP records show up rarely (and sporadically).&lt;/p&gt;
&lt;p&gt;Observe this variety of different 'disconnect events' in our logs:&lt;/p&gt;
&lt;p&gt;2011-03-29 12:29:34 01/00 Shutting down tunnel 1 (Stopped)&lt;br /&gt;
2011-03-29 12:29:51 03/00    New tunnel from PUB.IP.PUB.IP:52984 ID 3&lt;br /&gt;
2011-03-29 12:30:07 03/00    Out of sequence tunnel 3, (5 is not the expected 4)&lt;br /&gt;
2011-03-29 12:30:20 02/00 Kill tunnel 2: Expired&lt;br /&gt;
2011-03-29 12:30:20 02/00    New tunnel from PUB.IP.PUB.IP:58116 ID 2&lt;br /&gt;
2011-03-29 12:30:31 02/00    Out of sequence tunnel 2, (5 is not the expected 4)&lt;br /&gt;
2011-03-29 12:30:37 04/00    New tunnel from PUB.IP.PUB.IP:59366 ID 4&lt;br /&gt;
2011-03-29 12:30:44 01/00 Kill tunnel 1: Expired&lt;br /&gt;
2011-03-29 12:31:00 04/00    Out of sequence tunnel 4, (5 is not the expected 4)&lt;br /&gt;
2011-03-29 12:31:12 01/00    New tunnel from PUB.IP.PUB.IP:60088 ID 1&lt;br /&gt;
2011-03-29 13:00:16 01/00 Kill tunnel 1: Timeout on control message&lt;br /&gt;
2011-03-29 13:01:45 02/00    Out of sequence tunnel 2, (5 is not the expected 4)&lt;br /&gt;
2011-03-29 13:03:49 02/00 Kill tunnel 2: Timeout on control message&lt;/p&gt;
&lt;p&gt;However, as I said, we ARE seeing acknowledgments that the session STARTS and we receive very timely INTERIM-UPDATES for still-connected sessions.&lt;/p&gt;
&lt;p&gt;We have tried a few releases (2.1.21-1.1, 2.1.21-1.5 and we also custom-compiled our own 2.1.21-1.5 build with which to test).&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;We are testing on Debian Lenny amd64.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">J Gropefruit</dc:creator><pubDate>Tue, 29 Mar 2011 20:23:32 -0000</pubDate><guid>https://sourceforge.netd4f5b4ba1b60fb9e3cfd25ff0753b4c2b93133c7</guid></item><item><title>no free tunnel !!!!</title><link>https://sourceforge.net/p/l2tpns/bugs/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The error information is "&lt;br /&gt;
Can't find a free tunnel! There shouldn't be this many in use".&lt;/p&gt;
&lt;p&gt;l2tpns version 2.1.21.&lt;br /&gt;
The max number of users is 499. Why can't the server support more users?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 11 Feb 2009 08:24:16 -0000</pubDate><guid>https://sourceforge.netd82bc3594b6620d57aac4a45393bd233f0d8ef79</guid></item><item><title>Throttling incompatible with IPv6</title><link>https://sourceforge.net/p/l2tpns/bugs/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I spent the last few hours scratching my head over why I couldn't get IPv6 working... the main problem was a total block of traffic in the direction of LNS --&amp;gt; CPE.&lt;/p&gt;
&lt;p&gt;Running Wireshark on the LNS' tun0 showed ICMPv6 requests arriving from the CPE and being replied to by the LNS although the CPE didn't show these packets as being received.&lt;/p&gt;
&lt;p&gt;After backing up my config at both ends, I tried lots of stuff eventually ending in removing the throttling for this session (reason: it is provisioned as 24Mbit/s by the telco but throttled down to 8Mbit/s) and IPv6 connectivity worked in both directions.&lt;/p&gt;
&lt;p&gt;Putting the config back to sane defaults (incl. throttling) and then removing the throttling demonstrated that this was definitely the case.&lt;/p&gt;
&lt;p&gt;Throttling works perfectly with any IPv4 traffic; so there are no problems there, or with IPv6, just so long as they are not running in unison.&lt;/p&gt;
&lt;p&gt;I can be mailed at grm@fcvyfol.arg (ROT13'd to protect against spam!) but I'm happy to test any patches or help to debug this further.&lt;/p&gt;
&lt;p&gt;I would also be interested in implementing a patch for this but would appreciate a quick explanation as to the 'journey of a packet through l2tpns' so I know where to concentrate my efforts.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Terry&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 13 Aug 2008 11:34:57 -0000</pubDate><guid>https://sourceforge.netbbbe29d366c4ccbfe95ae4b3d76b2a50d5e7d135</guid></item><item><title>ip_pool does not support ip ranges smaller than a /24</title><link>https://sourceforge.net/p/l2tpns/bugs/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It apears that ranges smaller than a /24 are not handled correctly by l2tpns.&lt;/p&gt;
&lt;p&gt;For example, if you add 192.168.2.64/26 to the ip_pool config file, l2tpns will still hand out 192.168.2.64 as the first address when this should be reserved as the network address.&lt;/p&gt;
&lt;p&gt;I believe this should be an easy fix in the l2tpns.c add_to_ip_pool function.&lt;/p&gt;
&lt;p&gt;I would attempt it myself, but my c programming is not that flash :)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 27 Mar 2008 06:02:35 -0000</pubDate><guid>https://sourceforge.neted6a356ac3372e1032d5675e5005b337032c3620</guid></item><item><title>unhide_value problem</title><link>https://sourceforge.net/p/l2tpns/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I think that the code in the unhide_value fonction is the  code for hiding values.&lt;br /&gt;
the patch to convert the code is in attachment&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 03 Jul 2007 15:09:02 -0000</pubDate><guid>https://sourceforge.net5b87dd50c5f93cd8a642eef7e0645d1356516b2d</guid></item><item><title>cannot compile 2.1.1</title><link>https://sourceforge.net/p/l2tpns/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;make&lt;/p&gt;
&lt;p&gt;gcc  -o l2tpns arp.o cli.o cluster.o constants.o&lt;br /&gt;
control.o icmp.o l2tpns.o ll.o md5.o ppp.o radius.o&lt;br /&gt;
tbf.o util.o bgp.o  -lm -lcli -ldl&lt;br /&gt;
cli.o(.text+0xcfd): In function `cli_arg_help':&lt;br /&gt;
/usr/local/src/l2tpns-2.1.1/cli.c:371: undefined&lt;br /&gt;
reference to `cli_error'&lt;br /&gt;
cli.o(.text+0xd39):/usr/local/src/l2tpns-2.1.1/cli.c:378:&lt;br /&gt;
undefined reference to `cli_error'&lt;br /&gt;
cli.o(.text+0x2fcc): In function `cmd_drop_user':&lt;br /&gt;
/usr/local/src/l2tpns-2.1.1/cli.c:1180: undefined&lt;br /&gt;
reference to `cli_error'&lt;br /&gt;
cli.o(.text+0x2fe0):/usr/local/src/l2tpns-2.1.1/cli.c:1172:&lt;br /&gt;
undefined reference to `cli_error'&lt;br /&gt;
cli.o(.text+0x30ba): In function `cmd_drop_tunnel':&lt;br /&gt;
/usr/local/src/l2tpns-2.1.1/cli.c:1221: undefined&lt;br /&gt;
reference to `cli_error'&lt;br /&gt;
cli.o(.text+0x312c):/usr/local/src/l2tpns-2.1.1/cli.c:1213:&lt;br /&gt;
more undefined references to `cli_error' follow&lt;br /&gt;
collect2: ld returned 1 exit status&lt;br /&gt;
make: *** [l2tpns] Error 1&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 16 Jun 2005 01:08:54 -0000</pubDate><guid>https://sourceforge.net3777c75507c6d9ec9cbaa964ef44478db0fdec51</guid></item><item><title>CHAP not working with Windows 2000 client</title><link>https://sourceforge.net/p/l2tpns/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying l2tpns with a Windows 2000 client using CHAP&lt;br /&gt;
authentication. This setup (with the same client&lt;br /&gt;
config) works Ok in l2tpd, and also works Ok in l2tpns&lt;br /&gt;
if I set up the client to use PAP.&lt;/p&gt;
&lt;p&gt;However, when using CHAP l2tpns prints this to the log&lt;br /&gt;
(full log attached):&lt;/p&gt;
&lt;p&gt;PPP LCP Packet type 1 (ConfigReq len 44)&lt;br /&gt;
Length: 44&lt;br /&gt;
Magic-Number 57856b41&lt;br /&gt;
Protocol-Field-Compression&lt;br /&gt;
Address-and-Control-Field-Compression&lt;br /&gt;
Unknown PPP LCP Option type 13&lt;br /&gt;
Unknown PPP LCP Option type 17&lt;br /&gt;
Unknown PPP LCP Option type 19&lt;br /&gt;
Rejecting PPP LCP Option type 13&lt;br /&gt;
Rejecting PPP LCP Option type 17&lt;br /&gt;
Rejecting PPP LCP Option type 19&lt;br /&gt;
Sending ConfigRej&lt;br /&gt;
Sending LCP ConfigReq for PAP&lt;br /&gt;
LCP: ConfigReq (14 bytes)...&lt;br /&gt;
PPP LCP Packet type 1 (ConfigReq len 14)&lt;br /&gt;
Length: 14&lt;br /&gt;
Magic-Number 57856b41&lt;br /&gt;
Protocol-Field-Compression&lt;br /&gt;
Sending ConfigAck&lt;br /&gt;
Sending LCP ConfigReq for PAP&lt;br /&gt;
Remote end sent a ConfigNak.  Ignoring&lt;br /&gt;
PPP LCP Packet type 3 (ConfigNak len 9)&lt;br /&gt;
Length: 9&lt;br /&gt;
Remote end sent a ConfigNak.  Ignoring&lt;br /&gt;
PPP LCP Packet type 3 (ConfigNak len 9)&lt;br /&gt;
Length: 9&lt;/p&gt;
&lt;p&gt;It seems that l2tpns does not request CHAP&lt;br /&gt;
authentication, and I have not found a way to make it&lt;br /&gt;
use CHAP rather than PAP. The client times out, as it's&lt;br /&gt;
ConfigNak message refusing PAP is ignored.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 01 Jun 2005 09:06:32 -0000</pubDate><guid>https://sourceforge.net2d9579bb9e2619cc8f1bb0b08ef4bdb395a202c0</guid></item><item><title>socket() returns -1 if it fails, not 0. </title><link>https://sourceforge.net/p/l2tpns/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Below is a code snippet where you have a bug:&lt;/p&gt;
&lt;p&gt;void host_unreachable(ipt destination, u16 id, ipt&lt;br /&gt;
source, char *packet, int packet_len)&lt;br /&gt;
{&lt;br /&gt;
char buf[128] = {0};&lt;br /&gt;
struct iphdr *iph;&lt;br /&gt;
struct icmphdr *icmp;&lt;br /&gt;
char *data;&lt;br /&gt;
int len = 0, on = 1, icmp_socket;&lt;br /&gt;
struct sockaddr_in whereto = {0};&lt;/p&gt;
&lt;p&gt;if (!(icmp_socket = socket(AF_INET, SOCK_RAW,&lt;br /&gt;
IPPROTO_RAW)))&lt;br /&gt;
return;&lt;/p&gt;
&lt;p&gt;I guess the summary says it all, socket() returns -1 if&lt;br /&gt;
it fails.&lt;/p&gt;
&lt;p&gt;HTH&lt;br /&gt;
boa&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bjorn Augestad</dc:creator><pubDate>Wed, 10 Nov 2004 14:52:55 -0000</pubDate><guid>https://sourceforge.net7104fcc05d46c5d261880643bee8682acd191fdc</guid></item><item><title>Windows 98 Client Hangs</title><link>https://sourceforge.net/p/l2tpns/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When using a Ascent APX (LAC) to trunk the calls back&lt;br /&gt;
to L2TPNS 2.01, Windows 98 crashes or hangs, and&lt;br /&gt;
Windows 95 will not connect. To partially fix the&lt;br /&gt;
problem, set the APX to only allow PAP authentication.&lt;br /&gt;
This will allow Windows 98 SE client to connect,&lt;br /&gt;
however Windows 95 clients still cannot connect. It&lt;br /&gt;
seems the problem is that L2TPNS is requiring PAP&lt;br /&gt;
authentication from the client/LAC, however for&lt;br /&gt;
win95/98/me clients that initially used CHAP to auth&lt;br /&gt;
the LAC would request a re-auth using PAP protocol, and&lt;br /&gt;
at this point the win95/98/me client hangs&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 10 Aug 2004 22:46:21 -0000</pubDate><guid>https://sourceforge.net34f8dbe5ca2254c21207d62a2190b54dba658b35</guid></item></channel></rss>