]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoNot needed, already NULL
Arran Cudbard-Bell [Wed, 26 Feb 2020 21:21:42 +0000 (16:21 -0500)] 
Not needed, already NULL

6 years agoUse sendmmsg in rlm_radius_udp.c
Arran Cudbard-Bell [Wed, 26 Feb 2020 20:52:37 +0000 (15:52 -0500)] 
Use sendmmsg in rlm_radius_udp.c

6 years agoFail requests which can't be requeued
Arran Cudbard-Bell [Wed, 26 Feb 2020 20:52:21 +0000 (15:52 -0500)] 
Fail requests which can't be requeued

6 years agoadd support for glob. Fixes #1018
Alan T. DeKok [Wed, 26 Feb 2020 19:51:13 +0000 (14:51 -0500)] 
add support for glob.  Fixes #1018

This needs documentation added, too.

6 years agomove FAILED to timeout function
Alan T. DeKok [Wed, 26 Feb 2020 18:18:05 +0000 (13:18 -0500)] 
move FAILED to timeout function

6 years agodoxygen (xlat functions)
Matthew Newton [Wed, 26 Feb 2020 16:12:43 +0000 (16:12 +0000)] 
doxygen (xlat functions)

6 years agomove status checks to using the trunk API
Alan T. DeKok [Wed, 26 Feb 2020 16:21:50 +0000 (11:21 -0500)] 
move status checks to using the trunk API

6 years agoprioritize status checks
Alan T. DeKok [Tue, 25 Feb 2020 14:19:55 +0000 (09:19 -0500)] 
prioritize status checks

in preparation for making them part of the trunk

6 years agoFunction names and param order
Matthew Newton [Wed, 26 Feb 2020 01:48:03 +0000 (01:48 +0000)] 
Function names and param order

6 years agoxlat doxygen
Matthew Newton [Wed, 26 Feb 2020 01:38:55 +0000 (01:38 +0000)] 
xlat doxygen

6 years agoRe-order xlat_builtin functions, whitespace
Matthew Newton [Sun, 23 Feb 2020 23:16:54 +0000 (23:16 +0000)] 
Re-order xlat_builtin functions, whitespace

6 years agoRemove invalid assert
Arran Cudbard-Bell [Tue, 25 Feb 2020 22:25:31 +0000 (17:25 -0500)] 
Remove invalid assert

6 years agoMove closefrom into missing
Arran Cudbard-Bell [Tue, 25 Feb 2020 22:03:31 +0000 (17:03 -0500)] 
Move closefrom into missing

6 years agoAdd crappy userland sendmmsg implementation
Arran Cudbard-Bell [Tue, 25 Feb 2020 22:03:15 +0000 (17:03 -0500)] 
Add crappy userland sendmmsg implementation

6 years agoExplicitly free rctx on cancel
Arran Cudbard-Bell [Tue, 25 Feb 2020 04:39:29 +0000 (23:39 -0500)] 
Explicitly free rctx on cancel

6 years agoRe-order more functions, and explicitly clean up more things
Arran Cudbard-Bell [Tue, 25 Feb 2020 04:34:48 +0000 (23:34 -0500)] 
Re-order more functions, and explicitly clean up more things

6 years agoRe-order functions
Arran Cudbard-Bell [Tue, 25 Feb 2020 03:27:23 +0000 (22:27 -0500)] 
Re-order functions

6 years agoAllow laziness on the part of the API client, and free any treq children
Arran Cudbard-Bell [Tue, 25 Feb 2020 03:27:15 +0000 (22:27 -0500)] 
Allow laziness on the part of the API client, and free any treq children

6 years agoset treq
Arran Cudbard-Bell [Tue, 25 Feb 2020 02:59:18 +0000 (21:59 -0500)] 
set treq

6 years agoAlways populate preq and rctx
Arran Cudbard-Bell [Tue, 25 Feb 2020 02:52:56 +0000 (21:52 -0500)] 
Always populate preq and rctx

