]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agoadd control plane API functions.
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.

9 years agoclean up header file inclusions
Alan T. DeKok [Wed, 7 Dec 2016 20:11:35 +0000 (15:11 -0500)] 
clean up header file inclusions

9 years agoinclude sys/types, as we need it
Alan T. DeKok [Wed, 7 Dec 2016 20:09:12 +0000 (15:09 -0500)] 
include sys/types, as we need it

9 years agosplit channel close into two functions
Alan T. DeKok [Wed, 7 Dec 2016 19:56:32 +0000 (14:56 -0500)] 
split channel close into two functions

9 years agoAdded atomic queues to fr_channel_create()
Alan T. DeKok [Wed, 7 Dec 2016 19:52:43 +0000 (14:52 -0500)] 
Added atomic queues to fr_channel_create()

9 years agoabstract signals into a local API
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.

9 years agoRename xlat public functions s/radius_xlat/xlat_eval/
Arran Cudbard-Bell [Wed, 7 Dec 2016 18:04:42 +0000 (13:04 -0500)] 
Rename xlat public functions s/radius_xlat/xlat_eval/

9 years agoSplit xlat.c into xlat_eval.c, xlat_func.c and xlat_tokenize.c
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

9 years agoremove unused macro
Alan T. DeKok [Wed, 7 Dec 2016 16:38:14 +0000 (11:38 -0500)] 
remove unused macro

9 years agov4 API
Alan T. DeKok [Wed, 7 Dec 2016 15:37:17 +0000 (10:37 -0500)] 
v4 API

9 years agocontinue to "next" in xlat alternate. Fixes #1866
Alan T. DeKok [Wed, 7 Dec 2016 14:56:01 +0000 (09:56 -0500)] 
continue to "next" in xlat alternate.  Fixes #1866

9 years agoindentation helps
Alan T. DeKok [Wed, 7 Dec 2016 00:22:12 +0000 (19:22 -0500)] 
indentation helps

9 years agominor re-arrangement
Alan T. DeKok [Tue, 6 Dec 2016 22:24:17 +0000 (17:24 -0500)] 
minor re-arrangement

9 years agore-use the ring buffer code for messages
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

9 years agocheck the other ends ACKs of our packets
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

9 years agoEV_ADD doesn't need user_data
Alan T. DeKok [Mon, 5 Dec 2016 20:12:45 +0000 (15:12 -0500)] 
EV_ADD doesn't need user_data

9 years agoMerge pull request #1867 from herwinw/debian_lua
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

9 years agoFixed compilation problems with rlm_lua 1867/head
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.

9 years agoIfdef out free function
Arran Cudbard-Bell [Tue, 6 Dec 2016 12:10:49 +0000 (07:10 -0500)] 
Ifdef out free function

9 years agodon't allocate a stack unless we have pcre_jit_exec
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

9 years agoOnly use pcre_jit_exec if we have a sufficiently new version of libpcre
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

9 years agoUse pcre_jit_exec for a further ~10% speed improvement on JIT'd regexes
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

9 years agomake it run-time code
Alan T. DeKok [Mon, 5 Dec 2016 17:26:09 +0000 (12:26 -0500)] 
make it run-time code

9 years agouse macro for atomic queue size
Alan T. DeKok [Mon, 5 Dec 2016 16:36:21 +0000 (11:36 -0500)] 
use macro for atomic queue size

9 years agodebug-only check
Alan T. DeKok [Mon, 5 Dec 2016 16:12:37 +0000 (11:12 -0500)] 
debug-only check

9 years agouse switch statement
Alan T. DeKok [Mon, 5 Dec 2016 16:04:47 +0000 (11:04 -0500)] 
use switch statement

9 years agomagically we don't need EV_RECEIPT
Alan T. DeKok [Mon, 5 Dec 2016 16:00:49 +0000 (11:00 -0500)] 
magically we don't need EV_RECEIPT

9 years agofix typo
Alan T. DeKok [Mon, 5 Dec 2016 12:37:10 +0000 (07:37 -0500)] 
fix typo

9 years agoFix typo (Only skip saving state if there's no request->state && no data)
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)

9 years agoLoad client {} for LDAP tests
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:36:18 +0000 (22:36 -0500)] 
Load client {} for LDAP tests

9 years agoDoxygen
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:34:46 +0000 (22:34 -0500)] 
Doxygen

9 years agoRemove more UNUSED markers
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:28:39 +0000 (22:28 -0500)] 
Remove more UNUSED markers

9 years agoGetclient was removed
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:25:10 +0000 (22:25 -0500)] 
Getclient was removed

9 years agosrc is used
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:20:07 +0000 (22:20 -0500)] 
src is used

9 years agoTry specifying explicit mysql versions
Arran Cudbard-Bell [Mon, 5 Dec 2016 03:03:09 +0000 (22:03 -0500)] 
Try specifying explicit mysql versions

9 years agoMove client xlats to rlm_client and add map client {}
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...

9 years agoMake the src argument in maps optional
Arran Cudbard-Bell [Mon, 5 Dec 2016 00:56:46 +0000 (19:56 -0500)] 
Make the src argument in maps optional

9 years agoRemove requirement of Filter-Id from default module test attrs file
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

9 years agoAllow clients to be read in from the main configuration file in unit_test_module
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

9 years agoChange map_processors to take a vp_tmpl_t as the src
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

9 years agodebug how many signals the channel sent
Alan T. DeKok [Sun, 4 Dec 2016 16:13:25 +0000 (11:13 -0500)] 
debug how many signals the channel sent

9 years agoadded channel_debug
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.

9 years agoadded option to read "packet" data memory
Alan T. DeKok [Sun, 4 Dec 2016 15:22:19 +0000 (10:22 -0500)] 
added option to read "packet" data memory

9 years agorename variables
Alan T. DeKok [Sun, 4 Dec 2016 14:57:20 +0000 (09:57 -0500)] 
rename variables

9 years agomake kevent functions private
Alan T. DeKok [Sun, 4 Dec 2016 14:50:53 +0000 (09:50 -0500)] 
make kevent functions private

9 years agoremove unused variable
Alan T. DeKok [Sun, 4 Dec 2016 00:28:31 +0000 (19:28 -0500)] 
remove unused variable

9 years agothis works better
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!

9 years agothis seems to work better
Alan T. DeKok [Sat, 3 Dec 2016 19:04:00 +0000 (14:04 -0500)] 
this seems to work better

9 years agouse correct field
Alan T. DeKok [Sat, 3 Dec 2016 17:58:01 +0000 (12:58 -0500)] 
use correct field

9 years agomissed
Alan T. DeKok [Sat, 3 Dec 2016 17:03:58 +0000 (12:03 -0500)] 
missed

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