Commit graph

131 commits

Author SHA1 Message Date
Benjamin Cama
ec7ce23c79 Merge branch 'use-netlink' into fdn-mods
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 17:23:07 +02:00
Benjamin Cama
7c474381d4 Switch from masks to CIDR globally for IPv4.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 01:41:54 +02:00
Benjamin Cama
4344f5e9c7 Better tun device name length handling.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 00:23:25 +02:00
Benjamin Cama
7bdb42fe54 Add netlink fd polling.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-16 17:19:42 +02:00
Benjamin Cama
1c898f7017 Merge branch 'rfc4760' into fdn-mods 2011-07-29 13:04:31 +02:00
Benjamin Cama
8c4f3bfe79 Add a config option to set the advertised BGP next hop.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:58:31 +02:00
Benjamin Cama
fd021320ec Add an "hostname" config option.
It is overridden by the -h command line option.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:54 +02:00
Benjamin Cama
8321e71491 Add a cli_bind_address configuration option.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:25 +02:00
Benjamin Cama
b36141c0c7 Add an option to set source address for a BGP session.
When adding a BGP neighbour, one can set "update-source" (quagga syntax) to the
source IP address that will be used for that session.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:00 +02:00
Benjamin Cama
59411b8799 Add a nexthop6 config option.
Will be used to set the NEXT_HOP for IPv6 routes, otherwise our address in
ipv6_prefix is used as the next hop.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-28 15:01:51 +02:00
bodea
ac773ac88d 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
2009-12-08 14:49:28 +00:00
bodea
9d594abcf5 fix comment 2006-10-23 02:51:53 +00:00
bodea
cb031e775d cleanup clash between timeout and session_timout 2006-08-02 13:35:39 +00:00
bodea
9bc9ec99e6 add radius_bind_{min,max} options 2006-07-01 12:40:10 +00:00
bodea
e6bb332ba2 add session/idle timeouts 2006-06-11 12:46:18 +00:00
bodea
241d15a178 remove non-working setuid option 2006-04-27 14:37:27 +00:00
bodea
5e631c6978 add Multilink support from Khaled Al Hamwi 2006-04-27 09:53:49 +00:00
bodea
5dacb3cdf5 only poll clifd if successfully bound 2006-04-23 23:18:30 +00:00
bodea
4f866369ea don't shutdown on TerminateReq, wait for CDN 2006-04-18 06:00:07 +00:00
bodea
b089008c05 add Acct-Terminate-Cause to RADIUS stop records 2006-04-13 11:14:35 +00:00
bodea
42bf2e312d set source address for DAE responses 2006-04-05 02:13:48 +00:00
bodea
af5792cb6a fix IPCP length test to allow Terminate-Request (4 bytes) 2006-03-27 03:01:08 +00:00
bodea
b2bd965594 send configured magic-no in LCP EchoReq when LCP is opened 2005-12-20 04:57:16 +00:00
bodea
31e24f76ce fix session MRU, tunnel MTU 2005-12-19 06:08:42 +00:00
bodea
e4ea4838f8 drop backtrace 2005-12-14 02:19:15 +00:00
bodea
6ec70a632b run PLUGIN_RADIUS_ACCOUNT for Start records 2005-12-09 00:43:17 +00:00
bodea
fc94b60b05 - Reject unknown/unconfigured protocols on the master.
- Sanity check MRU before using in ppp_code_rej, protoreject.
2005-12-07 05:21:37 +00:00
bodea
c2c2dfbe65 boring: spacing change 2005-12-06 23:53:14 +00:00
bodea
5a24a99c38 remove unused MAC config type 2005-12-06 00:00:31 +00:00
bodea
560fad4be9 unused: sessiont.{ns,nr} 2005-12-05 14:10:42 +00:00
bodea
1e6ec8b41a indicate spare (struct padding) bytes 2005-12-05 13:56:12 +00:00
bodea
41d3f66458 add test/ping-sweep 2005-11-25 02:18:40 +00:00
bodea
4bbf91e608 set MTU on tunnel interface so the kernel will re-fragment large packets to within MRU 2005-11-17 07:35:35 +00:00
bodea
0dc8fc58d5 fix fragment handling in ip_filter 2005-11-14 08:38:02 +00:00
bodea
4caf4199d1 - Reset restart counters correctly.
- Reset timers on sending ConfigReq.
- Only send one RADIUS Start record, even if IPCP is restarted.
2005-11-04 14:41:50 +00:00
bodea
fcad08f613 fix LCP Echo frequency 2005-10-18 07:19:28 +00:00
bodea
a97b3720a4 add intercept-capture script 2005-10-12 07:16:13 +00:00
bodea
8604240114 don't send tunnel HELLO when there are pending control messages 2005-10-11 07:06:56 +00:00
bodea
c463b012b7 fix Calling-Station-Id in RADIUS accounting records 2005-09-30 13:13:26 +00:00
bodea
05ea15956a move code from signal handlers into mainloop, avoiding a race
condition when forking CLI
2005-09-19 00:29:12 +00:00
bodea
42af131396 - Add l2tp_mtu configuration option, used to define MRU, MSS.
- Adjust TCP MSS options in SYN and SYN,ACK packets to avoid
  fragmentation of tcp packets.
2005-09-16 05:04:28 +00:00
bodea
667a8bc420 make MRU configurable, NAK config requests for larger values 2005-09-15 09:34:46 +00:00
bodea
59706a5394 fix code-reject/protocol-reject 2005-09-13 14:23:07 +00:00
bodea
1e198ac0e2 any traffic on a tunnel resets lastrec, not just control messages 2005-09-12 05:16:42 +00:00
bodea
5cc3beb6c7 add cluster_mcast_ttl option 2005-09-02 23:59:56 +00:00
bodea
3646374c82 avoid Code-Reject loop 2005-08-31 12:38:38 +00:00
bodea
53f1a814a1 handle rejection of MRU negotiation by peer 2005-08-29 06:17:53 +00:00
bodea
3efd4f877a drop level of "Unexpected CHAP message" log 2005-08-24 23:44:08 +00:00
bodea
447f820899 fail IPCP negotiation only on ConfigRej of IP-Address 2005-08-17 03:56:27 +00:00
bodea
2211825760 normalise session, tunnel args 2005-08-10 11:25:56 +00:00