diff options
author | jdp <jdp@FreeBSD.org> | 1999-10-31 04:47:59 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1999-10-31 04:47:59 +0000 |
commit | f6dc1d4206f58405add2a7a21761f4ea4ed840f2 (patch) | |
tree | d4d15db6bf719df595fa6182fa7e744a74223233 /lib/libradius/radlib_private.h | |
parent | 3514435a4cae39cb637cc6e9bc524d3411bd9988 (diff) | |
download | FreeBSD-src-f6dc1d4206f58405add2a7a21761f4ea4ed840f2.zip FreeBSD-src-f6dc1d4206f58405add2a7a21761f4ea4ed840f2.tar.gz |
Add support for RADIUS accounting. Note, this changes the format
of the /etc/radius.conf file. But the code contains hacks for
backward compatibility, so old files will continue to work.
I updated the man pages and made a couple of minor changes, but
everything else was submitted by Oleg.
PR: misc/14284
Submitted by: Oleg Semyonov <os@altavista.net>
Diffstat (limited to 'lib/libradius/radlib_private.h')
-rw-r--r-- | lib/libradius/radlib_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libradius/radlib_private.h b/lib/libradius/radlib_private.h index 21ef9cb..af16970 100644 --- a/lib/libradius/radlib_private.h +++ b/lib/libradius/radlib_private.h @@ -34,10 +34,15 @@ #include "radlib.h" +/* Handle types */ +#define RADIUS_AUTH 0 /* RADIUS authentication, default */ +#define RADIUS_ACCT 1 /* RADIUS accounting */ + /* Defaults */ #define MAXTRIES 3 #define PATH_RADIUS_CONF "/etc/radius.conf" #define RADIUS_PORT 1812 +#define RADACCT_PORT 1813 #define TIMEOUT 3 /* In seconds */ /* Limits */ @@ -81,6 +86,7 @@ struct rad_handle { int total_tries; /* How many requests we'll send */ int try; /* How many requests we've sent */ int srv; /* Server number we did last */ + int type; /* Handle type */ }; #endif |