Benjamin Cama [Wed, 20 Jul 2011 09:00:43 +0000 (11:00 +0200)]
Add v6 routes handling.
Basically duplicate the v4 functions.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 22:49:28 +0000 (00:49 +0200)]
Move NEXT_HOP attribute so that we can exclude it.
We will need to do that when we will send IPv6 routes (RFC4760 says we SHOULD
NOT carry this attribute when we will send UPDATE without NLRI). So, we save
the length of all the attributes except NEXT_HOP for later memcpy().
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 22:30:16 +0000 (00:30 +0200)]
Fix a typo from last commit.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 22:29:02 +0000 (00:29 +0200)]
Disable IPv6 routes adv when peer doesn't support it.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 22:22:18 +0000 (00:22 +0200)]
Advertise IPv6 capability to peers.
Also rename a param define, and fix a forgotten ntohs().
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 22:01:23 +0000 (00:01 +0200)]
Avoid implicit cast warning.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 21:59:27 +0000 (23:59 +0200)]
Add a per-peer flag if it supports IPv6 routes adv.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 21:47:16 +0000 (23:47 +0200)]
Add Multiprotocol definitions and more param handling.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Tue, 19 Jul 2011 13:15:40 +0000 (15:15 +0200)]
Add Optional Parameter and Capability handling.
Optional Parameters is defined in RFC4271 and Capability advertisement in
RFC3392. For now, we only hande them upon receiving an OPEN message.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
Benjamin Cama [Thu, 7 Jul 2011 10:47:12 +0000 (12:47 +0200)]
Merge remote-tracking branch 'upstream-repo/master' into upstream
Benjamin Cama [Thu, 7 Jul 2011 10:45:05 +0000 (12:45 +0200)]
Imported Upstream version 2.1.21
bodea [Thu, 20 Jan 2011 12:48:40 +0000 (12:48 +0000)]
Apply patch from Geoffrey D. Bennett to fix retry of control packets.
bodea [Fri, 26 Mar 2010 00:39:24 +0000 (00:39 +0000)]
Apply 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.
bodea [Mon, 11 Jan 2010 12:16:20 +0000 (12:16 +0000)]
Apply 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.
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
bodea [Thu, 28 Jun 2007 07:22:50 +0000 (07:22 +0000)]
propagate select error
bodea [Thu, 25 Jan 2007 12:36:48 +0000 (12:36 +0000)]
simplify throttle logic
bodea [Sun, 14 Jan 2007 04:07:52 +0000 (04:07 +0000)]
remove float
bodea [Mon, 18 Dec 2006 12:08:28 +0000 (12:08 +0000)]
add "shutdown" and "reload" CLI commands (Daryl Tester)
bodea [Mon, 18 Dec 2006 12:05:36 +0000 (12:05 +0000)]
don't send interim records before session start (Daryl Tester)
bodea [Mon, 18 Dec 2006 11:58:35 +0000 (11:58 +0000)]
add Makefile, cleanup for -std=c99
bodea [Thu, 7 Dec 2006 05:46:16 +0000 (05:46 +0000)]
add CVE
bodea [Tue, 5 Dec 2006 05:22:59 +0000 (05:22 +0000)]
minor cleanup
bodea [Mon, 4 Dec 2006 20:54:51 +0000 (20:54 +0000)]
fix heartt pad
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.
bodea [Mon, 23 Oct 2006 02:51:53 +0000 (02:51 +0000)]
fix comment
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
bodea [Wed, 2 Aug 2006 13:35:39 +0000 (13:35 +0000)]
cleanup clash between timeout and session_timout
bodea [Wed, 2 Aug 2006 12:54:45 +0000 (12:54 +0000)]
fix sign problem with reporting of unknown RADIUS VSAs
bodea [Mon, 17 Jul 2006 07:53:08 +0000 (07:53 +0000)]
fix log message
bodea [Sat, 1 Jul 2006 14:07:35 +0000 (14:07 +0000)]
resolve gcc 4.1 warning by changing ip_hash to a union
bodea [Sat, 1 Jul 2006 12:40:10 +0000 (12:40 +0000)]
add radius_bind_{min,max} options
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
bodea [Sun, 11 Jun 2006 12:46:18 +0000 (12:46 +0000)]
add session/idle timeouts
bodea [Sat, 3 Jun 2006 08:16:46 +0000 (08:16 +0000)]
kludge around problem with Netgear DM602 authentication
bodea [Tue, 23 May 2006 14:28:25 +0000 (14:28 +0000)]
convert manual.html to docbook
bodea [Mon, 22 May 2006 07:41:33 +0000 (07:41 +0000)]
remove unused param_packet_[tr]x structures
bodea [Thu, 18 May 2006 16:49:30 +0000 (16:49 +0000)]
remove defunct PLUGIN_PACKET_{RX,TX} constants
bodea [Thu, 18 May 2006 14:40:31 +0000 (14:40 +0000)]
correct comment: throttle_speed rather than throttle_rate
bodea [Tue, 16 May 2006 06:46:37 +0000 (06:46 +0000)]
use %u when logging unsigned values
bodea [Fri, 5 May 2006 08:10:18 +0000 (08:10 +0000)]
no magic
bodea [Thu, 4 May 2006 01:01:56 +0000 (01:01 +0000)]
update copyright years
bodea [Fri, 28 Apr 2006 08:51:16 +0000 (08:51 +0000)]
*** empty log message ***
bodea [Fri, 28 Apr 2006 07:17:49 +0000 (07:17 +0000)]
cosmetic changes
bodea [Thu, 27 Apr 2006 14:37:27 +0000 (14:37 +0000)]
remove non-working setuid option
bodea [Thu, 27 Apr 2006 09:53:49 +0000 (09:53 +0000)]
add Multilink support from Khaled Al Hamwi
bodea [Wed, 26 Apr 2006 01:15:43 +0000 (01:15 +0000)]
apply patch from liran
bodea [Mon, 24 Apr 2006 15:19:41 +0000 (15:19 +0000)]
initial converion of liran's "Practical VPNs" to docbook
bodea [Sun, 23 Apr 2006 23:18:30 +0000 (23:18 +0000)]
only poll clifd if successfully bound
bodea [Tue, 18 Apr 2006 06:00:46 +0000 (06:00 +0000)]
interpret "local" direction correctly (as LAC) in disconnect AVPs
bodea [Tue, 18 Apr 2006 06:00:07 +0000 (06:00 +0000)]
don't shutdown on TerminateReq, wait for CDN
bodea [Thu, 13 Apr 2006 11:14:35 +0000 (11:14 +0000)]
add Acct-Terminate-Cause to RADIUS stop records
bodea [Wed, 5 Apr 2006 02:13:48 +0000 (02:13 +0000)]
set source address for DAE responses
bodea [Wed, 5 Apr 2006 01:50:33 +0000 (01:50 +0000)]
set IP_PKTINFO on controlfd for recvfromto
bodea [Wed, 5 Apr 2006 01:45:57 +0000 (01:45 +0000)]
send nsctl responses back using the correct source address
bodea [Mon, 27 Mar 2006 03:01:08 +0000 (03:01 +0000)]
fix IPCP length test to allow Terminate-Request (4 bytes)
bodea [Thu, 23 Feb 2006 01:07:23 +0000 (01:07 +0000)]
decrease ip_conntrack_tcp_timeout_established to 5hrs
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
bodea [Fri, 17 Feb 2006 14:35:53 +0000 (14:35 +0000)]
avoid endless loop in processipcp, processipv6cp
bodea [Fri, 17 Feb 2006 13:27:07 +0000 (13:27 +0000)]
validate source of RADIUS packets
bodea [Thu, 19 Jan 2006 21:31:25 +0000 (21:31 +0000)]
ensure session changes from LCP ConfigReq/ConfigNak are sent to cluster
bodea [Thu, 19 Jan 2006 21:06:39 +0000 (21:06 +0000)]
return on failed lcp
bodea [Thu, 19 Jan 2006 21:00:24 +0000 (21:00 +0000)]
handle LCP NAK of magic-number
bodea [Thu, 19 Jan 2006 20:55:03 +0000 (20:55 +0000)]
correct addition of single IP to pool
bodea [Tue, 20 Dec 2005 04:57:16 +0000 (04:57 +0000)]
send configured magic-no in LCP EchoReq when LCP is opened
bodea [Mon, 19 Dec 2005 06:18:13 +0000 (06:18 +0000)]
add service-type/framed-protocol to RADIUS records
bodea [Mon, 19 Dec 2005 06:08:42 +0000 (06:08 +0000)]
fix session MRU, tunnel MTU
bodea [Thu, 15 Dec 2005 14:23:03 +0000 (14:23 +0000)]
break LCP configure loop with shutdown
bodea [Thu, 15 Dec 2005 14:18:16 +0000 (14:18 +0000)]
reduce logging of LCP EchoReply packets
bodea [Wed, 14 Dec 2005 02:19:15 +0000 (02:19 +0000)]
drop backtrace
bodea [Fri, 9 Dec 2005 00:43:17 +0000 (00:43 +0000)]
run PLUGIN_RADIUS_ACCOUNT for Start records
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.
bodea [Tue, 6 Dec 2005 23:53:14 +0000 (23:53 +0000)]
boring: spacing change
bodea [Tue, 6 Dec 2005 12:48:47 +0000 (12:48 +0000)]
add ping-sweep
bodea [Tue, 6 Dec 2005 09:43:42 +0000 (09:43 +0000)]
remove parsemac
bodea [Tue, 6 Dec 2005 00:00:31 +0000 (00:00 +0000)]
remove unused MAC config type
bodea [Mon, 5 Dec 2005 14:10:42 +0000 (14:10 +0000)]
unused: sessiont.{ns,nr}
bodea [Mon, 5 Dec 2005 13:56:12 +0000 (13:56 +0000)]
indicate spare (struct padding) bytes
bodea [Mon, 5 Dec 2005 12:47:12 +0000 (12:47 +0000)]
fix CTUNNEL decompress error message
bodea [Sun, 4 Dec 2005 13:06:49 +0000 (13:06 +0000)]
fix IPCP negotiation of secondary DNS server
bodea [Fri, 25 Nov 2005 04:55:38 +0000 (04:55 +0000)]
use License header, fix BuildRoot
bodea [Fri, 25 Nov 2005 04:23:55 +0000 (04:23 +0000)]
fix constants
bodea [Fri, 25 Nov 2005 02:18:40 +0000 (02:18 +0000)]
add test/ping-sweep
bodea [Thu, 17 Nov 2005 23:50:35 +0000 (23:50 +0000)]
*** empty log message ***
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
bodea [Thu, 17 Nov 2005 06:46:24 +0000 (06:46 +0000)]
fix checksum recalc
bodea [Thu, 17 Nov 2005 05:24:17 +0000 (05:24 +0000)]
ensure MRU is sane
bodea [Mon, 14 Nov 2005 21:08:30 +0000 (21:08 +0000)]
layer 4 info implies !frag
bodea [Mon, 14 Nov 2005 20:19:08 +0000 (20:19 +0000)]
access-list rule counters are unsigned
bodea [Mon, 14 Nov 2005 09:49:01 +0000 (09:49 +0000)]
exclude counter when comparing filter rules
bodea [Mon, 14 Nov 2005 08:38:02 +0000 (08:38 +0000)]
fix fragment handling in ip_filter
bodea [Fri, 4 Nov 2005 14:41:50 +0000 (14:41 +0000)]
- Reset restart counters correctly.
- Reset timers on sending ConfigReq.
- Only send one RADIUS Start record, even if IPCP is restarted.
bodea [Wed, 19 Oct 2005 03:09:29 +0000 (03:09 +0000)]
add Framed-Route entries to RADIUS records
bodea [Tue, 18 Oct 2005 07:19:28 +0000 (07:19 +0000)]
fix LCP Echo frequency
bodea [Wed, 12 Oct 2005 07:16:53 +0000 (07:16 +0000)]
*** empty log message ***
bodea [Wed, 12 Oct 2005 07:16:13 +0000 (07:16 +0000)]
add intercept-capture script
bodea [Tue, 11 Oct 2005 09:04:53 +0000 (09:04 +0000)]
add Cisco-AVPairs to RADIUS accounting records via plugin_radius_account
bodea [Tue, 11 Oct 2005 07:59:09 +0000 (07:59 +0000)]
move plugin_radius_reset from *ctl to auto* plugins