6 years agoMore asserts
Arran Cudbard-Bell [Tue, 25 Feb 2020 02:41:34 +0000 (21:41 -0500)] 
More asserts

6 years agoReturn the treq to the free list
Arran Cudbard-Bell [Tue, 25 Feb 2020 02:37:06 +0000 (21:37 -0500)] 
Return the treq to the free list

6 years agoSimplify populating treq_out
Arran Cudbard-Bell [Tue, 25 Feb 2020 02:30:11 +0000 (21:30 -0500)] 
Simplify populating treq_out

6 years agoHandle isn't available if the connection failed from the init state
Arran Cudbard-Bell [Tue, 25 Feb 2020 01:52:42 +0000 (20:52 -0500)] 
Handle isn't available if the connection failed from the init state

6 years agoAssert that the treq is a member of a trunk
Arran Cudbard-Bell [Tue, 25 Feb 2020 00:17:01 +0000 (19:17 -0500)] 
Assert that the treq is a member of a trunk

6 years agoAlways delete the request timeout
Arran Cudbard-Bell [Mon, 24 Feb 2020 23:40:52 +0000 (18:40 -0500)] 
Always delete the request timeout

6 years agoMore agressive defaults
Arran Cudbard-Bell [Mon, 24 Feb 2020 23:34:43 +0000 (18:34 -0500)] 
More agressive defaults

6 years agoCleanup failed requests...
Arran Cudbard-Bell [Mon, 24 Feb 2020 23:22:55 +0000 (18:22 -0500)] 
Cleanup failed requests...

6 years agoFix whitespace issues
Arran Cudbard-Bell [Mon, 24 Feb 2020 23:00:44 +0000 (18:00 -0500)] 
Fix whitespace issues

6 years agoNot an assert, a useful hint...
Arran Cudbard-Bell [Mon, 24 Feb 2020 22:59:06 +0000 (17:59 -0500)] 
Not an assert, a useful hint...

6 years agoFix assert
Arran Cudbard-Bell [Mon, 24 Feb 2020 22:56:22 +0000 (17:56 -0500)] 
Fix assert

6 years agoOnly apply last_above_target delay if we have at least one active connection
Arran Cudbard-Bell [Mon, 24 Feb 2020 22:56:13 +0000 (17:56 -0500)] 
Only apply last_above_target delay if we have at least one active connection

6 years agoRecord reconnections (not due to expiry) as failures too
Arran Cudbard-Bell [Mon, 24 Feb 2020 22:55:20 +0000 (17:55 -0500)] 
Record reconnections (not due to expiry) as failures too

6 years agoquotes around names...
Arran Cudbard-Bell [Mon, 24 Feb 2020 22:17:40 +0000 (17:17 -0500)] 
quotes around names...

6 years agoOnly start the response timer if we manage to write out a packet
Arran Cudbard-Bell [Mon, 24 Feb 2020 22:11:24 +0000 (17:11 -0500)] 
Only start the response timer if we manage to write out a packet

6 years agoAgressively reconnect connections on write errors
Arran Cudbard-Bell [Mon, 24 Feb 2020 22:02:43 +0000 (17:02 -0500)] 
Agressively reconnect connections on write errors

6 years agoRemove icky O(n) udata hack
Arran Cudbard-Bell [Mon, 24 Feb 2020 21:39:50 +0000 (16:39 -0500)] 
Remove icky O(n) udata hack

6 years agoUse 'noop' callback for unset function pointers. Fixes SEGV when filters are swapped...
Arran Cudbard-Bell [Mon, 24 Feb 2020 21:36:40 +0000 (16:36 -0500)] 
Use 'noop' callback for unset function pointers.  Fixes SEGV when filters are swapped out between corral and service.

6 years agoMinor cleanup in event.c
Arran Cudbard-Bell [Mon, 24 Feb 2020 21:01:57 +0000 (16:01 -0500)] 
Minor cleanup in event.c

6 years agoclean up status checks
Alan T. DeKok [Mon, 24 Feb 2020 21:31:46 +0000 (16:31 -0500)] 
clean up status checks

