l2tpns.git
12 years agoForgot to remove a prototype. use-netlink
Benjamin Cama [Mon, 19 Sep 2011 16:12:31 +0000 (18:12 +0200)]
Forgot to remove a prototype.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoCorrectly form the delete route/route6 request.
Benjamin Cama [Sat, 20 Aug 2011 16:23:58 +0000 (18:23 +0200)]
Correctly form the delete route/route6 request.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoRemove the netlink code to get the tun if index.
Benjamin Cama [Fri, 19 Aug 2011 17:23:27 +0000 (19:23 +0200)]
Remove the netlink code to get the tun if index.

It only worked for kernel >= 2.6.33. Use if_nametoindex() instead, which made
me include net/if.h in place of linux/if.h. Also, fix the RTM_SETLINK use which
should really be RTM_NEWLINK with correct parameters.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoFix a stray comma, and replace existing routes.
Benjamin Cama [Wed, 17 Aug 2011 15:16:30 +0000 (17:16 +0200)]
Fix a stray comma, and replace existing routes.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoSince 7c47438 we can remove math.h.
Benjamin Cama [Wed, 17 Aug 2011 00:28:33 +0000 (02:28 +0200)]
Since 7c47438 we can remove math.h.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoMake routset()/route6set() use netlink.
Benjamin Cama [Wed, 17 Aug 2011 00:23:13 +0000 (02:23 +0200)]
Make routset()/route6set() use netlink.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoRoute setting sockets don't exist anymore; remove them.
Benjamin Cama [Wed, 17 Aug 2011 00:22:01 +0000 (02:22 +0200)]
Route setting sockets don't exist anymore; remove them.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoFix last commit on switching to CIDR.
Benjamin Cama [Wed, 17 Aug 2011 00:21:01 +0000 (02:21 +0200)]
Fix last commit on switching to CIDR.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoSwitch from masks to CIDR globally for IPv4.
Benjamin Cama [Tue, 16 Aug 2011 23:41:54 +0000 (01:41 +0200)]
Switch from masks to CIDR globally for IPv4.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoSimplify route attribute appending.
Benjamin Cama [Tue, 16 Aug 2011 22:45:27 +0000 (00:45 +0200)]
Simplify route attribute appending.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoBetter tun device name length handling.
Benjamin Cama [Tue, 16 Aug 2011 22:23:25 +0000 (00:23 +0200)]
Better tun device name length handling.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoFix wrong rta type.
Benjamin Cama [Tue, 16 Aug 2011 17:04:08 +0000 (19:04 +0200)]
Fix wrong rta type.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agonetlink: Better error handling.
Benjamin Cama [Tue, 16 Aug 2011 16:45:53 +0000 (18:45 +0200)]
netlink: Better error handling.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoAdd netlink fd polling.
Benjamin Cama [Tue, 16 Aug 2011 15:19:42 +0000 (17:19 +0200)]
Add netlink fd polling.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoRemove all acknoledgement stuff. Still doesn't work.
Benjamin Cama [Tue, 16 Aug 2011 14:42:13 +0000 (16:42 +0200)]
Remove all acknoledgement stuff. Still doesn't work.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoCommiting the rework I have done until now.
Benjamin Cama [Tue, 16 Aug 2011 14:06:33 +0000 (16:06 +0200)]
Commiting the rework I have done until now.

But I will remove the ack stuff, too complicated.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoNetlink bugfixes.
Benjamin Cama [Mon, 15 Aug 2011 22:12:23 +0000 (00:12 +0200)]
Netlink bugfixes.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoFurther netlink implementation. Not working yet.
Benjamin Cama [Mon, 15 Aug 2011 20:59:13 +0000 (22:59 +0200)]
Further netlink implementation. Not working yet.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoFirst netlink functions.
Benjamin Cama [Sun, 14 Aug 2011 20:56:35 +0000 (22:56 +0200)]
First netlink functions.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
12 years agoMerge remote-tracking branch 'upstream-repo/master' into upstream upstream/2.2.1
Benjamin Cama [Thu, 7 Jul 2011 10:47:12 +0000 (12:47 +0200)]
Merge remote-tracking branch 'upstream-repo/master' into upstream

