aboutsummaryrefslogtreecommitdiff
path: root/lib/libradius/radlib_private.h
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1999-10-31 04:47:59 +0000
committerJohn Polstra <jdp@FreeBSD.org>1999-10-31 04:47:59 +0000
commit0981dfef84de4d45eebdb166a51a0fbdd2edfbc4 (patch)
treed4d15db6bf719df595fa6182fa7e744a74223233 /lib/libradius/radlib_private.h
parent8308463eba7445bd71c47cfb87c9f900efa0fa3e (diff)
downloadsrc-0981dfef84de4d45eebdb166a51a0fbdd2edfbc4.tar.gz
src-0981dfef84de4d45eebdb166a51a0fbdd2edfbc4.zip
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>
Notes
Notes: svn path=/head/; revision=52709
Diffstat (limited to 'lib/libradius/radlib_private.h')
-rw-r--r--lib/libradius/radlib_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libradius/radlib_private.h b/lib/libradius/radlib_private.h
index 21ef9cb2da35..af169704bdbf 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