<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/l2tpns/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/l2tpns/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 27 Jun 2021 11:21:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/l2tpns/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Patches for multi ip_pools and IPv6</title><link>https://sourceforge.net/p/l2tpns/patches/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;These are patches to allow assigning IP to subscribers from different pools based on radius reply.&lt;br/&gt;
For IPv6 the code is modified to make L2TPNS send framed-ipv6-address to radius in accounting message.&lt;/p&gt;
&lt;p&gt;The patches are applied in production environment, with no issues since a week ago.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Issa Alkaht</dc:creator><pubDate>Sun, 27 Jun 2021 11:21:45 -0000</pubDate><guid>https://sourceforge.nete3968e4d655d9da33d951a81ccfca0f8c87419f8</guid></item><item><title>Multiple bugfixes &amp; features repository</title><link>https://sourceforge.net/p/l2tpns/patches/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Some months ago I worked quite a bit on l2tpns to add features we needed here at FDN (a small french ISP) and bugfixes. My repository includes:&lt;br /&gt;
- RFC 4760 support (aka IPv6 routes announcement)(we ended up not using it, but it works)&lt;br /&gt;
- Netlink usage instead of ioctl&lt;br /&gt;
- Bugfixes&lt;br /&gt;
- Some cleanup&lt;br /&gt;
- Small enhancements&lt;/p&gt;
&lt;p&gt;The first two items are on separate branches, other ones sit in fdn-mods or in master when they are generic enough (the latest modifications may not have been integrated into master because of lack of time). I based my work on the Debian sources and an import of your CVS, not your current git repository, as it didn't exist at the time.&lt;/p&gt;
&lt;p&gt;This code (except RFC 4760 and the very latest fixes) has been running in production for 3 months now without problem.&lt;/p&gt;
&lt;p&gt;One nice thing to plan now we have netlink support would be to “request” a proto number (the database seemed to be maintained by the iproute2 guys) so that we can mark the routes we had (we use BIRD to learn l2tpns routes coming from the RIB, matching on the interface name ; matching on the proto would be nicer). We could also think about adding an option to add routes to a specific kernel table.&lt;/p&gt;
&lt;p&gt;The repository is here: &lt;a href="http://dolka.fr/code/l2tpns.git/"&gt;http://dolka.fr/code/l2tpns.git/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Benjamin&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 02 Jan 2012 21:52:52 -0000</pubDate><guid>https://sourceforge.nete4e12369b504ba1bac2a9826be2296b38b5ced4c</guid></item><item><title>[patch] MacOSX rejects invalid HELLO message</title><link>https://sourceforge.net/p/l2tpns/patches/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;MacOSX sends the following message when trying to connect to l2tpns "L2TP received invalid message (expected ICRP, received Hello)". It appears that the lastrec attribute of a tunnel is not correctly initialized during the tunnel creation. At least it's what I believe :)&lt;/p&gt;
&lt;p&gt;Joined you'll find a patch that initialized this variable and seems to correct the problem (at least for me).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cyril Elkaim</dc:creator><pubDate>Thu, 11 Mar 2010 18:35:46 -0000</pubDate><guid>https://sourceforge.net1ee8f91e9739acc253ac661c0455bf343098d11c</guid></item><item><title>Patch for MS-NBNS (WinS) support</title><link>https://sourceforge.net/p/l2tpns/patches/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This simple patch adds support to asing via radius wins servers.&lt;/p&gt;
&lt;p&gt;Attributes are, according to rfc2548:&lt;/p&gt;
&lt;p&gt;MS-Primary-NBNS-Server&lt;br /&gt;
MS-Secondary-NBNS-Server&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Manuel Garcia Montero</dc:creator><pubDate>Thu, 19 Jun 2008 10:33:40 -0000</pubDate><guid>https://sourceforge.net8e14484f7b0627fabe270a0776f9f8b79fc7db1e</guid></item><item><title>patch to allow for subnets smaller than a /24 in ip_pool</title><link>https://sourceforge.net/p/l2tpns/patches/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;See bug description here:&lt;br /&gt;
&lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1926823&amp;amp;group_id=97282&amp;amp;atid=617563"&gt;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1926823&amp;amp;group_id=97282&amp;amp;atid=617563&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leighton Weymouth</dc:creator><pubDate>Fri, 28 Mar 2008 12:33:00 -0000</pubDate><guid>https://sourceforge.netbe0872575e39a31476b29464a8f7f6ce92dc845f</guid></item><item><title>No TBFs assigned when rate limiting via RADIUS CoA</title><link>https://sourceforge.net/p/l2tpns/patches/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When setting/clearing rate limiting via RADIUS CoA, &lt;br /&gt;
the TBFs don't appear to be assigned so while the&lt;br /&gt;
session shows as being rate limited the users has full speed.  The following trivial patch runs f-&amp;gt;throttle() after the rate has been set.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daryl Tester</dc:creator><pubDate>Tue, 24 Apr 2007 12:41:27 -0000</pubDate><guid>https://sourceforge.net5b2c0ebe2f1c1005d74c1d8597939898f1b29b36</guid></item><item><title>Patch for multiple instances on same machine</title><link>https://sourceforge.net/p/l2tpns/patches/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Here are some small modifications that may be useful for future versions. The main goal was to allow two instances running on the same machine&lt;br /&gt;
(running on different interfaces).&lt;/p&gt;
&lt;p&gt;- new command line&lt;/p&gt;
&lt;p&gt;-p &amp;lt;port&amp;gt; cli listening port (default: 23)&lt;br /&gt;
-l &amp;lt;addr&amp;gt; cli bind address (default: INADDR_ANY)&lt;/p&gt;
&lt;p&gt;- configuration file&lt;/p&gt;
&lt;p&gt;set ippool_file &amp;lt;filename&amp;gt; (default: const IPPOOLFILE)&lt;/p&gt;
&lt;p&gt;Btw: Thanks for this great implementation... Any other implementations I've seen were awful but this works perfectly since about one year.&lt;/p&gt;
&lt;p&gt;Below the diff against 2.1.21&lt;/p&gt;
&lt;p&gt;diff l2tpns-2.1.21/cli.c l2tpns-2.1.21-mz/cli.c&lt;br /&gt;
132c132&lt;br /&gt;
&amp;lt; void init_cli(char *hostname)&lt;br /&gt;
---&lt;br /&gt;
&amp;gt; void init_cli(char *hostname, char *cliaddr, int cliport)&lt;br /&gt;
270a271,289&lt;br /&gt;
&amp;gt;    addr.sin_family = AF_INET;&lt;br /&gt;
&amp;gt;    addr.sin_port = htons(cliport);&lt;br /&gt;
&amp;gt; &lt;br /&gt;
&amp;gt;    if (cliaddr &amp;amp;&amp;amp; *cliaddr)&lt;br /&gt;
&amp;gt;    {&lt;br /&gt;
&amp;gt;        addr.sin_addr.s_addr = htonl(INADDR_ANY);&lt;br /&gt;
&amp;gt;    } &lt;br /&gt;
&amp;gt;    else&lt;br /&gt;
&amp;gt;    {&lt;br /&gt;
&amp;gt;        struct hostent *hp = gethostbyname2(cliaddr, AF_INET);&lt;br /&gt;
&amp;gt;        if (hp == NULL || hp-&amp;gt;h_addr_list[0] == NULL)&lt;br /&gt;
&amp;gt;        {&lt;br /&gt;
&amp;gt;        LOG(0, 0, 0, "Error resolving cli bind address %s: %s\n",&lt;br /&gt;
cliaddr, strerror(errno));&lt;br /&gt;
&amp;gt;        return;&lt;br /&gt;
&amp;gt;        }&lt;br /&gt;
&amp;gt;        bcopy(hp-&amp;gt;h_addr_list[0], &amp;amp;addr.sin_addr, hp-&amp;gt;h_length);&lt;br /&gt;
&amp;gt;    }&lt;br /&gt;
&amp;gt;  &lt;br /&gt;
&amp;gt; &lt;br /&gt;
279,280c298&lt;br /&gt;
&amp;lt;    addr.sin_family = AF_INET;&lt;br /&gt;
&amp;lt;    addr.sin_port = htons(23);&lt;br /&gt;
---&lt;br /&gt;
&amp;gt; &lt;br /&gt;
283c301,302&lt;br /&gt;
&amp;lt;        LOG(0, 0, 0, "Error listening on cli port 23: %s\n",&lt;br /&gt;
strerror(errno));&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;        LOG(0, 0, 0, "Error listening on cli address %s:%d: %s\n", &lt;br /&gt;
&amp;gt;            inet_ntoa(addr.sin_addr), cliport, strerror(errno));&lt;br /&gt;
Common subdirectories: l2tpns-2.1.21/Docs and l2tpns-2.1.21-mz/Docs&lt;br /&gt;
Common subdirectories: l2tpns-2.1.21/etc and l2tpns-2.1.21-mz/etc&lt;br /&gt;
diff l2tpns-2.1.21/l2tpns.c l2tpns-2.1.21-mz/l2tpns.c&lt;br /&gt;
72a73,74&lt;br /&gt;
&amp;gt; char cliaddr[1000] = "";     // us.&lt;br /&gt;
&amp;gt; int cliport = 23;      // port to bind cli, default is 23&lt;br /&gt;
149a152&lt;br /&gt;
&amp;gt;    CONFIG("ippool_file", ippool_file, STRING),&lt;br /&gt;
4013c4016&lt;br /&gt;
&amp;lt;    if (!(f = fopen(IPPOOLFILE, "r")))&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;    if (!(f = fopen(config-&amp;gt;ippool_file, "r")))&lt;br /&gt;
4015c4018&lt;br /&gt;
&amp;lt;        LOG(0, 0, 0, "Can't load pool file " IPPOOLFILE ": %s\n",&lt;br /&gt;
strerror(errno));&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;        LOG(0, 0, 0, "Can't load pool file %s: %s\n",&lt;br /&gt;
config-&amp;gt;ippool_file, strerror(errno));&lt;br /&gt;
4177c4180&lt;br /&gt;
&amp;lt;    while ((i = getopt(argc, argv, "dvc:h:")) &amp;gt;= 0)&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;    while ((i = getopt(argc, argv, "dvc:h:p:l:")) &amp;gt;= 0)&lt;br /&gt;
4196a4200,4205&lt;br /&gt;
&amp;gt;        case 'l':&lt;br /&gt;
&amp;gt;            snprintf(cliaddr, sizeof(cliaddr), "%s", optarg);&lt;br /&gt;
&amp;gt;            break;&lt;br /&gt;
&amp;gt;        case 'p':&lt;br /&gt;
&amp;gt;            cliport = atoi(optarg);&lt;br /&gt;
&amp;gt;            break;&lt;br /&gt;
4200a4210,4211&lt;br /&gt;
&amp;gt;                   "\t-l &amp;lt;address&amp;gt;\tCLI listen address (default:&lt;br /&gt;
any)\n"&lt;br /&gt;
&amp;gt;                   "\t-p &amp;lt;port&amp;gt;\tCLI listen port (default:&lt;br /&gt;
23)\n"&lt;br /&gt;
4216c4227&lt;br /&gt;
&amp;lt;    init_cli(hostname);&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;    init_cli(hostname, cliaddr, cliport);&lt;br /&gt;
4381a4393,4397&lt;br /&gt;
&amp;gt;    if (! *config-&amp;gt;ippool_file)&lt;br /&gt;
&amp;gt;    {&lt;br /&gt;
&amp;gt;        strncpy(config-&amp;gt;ippool_file, IPPOOLFILE,&lt;br /&gt;
sizeof(config-&amp;gt;ippool_file));&lt;br /&gt;
&amp;gt;    }&lt;br /&gt;
&amp;gt;  &lt;br /&gt;
diff l2tpns-2.1.21/l2tpns.h l2tpns-2.1.21-mz/l2tpns.h&lt;br /&gt;
613c613,615&lt;br /&gt;
&amp;lt;                            // slaves is less&lt;br /&gt;
than this value.&lt;br /&gt;
---&lt;br /&gt;
&amp;gt; &lt;br /&gt;
&amp;gt;                                // slaves is&lt;br /&gt;
less than this value.&lt;br /&gt;
&amp;gt;    char        ippool_file[256];        // file to read ip&lt;br /&gt;
pool from (default is IPPOOLFILE)&lt;br /&gt;
794c796&lt;br /&gt;
&amp;lt; void init_cli(char *hostname);&lt;br /&gt;
---&lt;br /&gt;
&amp;gt; void init_cli(char *hostname, char *cliaddr, int cliport);&lt;br /&gt;
Common subdirectories: l2tpns-2.1.21/scripts and l2tpns-2.1.21-mz/scripts&lt;br /&gt;
Common subdirectories: l2tpns-2.1.21/test and l2tpns-2.1.21-mz/test&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcus</dc:creator><pubDate>Mon, 02 Apr 2007 18:45:57 -0000</pubDate><guid>https://sourceforge.netecb0d2b03a97d0b0de267865f2699b7e8b55c9ec</guid></item><item><title>[PATCH] l2tpns MLPPP bug fixes, new features</title><link>https://sourceforge.net/p/l2tpns/patches/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Submitted by Muhammad Tayseer Alquoatli &amp;lt;IDOIT.IEF@gmail.com&amp;gt;&lt;br /&gt;
The submitted patch should be applied to l2tpns HEAD. The following changes has been done:&lt;/p&gt;
&lt;p&gt;- Handle session shutdown gracefully regarding leaving the bundle (bug&lt;br /&gt;
that is caused when a all session leaves a bundle then another join)&lt;br /&gt;
- IP assignment is done only for the first session in the bundle (save&lt;br /&gt;
IP waste for multiple MLPPP sessions)&lt;br /&gt;
- Route is being added only for the first session in the bundle (less&lt;br /&gt;
routes on l2tpns system)&lt;br /&gt;
- Fix route deletion problem for MLPPP sessions (bug that caused when&lt;br /&gt;
a session leaves a bundle)&lt;br /&gt;
- Uniformity of sequence number space satisfied (according to RFC1990)&lt;br /&gt;
- Fix reassembling fragmented packets and handling lost fragments&lt;br /&gt;
(according to RFC 1990)&lt;br /&gt;
- Fragmentation algorithm now is implemented in a generic way&lt;br /&gt;
(fragmentation across N session rather than two)&lt;br /&gt;
- Sequence numbers extraction mask has been corrected (bug in&lt;br /&gt;
extracting sequence numbers)&lt;br /&gt;
- some clustering support fixes&lt;br /&gt;
- Upload/Download statistics has been corrected&lt;br /&gt;
- add "kill_timedout_sessions" config option&lt;/p&gt;
&lt;p&gt;changes are tested with l2tpns-2.2.0 patched code.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 11 Mar 2007 08:50:45 -0000</pubDate><guid>https://sourceforge.net43229fefdf5837b8bfb827afa245ff952bbd675d</guid></item><item><title>Add support for the RADIUS Class attribute</title><link>https://sourceforge.net/p/l2tpns/patches/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;RFC 2865 says about the Class attribute: "This Attribute is available to be sent by the server to the client in an Access-Accept and SHOULD be sent unmodified by the client to the accounting server as part of the Accounting-Request packet if accounting is supported."&lt;/p&gt;
&lt;p&gt;I've not got a cluster yet, so I have no idea if I got that bit right, but the rest seems to work for me.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Geoffrey D. Bennett</dc:creator><pubDate>Wed, 31 Jan 2007 23:01:23 -0000</pubDate><guid>https://sourceforge.netbb9abf5430c4087ce4416a0ff2c83d2eb72aa78c</guid></item><item><title>Fix retx of control packets</title><link>https://sourceforge.net/p/l2tpns/patches/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If the tunnel[t].window is a multiple of 256, retransmissions of lost control packets will not happen, and instead the tunnel will be dropped.  This problem happens because tunnel[t].window is a uint16, but the value is being temporarily stored in a uint8 when retransmissions are done.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Geoffrey D. Bennett</dc:creator><pubDate>Wed, 31 Jan 2007 22:53:21 -0000</pubDate><guid>https://sourceforge.net3d6a88b45815d5e9a4a86be6c197931412cccea3</guid></item></channel></rss>