]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Wed, 7 Dec 2016 20:18:29 +0000 (15:18 -0500)]
add control plane API functions.
Like channels, but much simpler, and used by channels.
because kevent() doesn't allow for sending multiple sets of data
in one "ident". And, we don't want to have 1000 "ident"s registered.
Alan T. DeKok [Wed, 7 Dec 2016 20:11:35 +0000 (15:11 -0500)]
clean up header file inclusions
Alan T. DeKok [Wed, 7 Dec 2016 20:09:12 +0000 (15:09 -0500)]
include sys/types, as we need it
Alan T. DeKok [Wed, 7 Dec 2016 19:56:32 +0000 (14:56 -0500)]
split channel close into two functions
Alan T. DeKok [Wed, 7 Dec 2016 19:52:43 +0000 (14:52 -0500)]
Added atomic queues to fr_channel_create()
Alan T. DeKok [Wed, 7 Dec 2016 19:48:41 +0000 (14:48 -0500)]
abstract signals into a local API
In preparation for the channel work.
Arran Cudbard-Bell [Wed, 7 Dec 2016 18:04:42 +0000 (13:04 -0500)]
Rename xlat public functions s/radius_xlat/xlat_eval/
Arran Cudbard-Bell [Wed, 7 Dec 2016 17:48:56 +0000 (12:48 -0500)]
Split xlat.c into xlat_eval.c, xlat_func.c and xlat_tokenize.c
Alan T. DeKok [Wed, 7 Dec 2016 16:38:14 +0000 (11:38 -0500)]
remove unused macro
Alan T. DeKok [Wed, 7 Dec 2016 15:37:17 +0000 (10:37 -0500)]
v4 API
Alan T. DeKok [Wed, 7 Dec 2016 14:56:01 +0000 (09:56 -0500)]
continue to "next" in xlat alternate. Fixes #1866
Alan T. DeKok [Wed, 7 Dec 2016 00:22:12 +0000 (19:22 -0500)]
indentation helps
Alan T. DeKok [Tue, 6 Dec 2016 22:24:17 +0000 (17:24 -0500)]
minor re-arrangement
Alan T. DeKok [Tue, 6 Dec 2016 20:55:02 +0000 (15:55 -0500)]
re-use the ring buffer code for messages
Instead of more custom code
Alan T. DeKok [Tue, 6 Dec 2016 16:32:19 +0000 (11:32 -0500)]
check the other ends ACKs of our packets
not our ACKs of the other ends packets
Alan T. DeKok [Mon, 5 Dec 2016 20:12:45 +0000 (15:12 -0500)]
EV_ADD doesn't need user_data
Arran Cudbard-Bell [Tue, 6 Dec 2016 21:14:28 +0000 (16:14 -0500)]
Merge pull request #1867 from herwinw/debian_lua
Fixed compilation problems with rlm_lua
Herwin Weststrate [Tue, 6 Dec 2016 19:52:42 +0000 (20:52 +0100)]
Fixed compilation problems with rlm_lua
When building the debian package, no configuration is tried for rlm_lua,
because it isn't listed in the stable modules. But because the folder
contains a file called all.mk, the build process still tries to build it
and fails. Quick and dirty solution: move all.mk to all.mk.in.
Arran Cudbard-Bell [Tue, 6 Dec 2016 12:10:49 +0000 (07:10 -0500)]
Ifdef out free function
Arran Cudbard-Bell [Mon, 5 Dec 2016 21:46:25 +0000 (16:46 -0500)]
don't allocate a stack unless we have pcre_jit_exec
Arran Cudbard-Bell [Mon, 5 Dec 2016 21:28:06 +0000 (16:28 -0500)]
Only use pcre_jit_exec if we have a sufficiently new version of libpcre
Arran Cudbard-Bell [Mon, 5 Dec 2016 20:24:01 +0000 (15:24 -0500)]
Use pcre_jit_exec for a further ~10% speed improvement on JIT'd regexes
Alan T. DeKok [Mon, 5 Dec 2016 17:26:09 +0000 (12:26 -0500)]
make it run-time code
Alan T. DeKok [Mon, 5 Dec 2016 16:36:21 +0000 (11:36 -0500)]
use macro for atomic queue size
Alan T. DeKok [Mon, 5 Dec 2016 16:12:37 +0000 (11:12 -0500)]
debug-only check
Alan T. DeKok [Mon, 5 Dec 2016 16:04:47 +0000 (11:04 -0500)]
use switch statement
Alan T. DeKok [Mon, 5 Dec 2016 16:00:49 +0000 (11:00 -0500)]
magically we don't need EV_RECEIPT
Alan T. DeKok [Mon, 5 Dec 2016 12:37:10 +0000 (07:37 -0500)]
fix typo
Arran Cudbard-Bell [Mon, 5 Dec 2016 13:41:06 +0000 (08:41 -0500)]
Fix typo (Only skip saving state if there's no request->state && no data)
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:36:18 +0000 (22:36 -0500)]
Load client {} for LDAP tests
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:34:46 +0000 (22:34 -0500)]
Doxygen
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:28:39 +0000 (22:28 -0500)]
Remove more UNUSED markers
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:25:10 +0000 (22:25 -0500)]
Getclient was removed
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:20:07 +0000 (22:20 -0500)]
src is used
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:03:09 +0000 (22:03 -0500)]
Try specifying explicit mysql versions
Arran Cudbard-Bell [Mon, 5 Dec 2016 00:57:21 +0000 (19:57 -0500)]
Move client xlats to rlm_client and add map client {}
This allows multivalued properties to be retrieved from clients...
Arran Cudbard-Bell [Mon, 5 Dec 2016 00:56:46 +0000 (19:56 -0500)]
Make the src argument in maps optional
Arran Cudbard-Bell [Mon, 5 Dec 2016 00:53:33 +0000 (19:53 -0500)]
Remove requirement of Filter-Id from default module test attrs file
Arran Cudbard-Bell [Sun, 4 Dec 2016 17:25:37 +0000 (12:25 -0500)]
Allow clients to be read in from the main configuration file in unit_test_module
Arran Cudbard-Bell [Sun, 4 Dec 2016 01:06:09 +0000 (20:06 -0500)]
Change map_processors to take a vp_tmpl_t as the src
This allows them to get native types for the src value
Alan T. DeKok [Sun, 4 Dec 2016 16:13:25 +0000 (11:13 -0500)]
debug how many signals the channel sent
Alan T. DeKok [Sun, 4 Dec 2016 16:13:00 +0000 (11:13 -0500)]
added channel_debug
and fixed send_reply() logic to send fewer packets.
Alan T. DeKok [Sun, 4 Dec 2016 15:22:19 +0000 (10:22 -0500)]
added option to read "packet" data memory
Alan T. DeKok [Sun, 4 Dec 2016 14:57:20 +0000 (09:57 -0500)]
rename variables
Alan T. DeKok [Sun, 4 Dec 2016 14:50:53 +0000 (09:50 -0500)]
make kevent functions private
Alan T. DeKok [Sun, 4 Dec 2016 00:28:31 +0000 (19:28 -0500)]
remove unused variable
Alan T. DeKok [Sat, 3 Dec 2016 19:07:05 +0000 (14:07 -0500)]
this works better
NOTE: passing a NULL changelist to kevent means it won't work!
Alan T. DeKok [Sat, 3 Dec 2016 19:04:00 +0000 (14:04 -0500)]
this seems to work better
Alan T. DeKok [Sat, 3 Dec 2016 17:58:01 +0000 (12:58 -0500)]
use correct field
Alan T. DeKok [Sat, 3 Dec 2016 17:03:58 +0000 (12:03 -0500)]
missed
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