]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agochannel test code
Alan T. DeKok [Sat, 3 Dec 2016 16:58:44 +0000 (11:58 -0500)] 
channel test code

9 years agoadd more KQ functions.
Alan T. DeKok [Sat, 3 Dec 2016 16:58:23 +0000 (11:58 -0500)] 
add more KQ functions.

9 years agoallow ack for channel close
Alan T. DeKok [Fri, 2 Dec 2016 21:10:51 +0000 (16:10 -0500)] 
allow ack for channel close

9 years agoremove deprecated config items
Alan T. DeKok [Fri, 2 Dec 2016 16:54:07 +0000 (11:54 -0500)] 
remove deprecated config items

9 years agodon't use deprecated function.
Alan T. DeKok [Wed, 30 Nov 2016 20:10:36 +0000 (15:10 -0500)] 
don't use deprecated function.

9 years agoRename unlang.c and modcall.c to unlang_interpret.c and unlang_compile.c
Arran Cudbard-Bell [Sat, 3 Dec 2016 01:50:55 +0000 (20:50 -0500)] 
Rename unlang.c and modcall.c to unlang_interpret.c and unlang_compile.c

9 years agoMore clang scan warnings
Arran Cudbard-Bell [Thu, 1 Dec 2016 14:51:28 +0000 (09:51 -0500)] 
More clang scan warnings

9 years agoconstify pool_inst
Arran Cudbard-Bell [Thu, 1 Dec 2016 02:58:28 +0000 (21:58 -0500)] 
constify pool_inst

9 years agoCache pool_inst so if binding/reconnecting fails we still have access to it
Arran Cudbard-Bell [Thu, 1 Dec 2016 02:42:26 +0000 (21:42 -0500)] 
Cache pool_inst so if binding/reconnecting fails we still have access to it

9 years agoSwitch cf_data_* to using C data types qualified by names
Arran Cudbard-Bell [Thu, 1 Dec 2016 02:07:39 +0000 (21:07 -0500)] 
Switch cf_data_* to using C data types qualified by names

9 years agos/config_server/server_str/
Arran Cudbard-Bell [Wed, 30 Nov 2016 21:02:53 +0000 (16:02 -0500)] 
s/config_server/server_str/

9 years agodoxygen
Alan T. DeKok [Wed, 30 Nov 2016 13:55:01 +0000 (08:55 -0500)] 
doxygen

9 years agoswitch with no match and no default
Alan T. DeKok [Wed, 30 Nov 2016 13:30:38 +0000 (08:30 -0500)] 
switch with no match and no default

9 years agosession_tracking is in pool_inst
Arran Cudbard-Bell [Tue, 29 Nov 2016 22:16:43 +0000 (17:16 -0500)] 
session_tracking is in pool_inst

9 years agoSplit configurations in rlm_ldap into instance and pool specific
Arran Cudbard-Bell [Tue, 29 Nov 2016 22:04:48 +0000 (17:04 -0500)] 
Split configurations in rlm_ldap into instance and pool specific

9 years agoUse conn instance
Arran Cudbard-Bell [Tue, 29 Nov 2016 16:12:41 +0000 (11:12 -0500)] 
Use conn instance

9 years agoCast to int
Arran Cudbard-Bell [Tue, 29 Nov 2016 12:29:15 +0000 (07:29 -0500)] 
Cast to int

9 years agoOutput seconds until we retry
Arran Cudbard-Bell [Tue, 29 Nov 2016 11:14:13 +0000 (06:14 -0500)] 
Output seconds until we retry

9 years agoIf there's no acquire method, don't check for non-null handle
Arran Cudbard-Bell [Tue, 29 Nov 2016 10:52:55 +0000 (05:52 -0500)] 
If there's no acquire method, don't check for non-null handle

9 years agoadded receiver code
Alan T. DeKok [Mon, 28 Nov 2016 21:54:30 +0000 (16:54 -0500)] 
added receiver code

Basic infrastructure for now.  More later.

9 years agodoxygen
Alan T. DeKok [Mon, 28 Nov 2016 20:57:22 +0000 (15:57 -0500)] 
doxygen