6 years agoset 'verify=lib' in test dictionary for RADIUS
Alan T. DeKok [Mon, 24 Feb 2020 21:10:00 +0000 (16:10 -0500)] 
set 'verify=lib' in test dictionary for RADIUS

and change check order for loading protocol libraries.
Try to load them, even if they're not required.  And error out
only if they fail to load AND they're required.

This change makes it a bit more forgiving.

6 years agofree module_name on error
Alan T. DeKok [Mon, 24 Feb 2020 21:09:36 +0000 (16:09 -0500)] 
free module_name on error

6 years agoreplicate now takes a different path
Alan T. DeKok [Mon, 24 Feb 2020 15:54:53 +0000 (10:54 -0500)] 
replicate now takes a different path

6 years agoAlways set te->tt
Arran Cudbard-Bell [Mon, 24 Feb 2020 19:25:59 +0000 (14:25 -0500)] 
Always set te->tt

6 years agoNot reading from the socket is an error...
Arran Cudbard-Bell [Mon, 24 Feb 2020 19:25:45 +0000 (14:25 -0500)] 
Not reading from the socket is an error...

6 years agoFix time travel assert
Arran Cudbard-Bell [Mon, 24 Feb 2020 19:25:33 +0000 (14:25 -0500)] 
Fix time travel assert

6 years agomake the input file optional in the load generation module
Arran Cudbard-Bell [Mon, 24 Feb 2020 19:15:24 +0000 (14:15 -0500)] 
make the input file optional in the load generation module

6 years agoPrint better error when we can't find the dictionary validation libraries
Arran Cudbard-Bell [Mon, 24 Feb 2020 19:03:34 +0000 (14:03 -0500)] 
Print better error when we can't find the dictionary validation libraries

6 years agoReduce possibility of screwups
Arran Cudbard-Bell [Mon, 24 Feb 2020 18:49:09 +0000 (13:49 -0500)] 
Reduce possibility of screwups

6 years agoset h->c by rearranging structs and members
Alan T. DeKok [Mon, 24 Feb 2020 15:42:46 +0000 (10:42 -0500)] 
set h->c by rearranging structs and members

6 years agoSignal as sent first in replicate mode
Arran Cudbard-Bell [Mon, 24 Feb 2020 15:33:34 +0000 (10:33 -0500)] 
Signal as sent first in replicate mode

6 years agopass udp_thread_t instead of other ctx
Alan T. DeKok [Mon, 24 Feb 2020 15:21:14 +0000 (10:21 -0500)] 
pass udp_thread_t instead of other ctx

6 years agoset recv_buff = 0 for replication
Alan T. DeKok [Mon, 24 Feb 2020 14:14:46 +0000 (09:14 -0500)] 
set recv_buff = 0 for replication

6 years agofix retransmission logic
Alan T. DeKok [Mon, 24 Feb 2020 14:11:11 +0000 (09:11 -0500)] 
fix retransmission logic

6 years agoremove unnecessary intermediate variables
Alan T. DeKok [Mon, 24 Feb 2020 13:55:02 +0000 (08:55 -0500)] 
remove unnecessary intermediate variables

6 years agodefine RADIUS_AUTH_VECTOR_OFFSET
Alan T. DeKok [Mon, 24 Feb 2020 13:54:39 +0000 (08:54 -0500)] 
define RADIUS_AUTH_VECTOR_OFFSET

6 years agodrain the socket when we don't care about replies
Alan T. DeKok [Mon, 24 Feb 2020 13:44:05 +0000 (08:44 -0500)] 
drain the socket when we don't care about replies

6 years agoif we're replicating, still read packets, but don't write them
Alan T. DeKok [Mon, 24 Feb 2020 12:47:51 +0000 (07:47 -0500)] 
if we're replicating, still read packets, but don't write them

6 years agostatus checks don't need to be Status-Server
Alan T. DeKok [Mon, 24 Feb 2020 12:45:10 +0000 (07:45 -0500)] 
status checks don't need to be Status-Server

