Commit graph

54 commits

Author SHA1 Message Date
bodea
98f1b9718d Security: Rhys Kidd identified a vulnerability in the handling of
heartbeat packets.  Drop oversize heartbeat packets.
2006-12-04 20:50:02 +00:00
bodea
464d19fbb2 fix log message 2006-07-17 07:53:08 +00:00
bodea
e6bb332ba2 add session/idle timeouts 2006-06-11 12:46:18 +00:00
bodea
5e631c6978 add Multilink support from Khaled Al Hamwi 2006-04-27 09:53:49 +00:00
bodea
42bf2e312d set source address for DAE responses 2006-04-05 02:13:48 +00:00
bodea
560fad4be9 unused: sessiont.{ns,nr} 2005-12-05 14:10:42 +00:00
bodea
f402c659e1 fix CTUNNEL decompress error message 2005-12-05 12:47:12 +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
5cc3beb6c7 add cluster_mcast_ttl option 2005-09-02 23:59:56 +00:00
bodea
afc8f4c6c0 - Replace flags used for LCP/IPCP with state machine.
- Use openssl MD5, fix DAE vector (Alex Kiernan).
2005-07-31 10:04:09 +00:00
bodea
4f253feef0 add DAE support (PoD/CoA) from Vladislav Bjelic 2005-06-28 14:48:17 +00:00
bodea
a997e47395 clear cluster_master on election so that slaves will accept a new master 2005-06-27 04:52:54 +00:00
bodea
11e0f6910d Ping new master when we get C_MASTER and delay next election to allow
the unicast limp-along code to kick in if required.
2005-06-14 05:37:09 +00:00
bodea
ec4de7f8c5 Include endpoint address in accounting dump files.
Convert mainloop to use epoll rather than select.
2005-06-04 15:42:35 +00:00
bodea
10b6ddcfc1 merge in changes from 2.0 branch; fix byte counters in accounting records, add gigawords 2005-06-02 11:32:30 +00:00
bodea
ca4801db55 merge cluster fixes from release_2_0 branch 2005-05-26 12:17:30 +00:00
bodea
75ca5fa449 back out C_LASTSEEN change (to be replaced by different solution in merge from 2.0) 2005-05-24 07:45:13 +00:00
bodea
977ffbb3b4 session structure has changed: bump heartbeat version and convert old format heartbeats 2005-05-08 08:00:49 +00:00
bodea
851e04dbdf Don't process C_LASTSEEN unless we're a master (otherwise a crashed
master kills all slaves once restarted).
2005-05-07 10:14:33 +00:00
bodea
1642e0dbaa Add interim accounting support from Vladislav Bjelic 2005-05-05 10:02:06 +00:00
bodea
715e74f4c7 Update .last_packet in cluster_handle_bytes only when there have
been bytes received from the modem (dead sessions were having the
idle timeout reset by stray packets).
2005-05-02 09:06:05 +00:00
bodea
018edc9978 missed merge from stable branch 2005-04-01 08:55:29 +00:00
bodea
02587abe65 reset .die on master takeover 2005-04-01 08:46:03 +00:00
bodea
7825a26691 merge back 2.0 branch changes 2005-02-14 06:58:38 +00:00
bodea
ea99c37331 use constant 2005-02-09 02:38:51 +00:00
bodea
e55b28c107 rename sess_count to sess_local, fiddle with packet_limit log output 2005-01-13 07:57:35 +00:00
bodea
b09ad455e0 typo 2004-12-22 05:30:58 +00:00
bodea
68921aa65a sanity check that cluster_send_session is not called from a child process
throttle outgoing LASTSEEN packets to at most one per second for a given seq#
2004-12-20 07:23:41 +00:00
bodea
4d7d7850b5 add counters for select_called, select_ready and select_processed
fix cli_print format strings
2004-12-16 23:40:30 +00:00
bodea
6b1075b65c use standard uintN_t types for portability 2004-12-16 08:49:52 +00:00
bodea
8a13bbfe54 typo 2004-12-15 02:56:38 +00:00
bodea
8c631a812f skip where our table version is greater (rather than falling through) 2004-12-15 01:04:34 +00:00
bodea
d23c3efc3c make cluster_sockfd non-blocking 2004-12-13 05:09:55 +00:00
bodea
45250b5056 typo in log message 2004-12-09 00:38:44 +00:00
bodea
12f5781dc3 better cluster master collision resolution 2004-12-03 06:40:02 +00:00
bodea
bc5b25832a make "established" a different tcp flag match
add fragment handling
drop IP address from LOG macro (function)
2004-11-29 02:17:17 +00:00
bodea
27329d23aa - Ignore gateway address in Framed-Route (from Jonathan McDowell).
- Call sessionshutdown() when a tunnel is dropped rather than
  sessionkill() to ensure that RADIUS stop records are sent.
- Cleanup: make a bunch of global functions/variables static.
2004-11-16 07:54:32 +00:00
bodea
e3afcf30c0 handle routing properly in lone-master case 2004-11-09 03:09:12 +00:00
bodea
d2c470fb4e use LOG for logging macro
clean up initlcp handling
2004-11-05 04:55:25 +00:00
bodea
c34bfa1cfc - Use 2 seperate u16 values for throttle rate in/out
- Defer adding radius fds to the select loop until become_master
2004-11-02 04:35:03 +00:00
bodea
1154fa5dca slaves get new tbf indexes on becoming master anyway 2004-10-30 07:35:00 +00:00
bodea
b9115cdec4 sync changes 2004-10-29 04:25:40 +00:00
fred_nerk
9b161f4f17 foo 2004-09-21 04:30:46 +00:00
fred_nerk
272e831e80 Cleanups and sync 2004-09-02 04:18:07 +00:00
fred_nerk
4b16fcbdfd Allow cli session changes to happen if the session is timing out 2004-08-02 06:06:28 +00:00
bodea
3ef237977d - TerminateAck fix from Yuri
- Adject cli_loop args for libcli 1.8.0
- Allow for backward compatabity in C_PING packets
- Don't send RADIUS stop messages from sessionshutdown when called from
  sessionkill.
2004-07-11 07:57:33 +00:00
bodea
570d0d5385 - s/tap/tun/
- fix for LASTSEEN breakage:  don't do anything in the CLI other than
  flag changes to be made by the parent
- split out master parts from cluster_check_master() into cluster_check_slaves()
2004-07-08 16:54:35 +00:00
bodea
def1dfd3cc - set hostname in CLI prompt
- add assertions to help identify odd LASTSEEN breakage
- make cluster_hb_interval work; include interval/timeout in heartbeats
  so that a change on the master is propagated immediately to the slaves
- use fast heartbeats when there are slaves not up to date
- ensure basetime of shut down master is set to zero (prevent delayed election)
- fix radius session leak on IPCP timeout
- fix some off-by-one errors in tunnel/session loops
2004-07-07 09:09:53 +00:00
bodea
52e205c75e roll in Michael's "limp along" fix for when a slave drops temporarily from the mcast group 2004-07-05 06:54:01 +00:00
bodea
a8434db159 fold back in changes from production 2004-07-02 07:30:43 +00:00