9 years ago'read' and 'write' are NOT variable names
Alan T. DeKok [Mon, 28 Nov 2016 20:39:11 +0000 (15:39 -0500)] 
'read' and 'write' are NOT variable names

They are functions which are defined in Posix.

9 years agoAdded transports to the create method.
Alan T. DeKok [Mon, 28 Nov 2016 20:32:48 +0000 (15:32 -0500)] 
Added transports to the create method.

We may add dynamic transports later.  For now, they are statically
allocated when the application starts.

9 years agoWork around bug in macOS Sierra's kevent, where it won't let us add/delete filters...
Arran Cudbard-Bell [Mon, 28 Nov 2016 20:28:03 +0000 (15:28 -0500)] 
Work around bug in macOS Sierra's kevent, where it won't let us add/delete filters for the same fd in the same call

9 years agoFix comment
Arran Cudbard-Bell [Mon, 28 Nov 2016 20:01:44 +0000 (15:01 -0500)] 
Fix comment

9 years agos/instance/inst
Arran Cudbard-Bell [Mon, 28 Nov 2016 20:01:35 +0000 (15:01 -0500)] 
s/instance/inst

9 years agoEmit a FR_PROTO_HEX_DUMP message about trailing junk
Arran Cudbard-Bell [Mon, 28 Nov 2016 20:01:25 +0000 (15:01 -0500)] 
Emit a FR_PROTO_HEX_DUMP message about trailing junk

9 years agoremove unused variable
Alan T. DeKok [Mon, 28 Nov 2016 19:53:41 +0000 (14:53 -0500)] 
remove unused variable

9 years agouse separate signals for receiver / worker
Alan T. DeKok [Mon, 28 Nov 2016 18:07:11 +0000 (13:07 -0500)] 
use separate signals for receiver / worker

9 years agotrack channel active / closing
Alan T. DeKok [Mon, 28 Nov 2016 18:00:25 +0000 (13:00 -0500)] 
track channel active / closing

9 years agomake event.h a little more stand-alone
Alan T. DeKok [Mon, 28 Nov 2016 16:38:42 +0000 (11:38 -0500)] 
make event.h a little more stand-alone

9 years agopriority is for both requests and replies
Alan T. DeKok [Mon, 28 Nov 2016 16:07:45 +0000 (11:07 -0500)] 
priority is for both requests and replies

9 years agoexpose "get worker kq" function
Alan T. DeKok [Mon, 28 Nov 2016 15:50:54 +0000 (10:50 -0500)] 
expose "get worker kq" function

9 years agodon't print warnings. just ignore it
Alan T. DeKok [Mon, 28 Nov 2016 15:19:22 +0000 (10:19 -0500)] 
don't print warnings.  just ignore it

9 years agoGarbage after the packet is a warning, not an error
Alan T. DeKok [Mon, 28 Nov 2016 14:29:14 +0000 (09:29 -0500)] 
Garbage after the packet is a warning, not an error

9 years agoadd assertion
Alan T. DeKok [Sun, 27 Nov 2016 14:11:30 +0000 (09:11 -0500)] 
add assertion

9 years agoFix copy/paste error in fr_pair_cmp_by_parent_num_tag
Arran Cudbard-Bell [Mon, 28 Nov 2016 14:22:53 +0000 (09:22 -0500)] 
Fix copy/paste error in fr_pair_cmp_by_parent_num_tag

9 years ago...and change some CURLM_OK to CURLE_OK
Arran Cudbard-Bell [Mon, 28 Nov 2016 01:26:55 +0000 (20:26 -0500)] 
...and change some CURLM_OK to CURLE_OK

9 years agoUse correct enum value
Arran Cudbard-Bell [Sun, 27 Nov 2016 22:39:36 +0000 (17:39 -0500)] 
Use correct enum value

9 years agoIfdef out all the xlat code
Arran Cudbard-Bell [Sun, 27 Nov 2016 22:02:35 +0000 (17:02 -0500)] 
Ifdef out all the xlat code

9 years agoRemove UNUSED markup from used variables in rlm_rest
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:48:21 +0000 (16:48 -0500)] 
Remove UNUSED markup from used variables in rlm_rest

