]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
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

6 years agoAdd asserts around connection state
Arran Cudbard-Bell [Thu, 20 Feb 2020 08:16:00 +0000 (09:16 +0100)] 
Add asserts around connection state

6 years agos/trunk/pool - Should use the same config option for both pools and trunks (#3297)
Jorge Pereira [Thu, 20 Feb 2020 07:47:41 +0000 (04:47 -0300)] 
s/trunk/pool  - Should use the same config option for both pools and trunks (#3297)

6 years agos/trunk/pool - Should use the same config option for both pools and trunks
Arran Cudbard-Bell [Wed, 19 Feb 2020 16:58:52 +0000 (17:58 +0100)] 
s/trunk/pool  - Should use the same config option for both pools and trunks

6 years agoSingularise
Arran Cudbard-Bell [Wed, 19 Feb 2020 16:51:14 +0000 (17:51 +0100)] 
Singularise

6 years agoDeal with req_cleanup_delay == 0
Arran Cudbard-Bell [Wed, 19 Feb 2020 16:46:46 +0000 (17:46 +0100)] 
Deal with req_cleanup_delay == 0

6 years agoAllow fr_dlist_entry_in_list to work with "uninitialised" (but zeroed) list headers
Arran Cudbard-Bell [Wed, 19 Feb 2020 16:35:46 +0000 (17:35 +0100)] 
Allow fr_dlist_entry_in_list to work with "uninitialised" (but zeroed) list headers

6 years agoCleanup event code slightly
Arran Cudbard-Bell [Wed, 19 Feb 2020 14:03:38 +0000 (15:03 +0100)] 
Cleanup event code slightly

6 years agoCheck if timer is in pending list
Arran Cudbard-Bell [Wed, 19 Feb 2020 14:03:22 +0000 (15:03 +0100)] 
Check if timer is in pending list

6 years agoEnable corruption/type checking for event.c dlsts
Arran Cudbard-Bell [Wed, 19 Feb 2020 13:42:05 +0000 (14:42 +0100)] 
Enable corruption/type checking for event.c dlsts

6 years agoupdate cursor comments
Matthew Newton [Tue, 18 Feb 2020 17:23:23 +0000 (17:23 +0000)] 
update cursor comments

6 years agoRemove extraneous call to check_for_zombie, have check_for_zombie take tconn instead...
Arran Cudbard-Bell [Sun, 16 Feb 2020 19:01:37 +0000 (13:01 -0600)] 
Remove extraneous call to check_for_zombie, have check_for_zombie take tconn instead of h

6 years agos/udp_rcode_t/udp_result_t/ otherwise we have rcode->rcode everywhere which looks...
Arran Cudbard-Bell [Sun, 16 Feb 2020 18:02:14 +0000 (12:02 -0600)] 
s/udp_rcode_t/udp_result_t/ otherwise we have rcode->rcode everywhere which looks really dumb

6 years agoFix some magic numbers
Arran Cudbard-Bell [Sun, 16 Feb 2020 17:58:50 +0000 (11:58 -0600)] 
Fix some magic numbers

6 years agorevert until we find out why its failing
Alan T. DeKok [Sun, 16 Feb 2020 22:30:16 +0000 (17:30 -0500)] 
revert until we find out why its failing

this change appears to yield loops in pair lists?

6 years agoone last check for is_root
Alan T. DeKok [Sun, 16 Feb 2020 18:57:24 +0000 (13:57 -0500)] 
one last check for is_root

6 years agocheck for is_root here, too
Alan T. DeKok [Sun, 16 Feb 2020 16:10:15 +0000 (11:10 -0500)] 
check for is_root here, too

6 years agouse da->dict, to avoid talloc_parent
Alan T. DeKok [Sun, 16 Feb 2020 14:24:34 +0000 (09:24 -0500)] 
use da->dict, to avoid talloc_parent

6 years agoSlightly more meaningful goto
Arran Cudbard-Bell [Sat, 15 Feb 2020 18:58:03 +0000 (12:58 -0600)] 
Slightly more meaningful goto

Do all state signalling at the same call level

6 years agoAllow bound requests to survive requeue
Arran Cudbard-Bell [Sat, 15 Feb 2020 18:57:15 +0000 (12:57 -0600)] 
Allow bound requests to survive requeue

6 years agoremove unnecessary code
Alan T. DeKok [Sat, 15 Feb 2020 16:56:17 +0000 (11:56 -0500)] 
remove unnecessary code

6 years agojust use dlists...
Alan T. DeKok [Fri, 14 Feb 2020 21:25:33 +0000 (16:25 -0500)] 
just use dlists...

6 years agobe more accepting of corner cases
Alan T. DeKok [Fri, 14 Feb 2020 21:18:26 +0000 (16:18 -0500)] 
be more accepting of corner cases

6 years agoremove from ev_to_add on free, if necessary
Alan T. DeKok [Fri, 14 Feb 2020 21:05:45 +0000 (16:05 -0500)] 
remove from ev_to_add on free, if necessary

6 years agoShuffle function order
Arran Cudbard-Bell [Fri, 14 Feb 2020 18:59:57 +0000 (12:59 -0600)] 
Shuffle function order

6 years agoAdd public function to allow enqueuing on specific connections
Arran Cudbard-Bell [Fri, 14 Feb 2020 18:58:25 +0000 (12:58 -0600)] 
Add public function to allow enqueuing on specific connections

Allow requests to be requeued on an "inactive" connection.

6 years agoMake type name agree with enum values
Arran Cudbard-Bell [Fri, 14 Feb 2020 18:04:21 +0000 (12:04 -0600)] 
Make type name agree with enum values

6 years agoEnums before structs
Arran Cudbard-Bell [Fri, 14 Feb 2020 18:00:37 +0000 (12:00 -0600)] 
Enums before structs

6 years agoUpdate the auto-generated .adoc files
Jorge Pereira [Tue, 11 Feb 2020 02:30:30 +0000 (23:30 -0300)] 
Update the auto-generated .adoc files

6 years agoerrors can be at end of string
Alan T. DeKok [Thu, 13 Feb 2020 15:25:30 +0000 (10:25 -0500)] 
errors can be at end of string

6 years agoremove redunant declaration
Alan T. DeKok [Thu, 13 Feb 2020 15:04:14 +0000 (10:04 -0500)] 
remove redunant declaration

6 years agoset the FD to be readable when we're doing status checks
Alan T. DeKok [Thu, 13 Feb 2020 14:29:39 +0000 (09:29 -0500)] 
set the FD to be readable when we're doing status checks

6 years agostatus server checks should be sent more often
Alan T. DeKok [Thu, 13 Feb 2020 14:28:53 +0000 (09:28 -0500)] 
status server checks should be sent more often

6 years agowe don't need to wrong times
Alan T. DeKok [Wed, 12 Feb 2020 21:27:58 +0000 (16:27 -0500)] 
we don't need to wrong times

we don't need 9 digits of accuracy for max_request_time messages

we don't need to show how "cleanup - now" time.  That's the time
we over-ran max_request_time.  The user doesn't know what that
means.

6 years agodon't free rctx, it will die when the request dies
Alan T. DeKok [Wed, 12 Feb 2020 21:26:25 +0000 (16:26 -0500)] 
don't free rctx, it will die when the request dies

6 years agomore cleanups and corner cases
Alan T. DeKok [Wed, 12 Feb 2020 20:50:23 +0000 (15:50 -0500)] 
more cleanups and corner cases

6 years agofix checks for zombie period
Alan T. DeKok [Wed, 12 Feb 2020 20:05:37 +0000 (15:05 -0500)] 
fix checks for zombie period

there are many possible failure conditions, so we have to check
for them all, and handle them all.

6 years agodon't add multiples of the same attributes
Alan T. DeKok [Wed, 12 Feb 2020 19:56:04 +0000 (14:56 -0500)] 
don't add multiples of the same attributes

6 years agoIgnore leaks in getaddrinfo() at /usr/lib/system/libsystem_info.dylib (#3292)
Jorge Pereira [Wed, 12 Feb 2020 20:11:14 +0000 (17:11 -0300)] 
Ignore leaks in getaddrinfo() at /usr/lib/system/libsystem_info.dylib (#3292)

The leak is happening only on OSX >= Catalina + Clang8.

6 years agoDon't need accessor anymore
Arran Cudbard-Bell [Wed, 12 Feb 2020 15:12:50 +0000 (09:12 -0600)] 
Don't need accessor anymore

6 years agomake enums public, so callers can use them
Alan T. DeKok [Tue, 11 Feb 2020 21:19:40 +0000 (16:19 -0500)] 
make enums public, so callers can use them

6 years agofewer calls to fr_time()
Alan T. DeKok [Sat, 8 Feb 2020 14:07:41 +0000 (09:07 -0500)] 
fewer calls to fr_time()

6 years agocache "last updated" time
Alan T. DeKok [Sat, 8 Feb 2020 14:06:40 +0000 (09:06 -0500)] 
cache "last updated" time

6 years agoBackport dictionary changes from v3.0.x (#3276)
Jorge Pereira [Tue, 11 Feb 2020 01:09:12 +0000 (22:09 -0300)] 
Backport dictionary changes from v3.0.x (#3276)

6 years agoAdd Arista VSA 6-9
Hua Zhong [Thu, 6 Feb 2020 03:21:36 +0000 (19:21 -0800)] 
Add Arista VSA 6-9

6 years agoUpdate dictionary.wimax attributes (#3283)
Jorge Pereira [Fri, 7 Feb 2020 19:21:29 +0000 (16:21 -0300)] 
Update dictionary.wimax attributes (#3283)

It was based on the image "[0105] FIG. 9" in https://patents.google.com/patent/WO2009155120A2/en

Backport from v3.0.x #3282

6 years agodocument revive_interval
Alan T. DeKok [Fri, 7 Feb 2020 17:31:57 +0000 (12:31 -0500)] 
document revive_interval

6 years agoadd revive_interval
Alan T. DeKok [Fri, 7 Feb 2020 17:27:21 +0000 (12:27 -0500)] 
add revive_interval

6 years agoone last one
Alan T. DeKok [Fri, 7 Feb 2020 16:06:33 +0000 (11:06 -0500)] 
one last one

6 years agoFix WiMAX-MSK attribute
Jorge Pereira [Thu, 6 Feb 2020 23:50:36 +0000 (20:50 -0300)] 
Fix WiMAX-MSK attribute

6 years agosometimes the scanner is smart, too!
Alan T. DeKok [Fri, 7 Feb 2020 15:35:26 +0000 (10:35 -0500)] 
sometimes the scanner is smart, too!

6 years agocleanups and try to shut up scanner
Alan T. DeKok [Fri, 7 Feb 2020 15:15:07 +0000 (10:15 -0500)] 
cleanups and try to shut up scanner

6 years agomake status checks work
Alan T. DeKok [Fri, 7 Feb 2020 14:54:22 +0000 (09:54 -0500)] 
make status checks work

6 years agoabstract ID clearing for simplicity
Alan T. DeKok [Thu, 6 Feb 2020 20:12:48 +0000 (15:12 -0500)] 
abstract ID clearing for simplicity

6 years agobe better about zombies
Alan T. DeKok [Thu, 6 Feb 2020 14:44:03 +0000 (09:44 -0500)] 
be better about zombies

6 years agouse treq->rctx
Alan T. DeKok [Thu, 6 Feb 2020 14:19:04 +0000 (09:19 -0500)] 
use treq->rctx

6 years agocrash less often at exit
Alan T. DeKok [Thu, 6 Feb 2020 14:14:36 +0000 (09:14 -0500)] 
crash less often at exit

6 years agocheck for min before check for no requests
Alan T. DeKok [Thu, 6 Feb 2020 14:06:00 +0000 (09:06 -0500)] 
check for min before check for no requests

6 years agocleanups so it doesn't crash.
Alan T. DeKok [Thu, 6 Feb 2020 13:35:42 +0000 (08:35 -0500)] 
cleanups so it doesn't crash.

move "rcode" to udp_rctx_t
point to rctx from preq, otherwise it's impossible to update
rcode

6 years agojust use STRINGIFY, and revert previous changes
Alan T. DeKok [Wed, 5 Feb 2020 14:49:37 +0000 (09:49 -0500)] 
just use STRINGIFY, and revert previous changes

6 years agomore checks for zombie connections
Alan T. DeKok [Wed, 5 Feb 2020 14:08:15 +0000 (09:08 -0500)] 
more checks for zombie connections