]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Sat, 3 Dec 2016 16:58:44 +0000 (11:58 -0500)]
channel test code
Alan T. DeKok [Sat, 3 Dec 2016 16:58:23 +0000 (11:58 -0500)]
add more KQ functions.
Alan T. DeKok [Fri, 2 Dec 2016 21:10:51 +0000 (16:10 -0500)]
allow ack for channel close
Alan T. DeKok [Fri, 2 Dec 2016 16:54:07 +0000 (11:54 -0500)]
remove deprecated config items
Alan T. DeKok [Wed, 30 Nov 2016 20:10:36 +0000 (15:10 -0500)]
don't use deprecated function.
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
Arran Cudbard-Bell [Thu, 1 Dec 2016 14:51:28 +0000 (09:51 -0500)]
More clang scan warnings
Arran Cudbard-Bell [Thu, 1 Dec 2016 02:58:28 +0000 (21:58 -0500)]
constify pool_inst
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
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
Arran Cudbard-Bell [Wed, 30 Nov 2016 21:02:53 +0000 (16:02 -0500)]
s/config_server/server_str/
Alan T. DeKok [Wed, 30 Nov 2016 13:55:01 +0000 (08:55 -0500)]
doxygen
Alan T. DeKok [Wed, 30 Nov 2016 13:30:38 +0000 (08:30 -0500)]
switch with no match and no default
Arran Cudbard-Bell [Tue, 29 Nov 2016 22:16:43 +0000 (17:16 -0500)]
session_tracking is in pool_inst
Arran Cudbard-Bell [Tue, 29 Nov 2016 22:04:48 +0000 (17:04 -0500)]
Split configurations in rlm_ldap into instance and pool specific
Arran Cudbard-Bell [Tue, 29 Nov 2016 16:12:41 +0000 (11:12 -0500)]
Use conn instance
Arran Cudbard-Bell [Tue, 29 Nov 2016 12:29:15 +0000 (07:29 -0500)]
Cast to int
Arran Cudbard-Bell [Tue, 29 Nov 2016 11:14:13 +0000 (06:14 -0500)]
Output seconds until we retry
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
Alan T. DeKok [Mon, 28 Nov 2016 21:54:30 +0000 (16:54 -0500)]
added receiver code
Basic infrastructure for now. More later.
Alan T. DeKok [Mon, 28 Nov 2016 20:57:22 +0000 (15:57 -0500)]
doxygen
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.
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.
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
Arran Cudbard-Bell [Mon, 28 Nov 2016 20:01:44 +0000 (15:01 -0500)]
Fix comment
Arran Cudbard-Bell [Mon, 28 Nov 2016 20:01:35 +0000 (15:01 -0500)]
s/instance/inst
Arran Cudbard-Bell [Mon, 28 Nov 2016 20:01:25 +0000 (15:01 -0500)]
Emit a FR_PROTO_HEX_DUMP message about trailing junk
Alan T. DeKok [Mon, 28 Nov 2016 19:53:41 +0000 (14:53 -0500)]
remove unused variable
Alan T. DeKok [Mon, 28 Nov 2016 18:07:11 +0000 (13:07 -0500)]
use separate signals for receiver / worker
Alan T. DeKok [Mon, 28 Nov 2016 18:00:25 +0000 (13:00 -0500)]
track channel active / closing
Alan T. DeKok [Mon, 28 Nov 2016 16:38:42 +0000 (11:38 -0500)]
make event.h a little more stand-alone
Alan T. DeKok [Mon, 28 Nov 2016 16:07:45 +0000 (11:07 -0500)]
priority is for both requests and replies
Alan T. DeKok [Mon, 28 Nov 2016 15:50:54 +0000 (10:50 -0500)]
expose "get worker kq" function
Alan T. DeKok [Mon, 28 Nov 2016 15:19:22 +0000 (10:19 -0500)]
don't print warnings. just ignore it
Alan T. DeKok [Mon, 28 Nov 2016 14:29:14 +0000 (09:29 -0500)]
Garbage after the packet is a warning, not an error
Alan T. DeKok [Sun, 27 Nov 2016 14:11:30 +0000 (09:11 -0500)]
add assertion
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
Arran Cudbard-Bell [Mon, 28 Nov 2016 01:26:55 +0000 (20:26 -0500)]
...and change some CURLM_OK to CURLE_OK
Arran Cudbard-Bell [Sun, 27 Nov 2016 22:39:36 +0000 (17:39 -0500)]
Use correct enum value
Arran Cudbard-Bell [Sun, 27 Nov 2016 22:02:35 +0000 (17:02 -0500)]
Ifdef out all the xlat code
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:48:21 +0000 (16:48 -0500)]
Remove UNUSED markup from used variables in rlm_rest
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:48:01 +0000 (16:48 -0500)]
Fix missing variable
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
Arran Cudbard-Bell [Sun, 27 Nov 2016 21:17:25 +0000 (16:17 -0500)]
Travis fixes
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).
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.
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...
Arran Cudbard-Bell [Sun, 27 Nov 2016 16:22:23 +0000 (11:22 -0500)]
Fix error handling and filter overwriting in event.c
Arran Cudbard-Bell [Sun, 27 Nov 2016 16:02:40 +0000 (11:02 -0500)]
Formatting
Arran Cudbard-Bell [Sun, 27 Nov 2016 16:01:10 +0000 (11:01 -0500)]
Formatting
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)
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.
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
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.
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
Arran Cudbard-Bell [Sun, 27 Nov 2016 03:48:30 +0000 (22:48 -0500)]
Fix busylooping thread_handler
Arran Cudbard-Bell [Sun, 27 Nov 2016 01:30:39 +0000 (20:30 -0500)]
Quiet clang scan
Arran Cudbard-Bell [Sun, 27 Nov 2016 00:13:56 +0000 (19:13 -0500)]
Doxygen
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
Arran Cudbard-Bell [Sun, 27 Nov 2016 00:11:13 +0000 (19:11 -0500)]
Set thread instance data name correctly
Arran Cudbard-Bell [Sun, 27 Nov 2016 00:10:53 +0000 (19:10 -0500)]
Add more error messages to fr_connect_pool_init
Arran Cudbard-Bell [Sat, 26 Nov 2016 22:20:01 +0000 (17:20 -0500)]
Add thread argument to unlang continuation functions
Arran Cudbard-Bell [Sat, 26 Nov 2016 22:19:41 +0000 (17:19 -0500)]
Formatting
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
Arran Cudbard-Bell [Sat, 26 Nov 2016 20:25:21 +0000 (15:25 -0500)]
Constify cf_reference_item
Arran Cudbard-Bell [Sat, 26 Nov 2016 20:24:51 +0000 (15:24 -0500)]
Constify trigger arguments
Arran Cudbard-Bell [Sat, 26 Nov 2016 20:26:41 +0000 (15:26 -0500)]
Pass const'd config section into thread_instantiate functions
Arran Cudbard-Bell [Sat, 26 Nov 2016 16:59:25 +0000 (11:59 -0500)]
Pass the event list to the thread instantiate function
Arran Cudbard-Bell [Sat, 26 Nov 2016 15:28:52 +0000 (10:28 -0500)]
Document fifo functions
and move freeing to a talloc destructor
Alan T. DeKok [Sat, 26 Nov 2016 22:01:27 +0000 (17:01 -0500)]
check value of "done"
Alan T. DeKok [Sat, 26 Nov 2016 21:46:15 +0000 (16:46 -0500)]
travis fixes
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
Alan T. DeKok [Sat, 26 Nov 2016 21:35:14 +0000 (16:35 -0500)]
ensure that FD/timer add is only called from modules
Alan T. DeKok [Sat, 26 Nov 2016 21:23:58 +0000 (16:23 -0500)]
add preliminary scheduler
Alan T. DeKok [Sat, 26 Nov 2016 21:18:30 +0000 (16:18 -0500)]
check for event loop exiting on fd/timer add event
Alan T. DeKok [Sat, 26 Nov 2016 18:09:32 +0000 (13:09 -0500)]
notes on single-threaded mode
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
Arran Cudbard-Bell [Sat, 26 Nov 2016 14:53:17 +0000 (09:53 -0500)]
Fix camel case
Arran Cudbard-Bell [Sat, 26 Nov 2016 02:52:20 +0000 (21:52 -0500)]
Update copyright on rest code
Arran Cudbard-Bell [Sat, 26 Nov 2016 02:51:39 +0000 (21:51 -0500)]
Fix arguments to timer callback
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:55:57 +0000 (20:55 -0500)]
Fix argument order
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:15:09 +0000 (20:15 -0500)]
reorder arguments to timer callbacks
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:14:12 +0000 (20:14 -0500)]
Better errors checks in event.c
Arran Cudbard-Bell [Sat, 26 Nov 2016 01:13:28 +0000 (20:13 -0500)]
Add fr_timeval_from_ms function
Arran Cudbard-Bell [Sat, 26 Nov 2016 00:34:09 +0000 (19:34 -0500)]
Fix el shadowing
Arran Cudbard-Bell [Fri, 25 Nov 2016 23:58:39 +0000 (18:58 -0500)]
Expose the worker's event list
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.
Arran Cudbard-Bell [Fri, 25 Nov 2016 22:35:38 +0000 (17:35 -0500)]
Add tests for exec
Arran Cudbard-Bell [Fri, 25 Nov 2016 22:06:49 +0000 (17:06 -0500)]
Escape output from exec calls, so it's understandable
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...
Alan T. DeKok [Fri, 25 Nov 2016 19:49:00 +0000 (14:49 -0500)]
added "get kq" function
Alan T. DeKok [Fri, 25 Nov 2016 14:45:56 +0000 (09:45 -0500)]
stupid linker issues
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 .
Alan T. DeKok [Fri, 25 Nov 2016 12:39:06 +0000 (07:39 -0500)]
fix nanosec cast
Alan T. DeKok [Fri, 25 Nov 2016 12:37:39 +0000 (07:37 -0500)]
worker_destroy is public
Arran Cudbard-Bell [Fri, 25 Nov 2016 13:48:25 +0000 (08:48 -0500)]
Double quotes not backticks
Arran Cudbard-Bell [Fri, 25 Nov 2016 13:34:01 +0000 (08:34 -0500)]
Temporarily ifdef out fr_worker_destroy
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
Arran Cudbard-Bell [Fri, 25 Nov 2016 12:09:27 +0000 (07:09 -0500)]
Set TLS variables directly
Alan T. DeKok [Fri, 25 Nov 2016 01:09:02 +0000 (20:09 -0500)]
doxygen