9 years agoFix missing variable
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:48:01 +0000 (16:48 -0500)] 
Fix missing variable

9 years agofr_event_fd_insert should return an int like every other function in that api
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:47:48 +0000 (16:47 -0500)] 
fr_event_fd_insert should return an int like every other function in that api

9 years agoTravis fixes
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:17:25 +0000 (16:17 -0500)] 
Travis fixes

9 years agoMake rlm_rest async... at the cost of breaking its xlats
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:04:27 +0000 (16:04 -0500)] 
Make rlm_rest async... at the cost of breaking its xlats

...and not having it work for normal requests anymore.

Todo:
- Move xlat interpretation to the unlang stack
- Rework the connection pool API into a dual layer pool system (global and thread local).

9 years agoFix thread local destructors
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:01:25 +0000 (16:01 -0500)] 
Fix thread local destructors

_Thread_local void *foo;

set_pthread_destructor(&foo);

Doesn't work. Pointers to _Thread_local storage seem to become invalidated when threads exit.

Instead we need to store the value of the local storage... Which involves moving some macros around, but isn't a huge issue.

9 years agoPrevent I/O handlers from deleting the events which called them
Arran Cudbard-Bell [Sun, 27 Nov 2016 18:06:59 +0000 (13:06 -0500)] 
Prevent I/O handlers from deleting the events which called them

until after they've completed...

9 years agoFix error handling and filter overwriting in event.c
Arran Cudbard-Bell [Sun, 27 Nov 2016 16:22:23 +0000 (11:22 -0500)] 
Fix error handling and filter overwriting in event.c

9 years agoFormatting
Arran Cudbard-Bell [Sun, 27 Nov 2016 16:02:40 +0000 (11:02 -0500)] 
Formatting

9 years agoFormatting
Arran Cudbard-Bell [Sun, 27 Nov 2016 16:01:10 +0000 (11:01 -0500)] 
Formatting

9 years agoMerge pull request #1862 from herwinw/pool_radlog_nullpointer
Arran Cudbard-Bell [Sun, 27 Nov 2016 15:28:08 +0000 (10:28 -0500)] 
Merge pull request #1862 from herwinw/pool_radlog_nullpointer

Use workaround for error logging in connection.c (2)

9 years agoUse workaround for error logging in connection.c (2) 1862/head
Herwin Weststrate [Sun, 27 Nov 2016 14:46:46 +0000 (15:46 +0100)] 
Use workaround for error logging in connection.c (2)

The previous workaround was not enough.

9 years agoMerge pull request #1861 from herwinw/sd_watchdog_event
Arran Cudbard-Bell [Sun, 27 Nov 2016 14:26:09 +0000 (09:26 -0500)] 
Merge pull request #1861 from herwinw/sd_watchdog_event

Fix build issues with sd_watchdog_event

9 years agoUse workaround for error logging in connection.c 1861/head
Herwin Weststrate [Sun, 27 Nov 2016 14:17:24 +0000 (15:17 +0100)] 
Use workaround for error logging in connection.c

We have defined a LOG_PREFIX_ARGS that will cause a null pointer
dereference in this specific scenario.

9 years agoFix build issues with sd_watchdog_event
Herwin Weststrate [Sun, 27 Nov 2016 13:57:26 +0000 (14:57 +0100)] 
Fix build issues with sd_watchdog_event

Probably not the best fix around, but at least it fixes the build
process

9 years agoFix busylooping thread_handler
Arran Cudbard-Bell [Sun, 27 Nov 2016 03:48:30 +0000 (22:48 -0500)] 
Fix busylooping thread_handler

9 years agoQuiet clang scan
Arran Cudbard-Bell [Sun, 27 Nov 2016 01:30:39 +0000 (20:30 -0500)] 
Quiet clang scan

9 years agoDoxygen
Arran Cudbard-Bell [Sun, 27 Nov 2016 00:13:56 +0000 (19:13 -0500)] 
Doxygen

9 years agoCall module_thread_instance_find with the module_instance not the instance data
Arran Cudbard-Bell [Sun, 27 Nov 2016 00:12:01 +0000 (19:12 -0500)] 
Call module_thread_instance_find with the module_instance not the instance data

