include Acct-Session-Time in interim records
This commit is contained in:
parent
aabf1d3fe9
commit
92eb6ebf42
2 changed files with 7 additions and 8 deletions
1
Changes
1
Changes
|
|
@ -5,6 +5,7 @@
|
||||||
- Clean up new warnings from gcc 4.0.
|
- Clean up new warnings from gcc 4.0.
|
||||||
- Replace flags used for LCP/IPCP with state machine.
|
- Replace flags used for LCP/IPCP with state machine.
|
||||||
- Use openssl MD5, fix DAE vector (Alex Kiernan).
|
- Use openssl MD5, fix DAE vector (Alex Kiernan).
|
||||||
|
- Include Acct-Session-Time in interim records.
|
||||||
|
|
||||||
* Tue Jun 14 2005 Brendan O'Dea <bod@optusnet.com.au> 2.1.1
|
* Tue Jun 14 2005 Brendan O'Dea <bod@optusnet.com.au> 2.1.1
|
||||||
- Add missing newline to backtrace macro.
|
- Add missing newline to backtrace macro.
|
||||||
|
|
|
||||||
6
radius.c
6
radius.c
|
|
@ -1,6 +1,6 @@
|
||||||
// L2TPNS Radius Stuff
|
// L2TPNS Radius Stuff
|
||||||
|
|
||||||
char const *cvs_id_radius = "$Id: radius.c,v 1.37 2005-07-31 10:04:10 bodea Exp $";
|
char const *cvs_id_radius = "$Id: radius.c,v 1.38 2005-07-31 10:35:39 bodea Exp $";
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -265,13 +265,11 @@ void radiussend(uint16_t r, uint8_t state)
|
||||||
p[1] = 6;
|
p[1] = 6;
|
||||||
*(uint32_t *) (p + 2) = htonl(session[s].cout);
|
*(uint32_t *) (p + 2) = htonl(session[s].cout);
|
||||||
p += p[1];
|
p += p[1];
|
||||||
if (state == RADIUSSTOP)
|
|
||||||
{
|
|
||||||
*p = 46; // session time
|
*p = 46; // session time
|
||||||
p[1] = 6;
|
p[1] = 6;
|
||||||
*(uint32_t *) (p + 2) = htonl(time(NULL) - session[s].opened);
|
*(uint32_t *) (p + 2) = htonl(time(NULL) - session[s].opened);
|
||||||
p += p[1];
|
p += p[1];
|
||||||
}
|
|
||||||
|
|
||||||
*p = 47; // input packets
|
*p = 47; // input packets
|
||||||
p[1] = 6;
|
p[1] = 6;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue