diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2012-12-06 19:00:37 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2012-12-06 19:00:37 +0000 |
commit | bf5a1b6502d930e5ff552b6616e7bafe8d575920 (patch) | |
tree | 8d0ad6b1300d7654093c94ccf2cdb651d9af655e /lib/libradius/libradius.3 | |
parent | 38ce9496fedfa55dbe83da3a446802f6756051db (diff) | |
download | src-bf5a1b6502d930e5ff552b6616e7bafe8d575920.tar.gz src-bf5a1b6502d930e5ff552b6616e7bafe8d575920.zip |
- Rewrite radius servers traversal algorithm.
- Add functions for working with IPv6 attributes.
Approved by: ae
Notes
Notes:
svn path=/head/; revision=243956
Diffstat (limited to 'lib/libradius/libradius.3')
-rw-r--r-- | lib/libradius/libradius.3 | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/libradius/libradius.3 b/lib/libradius/libradius.3 index ae0ee2406032..253659cdc947 100644 --- a/lib/libradius/libradius.3 +++ b/lib/libradius/libradius.3 @@ -37,6 +37,8 @@ .Fn rad_acct_open "void" .Ft int .Fn rad_add_server "struct rad_handle *h" "const char *host" "int port" "const char *secret" "int timeout" "int max_tries" +.Ft int +.Fn rad_add_server_ex "struct rad_handle *h" "const char *host" "int port" "const char *secret" "int timeout" "int max_tries" "int dead_time" "struct in_addr bindto" .Ft "struct rad_handle *" .Fn rad_auth_open "void" .Ft void @@ -153,7 +155,12 @@ is used. returns 0 on success, or \-1 if an error occurs. .Pp The library can also be configured programmatically by calls to -.Fn rad_add_server . +.Fn rad_add_server +or +.Fn rad_add_server_ex . +.Fn rad_add_server +is a backward compatible function, implemented via +.Fn rad_add_server_ex . The .Fa host parameter specifies the server host, either as a fully qualified @@ -188,11 +195,20 @@ The maximum number of repeated requests to make before giving up is passed into the .Fa max_tries parameter. +Time interval in seconds when the server will not be requested +if it is marked as dead (did not answer on the last try) set with +.Fa dead_time +parameter. +.Fa bindto +parameter is an IP address on the multihomed host that is used as +a source address for all requests. .Fn rad_add_server returns 0 on success, or \-1 if an error occurs. .Pp .Fn rad_add_server -may be called multiple times, and it may be used together with +or +.Fn rad_add_server_ex +may be called multiple times, and they may be used together with .Fn rad_config . At most 10 servers may be specified. When multiple servers are given, they are tried in round-robin |