9 years agoSet thread instance data name correctly
Arran Cudbard-Bell [Sun, 27 Nov 2016 00:11:13 +0000 (19:11 -0500)] 
Set thread instance data name correctly

9 years agoAdd more error messages to fr_connect_pool_init
Arran Cudbard-Bell [Sun, 27 Nov 2016 00:10:53 +0000 (19:10 -0500)] 
Add more error messages to fr_connect_pool_init

9 years agoAdd thread argument to unlang continuation functions
Arran Cudbard-Bell [Sat, 26 Nov 2016 22:20:01 +0000 (17:20 -0500)] 
Add thread argument to unlang continuation functions

9 years agoFormatting
Arran Cudbard-Bell [Sat, 26 Nov 2016 22:19:41 +0000 (17:19 -0500)] 
Formatting

9 years agoConstify cs in fr_connection_pool_init
Arran Cudbard-Bell [Sat, 26 Nov 2016 20:25:58 +0000 (15:25 -0500)] 
Constify cs in fr_connection_pool_init

Even though it isn't... ugh

9 years agoConstify cf_reference_item
Arran Cudbard-Bell [Sat, 26 Nov 2016 20:25:21 +0000 (15:25 -0500)] 
Constify cf_reference_item

9 years agoConstify trigger arguments
Arran Cudbard-Bell [Sat, 26 Nov 2016 20:24:51 +0000 (15:24 -0500)] 
Constify trigger arguments

9 years agoPass const'd config section into thread_instantiate functions
Arran Cudbard-Bell [Sat, 26 Nov 2016 20:26:41 +0000 (15:26 -0500)] 
Pass const'd config section into thread_instantiate functions

9 years agoPass the event list to the thread instantiate function
Arran Cudbard-Bell [Sat, 26 Nov 2016 16:59:25 +0000 (11:59 -0500)] 
Pass the event list to the thread instantiate function

9 years agoDocument fifo functions
Arran Cudbard-Bell [Sat, 26 Nov 2016 15:28:52 +0000 (10:28 -0500)] 
Document fifo functions

and move freeing to a talloc destructor

9 years agocheck value of "done"
Alan T. DeKok [Sat, 26 Nov 2016 22:01:27 +0000 (17:01 -0500)] 
check value of "done"

9 years agotravis fixes
Alan T. DeKok [Sat, 26 Nov 2016 21:46:15 +0000 (16:46 -0500)] 
travis fixes

9 years agoremove "inst" from timeout / FD add
Alan T. DeKok [Sat, 26 Nov 2016 21:44:38 +0000 (16:44 -0500)] 
remove "inst" from timeout / FD add

because the module instance is already on the stack

9 years agoensure that FD/timer add is only called from modules
Alan T. DeKok [Sat, 26 Nov 2016 21:35:14 +0000 (16:35 -0500)] 
ensure that FD/timer add is only called from modules

9 years agoadd preliminary scheduler
Alan T. DeKok [Sat, 26 Nov 2016 21:23:58 +0000 (16:23 -0500)] 
add preliminary scheduler

9 years agocheck for event loop exiting on fd/timer add event
Alan T. DeKok [Sat, 26 Nov 2016 21:18:30 +0000 (16:18 -0500)] 
check for event loop exiting on fd/timer add event

9 years agonotes on single-threaded mode
Alan T. DeKok [Sat, 26 Nov 2016 18:09:32 +0000 (13:09 -0500)] 
notes on single-threaded mode

9 years agoadded fr_worker_exit()
Alan T. DeKok [Sat, 26 Nov 2016 15:03:40 +0000 (10:03 -0500)] 
added fr_worker_exit()

which is an sync notification to the worker that it should exit

9 years agoFix camel case
Arran Cudbard-Bell [Sat, 26 Nov 2016 14:53:17 +0000 (09:53 -0500)] 
Fix camel case

9 years agoUpdate copyright on rest code
Arran Cudbard-Bell [Sat, 26 Nov 2016 02:52:20 +0000 (21:52 -0500)] 
Update copyright on rest code

