Apply patch from Geoffrey D. Bennett to fix handle RADIUS Class attribute.

Bump heartbeat version to handle Class entry in session (v6).
Re-arrange session struct to remove padding.
Update cluster code to handle v6 packets.  Drop compatability for pre-v5.
This commit is contained in:
Brendan O'Dea 2011-09-11 21:54:45 +10:00
parent 750e15fc6c
commit d2848cebc4
6 changed files with 104 additions and 81 deletions

View file

@ -24,7 +24,7 @@
#define C_BUNDLE 17 // Bundle structure.
#define C_CBUNDLE 18 // Compressed bundle structure.
#define HB_VERSION 5 // Protocol version number..
#define HB_VERSION 6 // Protocol version number..
#define HB_MAX_SEQ (1<<30) // Maximum sequence number. (MUST BE A POWER OF 2!)
#define HB_HISTORY_SIZE 64 // How many old heartbeats we remember?? (Must be a factor of HB_MAX_SEQ)