12 years agoImported Upstream version 2.1.21 upstream/2.1.21
Benjamin Cama [Thu, 7 Jul 2011 10:45:05 +0000 (12:45 +0200)]
Imported Upstream version 2.1.21

13 years agoApply patch from Geoffrey D. Bennett to fix retry of control packets.
bodea [Thu, 20 Jan 2011 12:48:40 +0000 (12:48 +0000)]
Apply patch from Geoffrey D. Bennett to fix retry of control packets.

14 years agoApply patch from Cyril Elkaim to fix an issue with MacOS.
bodea [Fri, 26 Mar 2010 00:39:24 +0000 (00:39 +0000)]
Apply patch from Cyril Elkaim to fix an issue with MacOS.

14 years agoApply patch from Cyril Elkaim to fix an issue with MacOS.
bodea [Thu, 25 Mar 2010 05:24:23 +0000 (05:24 +0000)]
Apply patch from Cyril Elkaim to fix an issue with MacOS.

14 years agoApply patch from Michael O to avoid sending multiple CDNs.
bodea [Mon, 11 Jan 2010 12:16:20 +0000 (12:16 +0000)]
Apply patch from Michael O to avoid sending multiple CDNs.

14 years agoApply patch from Michael O to avoid sending multiple CDNs.
bodea [Sat, 9 Jan 2010 13:33:41 +0000 (13:33 +0000)]
Apply patch from Michael O to avoid sending multiple CDNs.

14 years agoApply MLPPP patch from Muhammad Tayseer Alquoatli, very belatedly, with
bodea [Tue, 8 Dec 2009 14:49:28 +0000 (14:49 +0000)]
Apply MLPPP patch from Muhammad Tayseer Alquoatli, very belatedly, with
thanks.  Changes:
- Handle session shutdown gracefully regarding leaving the bundle (bug that is
  caused when a all session leaves a bundle then another join)
- IP assignment is done only for the first session in the bundle (save IP
  waste for multiple MLPPP sessions)
- Route is being added only for the first session in the bundle (less routes
  on l2tpns system)
- Fix route deletion problem for MLPPP sessions (bug that caused when a
  session leaves a bundle)
- Uniformity of sequence number space satisfied (according to RFC1990)
- Fix reassembling fragmented packets and handling lost fragments (according
  to RFC 1990)
- FragmentatConnection to l2tpns.cvs.sourceforge.net closed by remote host.n
  across N session rather than two)
- Sequence numbers extraction mask has been corrected (bug in extracting
  sequence numbers)
- some clustering support fixes
- Upload/Download statistics has been corrected
- add "kill_timedout_sessions" config option

16 years agopropagate select error
bodea [Thu, 28 Jun 2007 07:22:50 +0000 (07:22 +0000)]
propagate select error

17 years agosimplify throttle logic
bodea [Thu, 25 Jan 2007 12:36:48 +0000 (12:36 +0000)]
simplify throttle logic

17 years agoremove float
bodea [Sun, 14 Jan 2007 04:07:52 +0000 (04:07 +0000)]
remove float

17 years agoadd "shutdown" and "reload" CLI commands (Daryl Tester)
bodea [Mon, 18 Dec 2006 12:08:28 +0000 (12:08 +0000)]
add "shutdown" and "reload" CLI commands (Daryl Tester)

17 years agodon't send interim records before session start (Daryl Tester)
bodea [Mon, 18 Dec 2006 12:05:36 +0000 (12:05 +0000)]
don't send interim records before session start (Daryl Tester)

17 years agoadd Makefile, cleanup for -std=c99
bodea [Mon, 18 Dec 2006 11:58:35 +0000 (11:58 +0000)]
add Makefile, cleanup for -std=c99

17 years agoadd CVE
bodea [Thu, 7 Dec 2006 05:46:16 +0000 (05:46 +0000)]
add CVE

17 years agominor cleanup
bodea [Tue, 5 Dec 2006 05:22:59 +0000 (05:22 +0000)]
minor cleanup

17 years agofix heartt pad
bodea [Mon, 4 Dec 2006 20:54:51 +0000 (20:54 +0000)]
fix heartt pad