9 years agoFix arguments to timer callback
Arran Cudbard-Bell [Sat, 26 Nov 2016 02:51:39 +0000 (21:51 -0500)] 
Fix arguments to timer callback

9 years agoFix argument order
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:55:57 +0000 (20:55 -0500)] 
Fix argument order

9 years agoreorder arguments to timer callbacks
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:15:09 +0000 (20:15 -0500)] 
reorder arguments to timer callbacks

9 years agoBetter errors checks in event.c
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:14:12 +0000 (20:14 -0500)] 
Better errors checks in event.c

9 years agoAdd fr_timeval_from_ms function
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:13:28 +0000 (20:13 -0500)] 
Add fr_timeval_from_ms function

9 years agoFix el shadowing
Arran Cudbard-Bell [Sat, 26 Nov 2016 00:34:09 +0000 (19:34 -0500)] 
Fix el shadowing

9 years agoExpose the worker's event list
Arran Cudbard-Bell [Fri, 25 Nov 2016 23:58:39 +0000 (18:58 -0500)] 
Expose the worker's event list

9 years agoUse doxygen headers for src/util files
Arran Cudbard-Bell [Fri, 25 Nov 2016 22:40:25 +0000 (17:40 -0500)] 
Use doxygen headers for src/util files

Add a copyright attribution for Alister Winfield to src/util/atomic_queue.c
as he wrote the original implementation of the atomic_queue algorithm that
was adapted for use with FreeRADIUS.

9 years agoAdd tests for exec
Arran Cudbard-Bell [Fri, 25 Nov 2016 22:35:38 +0000 (17:35 -0500)] 
Add tests for exec

9 years agoEscape output from exec calls, so it's understandable
Arran Cudbard-Bell [Fri, 25 Nov 2016 22:06:49 +0000 (17:06 -0500)] 
Escape output from exec calls, so it's understandable

9 years agoCleanup some variable names and add %pS to fr_vasprintf
Arran Cudbard-Bell [Fri, 25 Nov 2016 22:06:27 +0000 (17:06 -0500)] 
Cleanup some variable names and add %pS to fr_vasprintf

%pS prints a string with '"', and special character escaping... ahhh so lazy...

9 years agoadded "get kq" function
Alan T. DeKok [Fri, 25 Nov 2016 19:49:00 +0000 (14:49 -0500)] 
added "get kq" function

9 years agostupid linker issues
Alan T. DeKok [Fri, 25 Nov 2016 14:45:56 +0000 (09:45 -0500)] 
stupid linker issues

9 years agoRevert "Temporarily ifdef out fr_worker_destroy"
Alan T. DeKok [Fri, 25 Nov 2016 14:00:05 +0000 (09:00 -0500)] 
Revert "Temporarily ifdef out fr_worker_destroy"

This reverts commit c7bd5d7f943ea93c16394e9b2e0e2dd465838e75.

9 years agofix nanosec cast
Alan T. DeKok [Fri, 25 Nov 2016 12:39:06 +0000 (07:39 -0500)] 
fix nanosec cast

9 years agoworker_destroy is public
Alan T. DeKok [Fri, 25 Nov 2016 12:37:39 +0000 (07:37 -0500)] 
worker_destroy is public

9 years agoDouble quotes not backticks
Arran Cudbard-Bell [Fri, 25 Nov 2016 13:48:25 +0000 (08:48 -0500)] 
Double quotes not backticks

9 years agoTemporarily ifdef out fr_worker_destroy
Arran Cudbard-Bell [Fri, 25 Nov 2016 13:34:01 +0000 (08:34 -0500)] 
Temporarily ifdef out fr_worker_destroy

9 years agoCast ts.tv_nsec to time_t to avoid sign warnings
Arran Cudbard-Bell [Fri, 25 Nov 2016 13:23:18 +0000 (08:23 -0500)] 
Cast ts.tv_nsec to time_t to avoid sign warnings

9 years agoSet TLS variables directly
Arran Cudbard-Bell [Fri, 25 Nov 2016 12:09:27 +0000 (07:09 -0500)] 
Set TLS variables directly

9 years agodoxygen
Alan T. DeKok [Fri, 25 Nov 2016 01:09:02 +0000 (20:09 -0500)] 
doxygen