6 years agodon't print out signed numbers for hex data
Alan T. DeKok [Sun, 23 Feb 2020 13:57:01 +0000 (14:57 +0100)] 
don't print out signed numbers for hex data

6 years agoDo significantly less work on replicate
Arran Cudbard-Bell [Mon, 24 Feb 2020 03:26:23 +0000 (22:26 -0500)] 
Do significantly less work on replicate

6 years agoMove things not to do with encoding out of encode
Arran Cudbard-Bell [Mon, 24 Feb 2020 02:41:57 +0000 (21:41 -0500)] 
Move things not to do with encoding out of encode

6 years agoFewer magic numbers
Arran Cudbard-Bell [Mon, 24 Feb 2020 02:11:27 +0000 (21:11 -0500)] 
Fewer magic numbers

6 years agoAlways use per-packet send buffers
Arran Cudbard-Bell [Mon, 24 Feb 2020 00:06:24 +0000 (19:06 -0500)] 
Always use per-packet send buffers

Sacrifice memory for ability to call sendmmsg and friends

6 years agoUse saner names for radius tracking tree and structures
Arran Cudbard-Bell [Sun, 23 Feb 2020 23:13:15 +0000 (18:13 -0500)] 
Use saner names for radius tracking tree and structures

6 years agos/request_io_ctx/rctx/
Arran Cudbard-Bell [Sun, 23 Feb 2020 22:54:52 +0000 (17:54 -0500)] 
s/request_io_ctx/rctx/

6 years agoLess ambiguous name
Arran Cudbard-Bell [Sun, 23 Feb 2020 22:47:53 +0000 (17:47 -0500)] 
Less ambiguous name

6 years agoSwitch to single letter for result struct
Arran Cudbard-Bell [Sun, 23 Feb 2020 22:42:29 +0000 (17:42 -0500)] 
Switch to single letter for result struct

6 years agoHave the submodule allocate the rctx
Arran Cudbard-Bell [Sun, 23 Feb 2020 22:20:45 +0000 (17:20 -0500)] 
Have the submodule allocate the rctx

6 years agoPass "cancel" signal through to submodule
Arran Cudbard-Bell [Sun, 23 Feb 2020 22:20:14 +0000 (17:20 -0500)] 
Pass "cancel" signal through to submodule

Remove duplicate check for synchronous behaviour

6 years agoUse the standard signal function signature instead of creating a new one with a sligh...
Arran Cudbard-Bell [Sun, 23 Feb 2020 22:18:29 +0000 (17:18 -0500)] 
Use the standard signal function signature instead of creating a new one with a slightly different argument order

6 years agoReally need a common API for this...
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:25:38 +0000 (16:25 -0500)] 
Really need a common API for this...

6 years agoDon't do extra work when the module API does it for us...
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:24:24 +0000 (16:24 -0500)] 
Don't do extra work when the module API does it for us...

6 years agorlm_radius doesn't need to cache el, it has no timers or I/O events
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:22:45 +0000 (16:22 -0500)] 
rlm_radius doesn't need to cache el, it has no timers or I/O events

6 years agoUnused
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:20:52 +0000 (16:20 -0500)] 
Unused

6 years agoArrange in order of use
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:19:55 +0000 (16:19 -0500)] 
Arrange in order of use

6 years agoTrunk writes out errors directly...
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:19:44 +0000 (16:19 -0500)] 
Trunk writes out errors directly...

6 years agoSimplify field names
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:12:55 +0000 (16:12 -0500)] 
Simplify field names

Reorder struct definitions in order of use (first last)

6 years agoAssume the submodule emmits an error
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:02:04 +0000 (16:02 -0500)] 
Assume the submodule emmits an error

6 years agoUse standard module method fields
Arran Cudbard-Bell [Sun, 23 Feb 2020 21:01:18 +0000 (16:01 -0500)] 
Use standard module method fields

6 years agoFix function order in rlm_radius
Arran Cudbard-Bell [Sun, 23 Feb 2020 20:51:43 +0000 (15:51 -0500)] 
Fix function order in rlm_radius