17 years agoSecurity: Rhys Kidd identified a vulnerability in the handling of
bodea [Mon, 4 Dec 2006 20:50:02 +0000 (20:50 +0000)]
Security: Rhys Kidd identified a vulnerability in the handling of
heartbeat packets.  Drop oversize heartbeat packets.

17 years agofix comment
bodea [Mon, 23 Oct 2006 02:51:53 +0000 (02:51 +0000)]
fix comment

17 years agoallow DNS servers to be specified using either old or new vendor-specific Ascend...
bodea [Wed, 2 Aug 2006 14:17:30 +0000 (14:17 +0000)]
allow DNS servers to be specified using either old or new vendor-specific Ascend formats

17 years agocleanup clash between timeout and session_timout
bodea [Wed, 2 Aug 2006 13:35:39 +0000 (13:35 +0000)]
cleanup clash between timeout and session_timout

17 years agofix sign problem with reporting of unknown RADIUS VSAs
bodea [Wed, 2 Aug 2006 12:54:45 +0000 (12:54 +0000)]
fix sign problem with reporting of unknown RADIUS VSAs

17 years agofix log message
bodea [Mon, 17 Jul 2006 07:53:08 +0000 (07:53 +0000)]
fix log message

17 years agoresolve gcc 4.1 warning by changing ip_hash to a union
bodea [Sat, 1 Jul 2006 14:07:35 +0000 (14:07 +0000)]
resolve gcc 4.1 warning by changing ip_hash to a union

17 years agoadd radius_bind_{min,max} options
bodea [Sat, 1 Jul 2006 12:40:10 +0000 (12:40 +0000)]
add radius_bind_{min,max} options

17 years agoset acct-disconnect-cause from result code AVP if no disconnect cause AVP is present
bodea [Thu, 22 Jun 2006 15:30:29 +0000 (15:30 +0000)]
set acct-disconnect-cause from result code AVP if no disconnect cause AVP is present

17 years agoadd session/idle timeouts
bodea [Sun, 11 Jun 2006 12:46:18 +0000 (12:46 +0000)]
add session/idle timeouts

17 years agokludge around problem with Netgear DM602 authentication
bodea [Sat, 3 Jun 2006 08:16:46 +0000 (08:16 +0000)]
kludge around problem with Netgear DM602 authentication

17 years agoconvert manual.html to docbook
bodea [Tue, 23 May 2006 14:28:25 +0000 (14:28 +0000)]
convert manual.html to docbook

17 years agoremove unused param_packet_[tr]x structures
bodea [Mon, 22 May 2006 07:41:33 +0000 (07:41 +0000)]
remove unused param_packet_[tr]x structures

17 years agoremove defunct PLUGIN_PACKET_{RX,TX} constants
bodea [Thu, 18 May 2006 16:49:30 +0000 (16:49 +0000)]
remove defunct PLUGIN_PACKET_{RX,TX} constants

17 years agocorrect comment: throttle_speed rather than throttle_rate
bodea [Thu, 18 May 2006 14:40:31 +0000 (14:40 +0000)]
correct comment: throttle_speed rather than throttle_rate

17 years agouse %u when logging unsigned values
bodea [Tue, 16 May 2006 06:46:37 +0000 (06:46 +0000)]
use %u when logging unsigned values

17 years agono magic
bodea [Fri, 5 May 2006 08:10:18 +0000 (08:10 +0000)]
no magic

17 years agoupdate copyright years
bodea [Thu, 4 May 2006 01:01:56 +0000 (01:01 +0000)]
update copyright years

17 years ago*** empty log message ***
bodea [Fri, 28 Apr 2006 08:51:16 +0000 (08:51 +0000)]
*** empty log message ***

17 years agocosmetic changes
bodea [Fri, 28 Apr 2006 07:17:49 +0000 (07:17 +0000)]
cosmetic changes

17 years agoremove non-working setuid option
bodea [Thu, 27 Apr 2006 14:37:27 +0000 (14:37 +0000)]
remove non-working setuid option

17 years agoadd Multilink support from Khaled Al Hamwi
bodea [Thu, 27 Apr 2006 09:53:49 +0000 (09:53 +0000)]
add Multilink support from Khaled Al Hamwi