Fix struct names in rlm_radius

6 years agoQualify struct names
Arran Cudbard-Bell [Sun, 23 Feb 2020 20:14:15 +0000 (15:14 -0500)] 
Qualify struct names

6 years agoremove "case_sensitive". The code was removed a while ago
Alan T. DeKok [Sun, 23 Feb 2020 13:00:00 +0000 (14:00 +0100)] 
remove "case_sensitive".  The code was removed a while ago

6 years agoa couple more
Matthew Newton [Fri, 21 Feb 2020 21:09:16 +0000 (21:09 +0000)] 
a couple more

6 years agokeep clang happy
Matthew Newton [Fri, 21 Feb 2020 20:06:17 +0000 (20:06 +0000)] 
keep clang happy

6 years agorlm_json: additional jsonquote tests
Matthew Newton [Wed, 29 Jan 2020 16:44:03 +0000 (16:44 +0000)] 
rlm_json: additional jsonquote tests

6 years agorlm_json: convert jsonquote xlat to async
Matthew Newton [Wed, 29 Jan 2020 16:43:33 +0000 (16:43 +0000)] 
rlm_json: convert jsonquote xlat to async

6 years agorlm_json: update raddb and add json_encode documentation
Matthew Newton [Mon, 27 Jan 2020 17:22:37 +0000 (17:22 +0000)] 
rlm_json: update raddb and add json_encode documentation

6 years agorlm_json: json_encode xlat module tests
Matthew Newton [Tue, 28 Jan 2020 01:12:54 +0000 (01:12 +0000)] 
rlm_json: json_encode xlat module tests

6 years agorlm_json: add json_encode xlat; converts attributes to JSON document
Matthew Newton [Thu, 16 Jan 2020 17:34:37 +0000 (17:34 +0000)] 
rlm_json: add json_encode xlat; converts attributes to JSON document

6 years agolib/json: CONF_PARSER definition for json_format
Matthew Newton [Mon, 17 Feb 2020 00:03:29 +0000 (00:03 +0000)] 
lib/json: CONF_PARSER definition for json_format

6 years agolib/json: verify json format struct
Matthew Newton [Sun, 16 Feb 2020 23:56:47 +0000 (23:56 +0000)] 
lib/json: verify json format struct

6 years agolib/json: ability to generate several different JSON formats
Matthew Newton [Mon, 17 Feb 2020 00:16:52 +0000 (00:16 +0000)] 
lib/json: ability to generate several different JSON formats

6 years agoadd fr_bskip_whitespace macro
Matthew Newton [Tue, 21 Jan 2020 21:10:34 +0000 (21:10 +0000)] 
add fr_bskip_whitespace macro

6 years agoRemove thread pointer from udp_connection_t
Arran Cudbard-Bell [Fri, 21 Feb 2020 12:43:19 +0000 (13:43 +0100)] 
Remove thread pointer from udp_connection_t

6 years agoUse passed in tconn
Arran Cudbard-Bell [Fri, 21 Feb 2020 10:11:55 +0000 (11:11 +0100)] 
Use passed in tconn

6 years agoAdd state check function for connections
Arran Cudbard-Bell [Fri, 21 Feb 2020 09:50:02 +0000 (10:50 +0100)] 
Add state check function for connections

6 years agoDon't allow fr_trunk_connection_requests_requeue to run on draining or draining_to_free
Arran Cudbard-Bell [Fri, 21 Feb 2020 09:40:25 +0000 (10:40 +0100)] 
Don't allow fr_trunk_connection_requests_requeue to run on draining or draining_to_free

6 years agoDon't assume anything about the tconn state
Arran Cudbard-Bell [Fri, 21 Feb 2020 09:32:06 +0000 (10:32 +0100)] 
Don't assume anything about the tconn state

Kicks the can down the road for callers on trunk_connection_requests_requeue, but oh well

6 years agoUse correct enum value
Arran Cudbard-Bell [Thu, 20 Feb 2020 10:38:44 +0000 (11:38 +0100)] 
Use correct enum value