17 years agoapply patch from liran
bodea [Wed, 26 Apr 2006 01:15:43 +0000 (01:15 +0000)]
apply patch from liran

18 years agoinitial converion of liran's "Practical VPNs" to docbook
bodea [Mon, 24 Apr 2006 15:19:41 +0000 (15:19 +0000)]
initial converion of liran's "Practical VPNs" to docbook

18 years agoonly poll clifd if successfully bound
bodea [Sun, 23 Apr 2006 23:18:30 +0000 (23:18 +0000)]
only poll clifd if successfully bound

18 years agointerpret "local" direction correctly (as LAC) in disconnect AVPs release_2_1_18
bodea [Tue, 18 Apr 2006 06:00:46 +0000 (06:00 +0000)]
interpret "local" direction correctly (as LAC) in disconnect AVPs

18 years agodon't shutdown on TerminateReq, wait for CDN
bodea [Tue, 18 Apr 2006 06:00:07 +0000 (06:00 +0000)]
don't shutdown on TerminateReq, wait for CDN

18 years agoadd Acct-Terminate-Cause to RADIUS stop records release_2_1_17
bodea [Thu, 13 Apr 2006 11:14:35 +0000 (11:14 +0000)]
add Acct-Terminate-Cause to RADIUS stop records

18 years agoset source address for DAE responses
bodea [Wed, 5 Apr 2006 02:13:48 +0000 (02:13 +0000)]
set source address for DAE responses

18 years agoset IP_PKTINFO on controlfd for recvfromto
bodea [Wed, 5 Apr 2006 01:50:33 +0000 (01:50 +0000)]
set IP_PKTINFO on controlfd for recvfromto

18 years agosend nsctl responses back using the correct source address
bodea [Wed, 5 Apr 2006 01:45:57 +0000 (01:45 +0000)]
send nsctl responses back using the correct source address

18 years agofix IPCP length test to allow Terminate-Request (4 bytes)
bodea [Mon, 27 Mar 2006 03:01:08 +0000 (03:01 +0000)]
fix IPCP length test to allow Terminate-Request (4 bytes)

18 years agodecrease ip_conntrack_tcp_timeout_established to 5hrs release_2_1_16
bodea [Thu, 23 Feb 2006 01:07:23 +0000 (01:07 +0000)]
decrease ip_conntrack_tcp_timeout_established to 5hrs

18 years agoadditional length checks in processlcp
bodea [Fri, 17 Feb 2006 15:05:13 +0000 (15:05 +0000)]
additional length checks in processlcp
allow peer to request a new magic-number, or to disable magic-numbers

18 years agoavoid endless loop in processipcp, processipv6cp
bodea [Fri, 17 Feb 2006 14:35:53 +0000 (14:35 +0000)]
avoid endless loop in processipcp, processipv6cp

18 years agovalidate source of RADIUS packets
bodea [Fri, 17 Feb 2006 13:27:07 +0000 (13:27 +0000)]
validate source of RADIUS packets

18 years agoensure session changes from LCP ConfigReq/ConfigNak are sent to cluster
bodea [Thu, 19 Jan 2006 21:31:25 +0000 (21:31 +0000)]
ensure session changes from LCP ConfigReq/ConfigNak are sent to cluster

18 years agoreturn on failed lcp
bodea [Thu, 19 Jan 2006 21:06:39 +0000 (21:06 +0000)]
return on failed lcp

18 years agohandle LCP NAK of magic-number
bodea [Thu, 19 Jan 2006 21:00:24 +0000 (21:00 +0000)]
handle LCP NAK of magic-number

18 years agocorrect addition of single IP to pool
bodea [Thu, 19 Jan 2006 20:55:03 +0000 (20:55 +0000)]
correct addition of single IP to pool

18 years agosend configured magic-no in LCP EchoReq when LCP is opened
bodea [Tue, 20 Dec 2005 04:57:16 +0000 (04:57 +0000)]
send configured magic-no in LCP EchoReq when LCP is opened

18 years agoadd service-type/framed-protocol to RADIUS records release_2_1_15
bodea [Mon, 19 Dec 2005 06:18:13 +0000 (06:18 +0000)]
add service-type/framed-protocol to RADIUS records

18 years agofix session MRU, tunnel MTU
bodea [Mon, 19 Dec 2005 06:08:42 +0000 (06:08 +0000)]
fix session MRU, tunnel MTU

18 years agobreak LCP configure loop with shutdown
bodea [Thu, 15 Dec 2005 14:23:03 +0000 (14:23 +0000)]
break LCP configure loop with shutdown

18 years agoreduce logging of LCP EchoReply packets
bodea [Thu, 15 Dec 2005 14:18:16 +0000 (14:18 +0000)]
reduce logging of LCP EchoReply packets

18 years agodrop backtrace
bodea [Wed, 14 Dec 2005 02:19:15 +0000 (02:19 +0000)]
drop backtrace

18 years agorun PLUGIN_RADIUS_ACCOUNT for Start records release_2_1_14
bodea [Fri, 9 Dec 2005 00:43:17 +0000 (00:43 +0000)]
run PLUGIN_RADIUS_ACCOUNT for Start records

18 years ago- Reject unknown/unconfigured protocols on the master. release_2_1_13
bodea [Wed, 7 Dec 2005 05:21:37 +0000 (05:21 +0000)]
- Reject unknown/unconfigured protocols on the 
- Sanity check MRU before using in ppp_code_rej, protoreject.

18 years agoboring: spacing change
bodea [Tue, 6 Dec 2005 23:53:14 +0000 (23:53 +0000)]
boring: spacing change

18 years agoadd ping-sweep
bodea [Tue, 6 Dec 2005 12:48:47 +0000 (12:48 +0000)]
add ping-sweep

18 years agoremove parsemac
bodea [Tue, 6 Dec 2005 09:43:42 +0000 (09:43 +0000)]
remove parsemac

18 years agoremove unused MAC config type
bodea [Tue, 6 Dec 2005 00:00:31 +0000 (00:00 +0000)]
remove unused MAC config type

18 years agounused: sessiont.{ns,nr}
bodea [Mon, 5 Dec 2005 14:10:42 +0000 (14:10 +0000)]
unused: sessiont.{ns,nr}

18 years agoindicate spare (struct padding) bytes
bodea [Mon, 5 Dec 2005 13:56:12 +0000 (13:56 +0000)]
indicate spare (struct padding) bytes

18 years agofix CTUNNEL decompress error message
bodea [Mon, 5 Dec 2005 12:47:12 +0000 (12:47 +0000)]
fix CTUNNEL decompress error message

18 years agofix IPCP negotiation of secondary DNS server
bodea [Sun, 4 Dec 2005 13:06:49 +0000 (13:06 +0000)]
fix IPCP negotiation of secondary DNS server

18 years agouse License header, fix BuildRoot
bodea [Fri, 25 Nov 2005 04:55:38 +0000 (04:55 +0000)]
use License header, fix BuildRoot

18 years agofix constants
bodea [Fri, 25 Nov 2005 04:23:55 +0000 (04:23 +0000)]
fix constants

18 years agoadd test/ping-sweep
bodea [Fri, 25 Nov 2005 02:18:40 +0000 (02:18 +0000)]
add test/ping-sweep

18 years ago*** empty log message *** release_2_1_12
bodea [Thu, 17 Nov 2005 23:50:35 +0000 (23:50 +0000)]
*** empty log message ***

18 years agoset MTU on tunnel interface so the kernel will re-fragment large packets to within MRU
bodea [Thu, 17 Nov 2005 07:35:35 +0000 (07:35 +0000)]
set MTU on tunnel interface so the kernel will re-fragment large packets to within MRU

18 years agofix checksum recalc
bodea [Thu, 17 Nov 2005 06:46:24 +0000 (06:46 +0000)]
fix checksum recalc

18 years agoensure MRU is sane
bodea [Thu, 17 Nov 2005 05:24:17 +0000 (05:24 +0000)]
ensure MRU is sane

18 years agolayer 4 info implies !frag release_2_1_11
bodea [Mon, 14 Nov 2005 21:08:30 +0000 (21:08 +0000)]
layer 4 info implies !frag