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

9 years agomore travis fixes...
Arran Cudbard-Bell [Fri, 25 Nov 2016 00:27:39 +0000 (19:27 -0500)] 
more travis fixes...

9 years agoexpose more of the worker API
Alan T. DeKok [Thu, 24 Nov 2016 17:03:15 +0000 (12:03 -0500)] 
expose more of the worker API

So that the caller can control how workers are run.

9 years agoit's one/two for comparison, not ctx/data
Alan T. DeKok [Wed, 23 Nov 2016 21:01:16 +0000 (16:01 -0500)] 
it's one/two for comparison, not ctx/data

9 years agomore descriptive name
Alan T. DeKok [Wed, 23 Nov 2016 20:52:44 +0000 (15:52 -0500)] 
more descriptive name

9 years agoadd function to export the kqueue
Alan T. DeKok [Wed, 23 Nov 2016 20:52:24 +0000 (15:52 -0500)] 
add function to export the kqueue

9 years agomove cast into definition
Alan T. DeKok [Wed, 23 Nov 2016 20:36:01 +0000 (15:36 -0500)] 
move cast into definition

9 years agodon't sent NAKs
Alan T. DeKok [Wed, 23 Nov 2016 18:41:51 +0000 (13:41 -0500)] 
don't sent NAKs

If somethign goes wrong, we're async.  Rely on the network thread
to clean things up.

9 years agouse new DLIST
Alan T. DeKok [Wed, 23 Nov 2016 18:29:36 +0000 (13:29 -0500)] 
use new DLIST

9 years agoMacros to make life easier
Alan T. DeKok [Wed, 23 Nov 2016 18:10:54 +0000 (13:10 -0500)] 
Macros to make life easier

9 years agoadded check_timeout function, and more todo's
Alan T. DeKok [Wed, 23 Nov 2016 17:54:24 +0000 (12:54 -0500)] 
added check_timeout function, and more todo's

9 years agoStart of async rlm_rest
Arran Cudbard-Bell [Thu, 24 Nov 2016 22:35:23 +0000 (17:35 -0500)] 
Start of async rlm_rest

9 years agoCopyright on modules.c
Arran Cudbard-Bell [Thu, 24 Nov 2016 22:35:04 +0000 (17:35 -0500)] 
Copyright on modules.c

9 years agoFix travis issues
Arran Cudbard-Bell [Thu, 24 Nov 2016 22:26:28 +0000 (17:26 -0500)] 
Fix travis issues

9 years agoCreate proper struct names
Arran Cudbard-Bell [Thu, 24 Nov 2016 22:25:02 +0000 (17:25 -0500)] 
Create proper struct names

9 years agotrim back the numebr of arguments we pass to thread_instantiate and thread_detach
Arran Cudbard-Bell [Thu, 24 Nov 2016 22:12:54 +0000 (17:12 -0500)] 
trim back the numebr of arguments we pass to thread_instantiate and thread_detach

They can always bad added back later...

9 years agoUse correct type for conf_data.type
Arran Cudbard-Bell [Thu, 24 Nov 2016 21:56:12 +0000 (16:56 -0500)] 
Use correct type for conf_data.type

9 years agoAdd per module/thread instantiation
Arran Cudbard-Bell [Thu, 24 Nov 2016 21:53:51 +0000 (16:53 -0500)] 
Add per module/thread instantiation

9 years agoFix talloc thread ctx name
Arran Cudbard-Bell [Thu, 24 Nov 2016 21:53:19 +0000 (16:53 -0500)] 
Fix talloc thread ctx name

9 years agoAdd generic node free function for talloc node data
Arran Cudbard-Bell [Thu, 24 Nov 2016 20:54:43 +0000 (15:54 -0500)] 
Add generic node free function for talloc node data

9 years agoDocument thread local macros
Arran Cudbard-Bell [Thu, 24 Nov 2016 20:54:25 +0000 (15:54 -0500)] 
Document thread local macros

9 years agoRename interpreter to unlang
Arran Cudbard-Bell [Thu, 24 Nov 2016 20:54:05 +0000 (15:54 -0500)] 
Rename interpreter to unlang

9 years agodoxygen fixes
Arran Cudbard-Bell [Thu, 24 Nov 2016 17:58:45 +0000 (12:58 -0500)] 
doxygen fixes

9 years agoCheck if method is NULL
Arran Cudbard-Bell [Thu, 24 Nov 2016 17:57:58 +0000 (12:57 -0500)] 
Check if method is NULL

9 years agoUnused variable
Arran Cudbard-Bell [Thu, 24 Nov 2016 17:24:15 +0000 (12:24 -0500)] 
Unused variable

9 years agoMove virtual module instantiation into a separate section
Arran Cudbard-Bell [Thu, 24 Nov 2016 17:23:11 +0000 (12:23 -0500)] 
Move virtual module instantiation into a separate section

9 years agoRip out server/module hup
Arran Cudbard-Bell [Thu, 24 Nov 2016 17:01:58 +0000 (12:01 -0500)] 
Rip out server/module hup

They need to be re-added once v4 re-architecture is complete

9 years agoInstantiate modules using the new CF_DATA walker
Arran Cudbard-Bell [Thu, 24 Nov 2016 16:43:41 +0000 (11:43 -0500)] 
Instantiate modules using the new CF_DATA walker

9 years agoAdd conffile log warning functions
Arran Cudbard-Bell [Thu, 24 Nov 2016 16:43:08 +0000 (11:43 -0500)] 
Add conffile log warning functions

9 years agoAdd cf_data_walk function to walk over CONF_DATA of a specific type
Arran Cudbard-Bell [Wed, 23 Nov 2016 20:52:49 +0000 (15:52 -0500)] 
Add cf_data_walk function to walk over CONF_DATA of a specific type

9 years agoDocument cf_data functions, and record type correctly.
Arran Cudbard-Bell [Wed, 23 Nov 2016 16:05:00 +0000 (11:05 -0500)] 
Document cf_data functions, and record type correctly.

9 years agoAdd type values for cf_data_*
Arran Cudbard-Bell [Tue, 22 Nov 2016 22:08:58 +0000 (17:08 -0500)] 
Add type values for cf_data_*

9 years agoQualify cf_data names
Arran Cudbard-Bell [Tue, 22 Nov 2016 21:54:57 +0000 (16:54 -0500)] 
Qualify cf_data names

9 years agomore travis fixes && todo
Alan T. DeKok [Tue, 22 Nov 2016 18:21:21 +0000 (13:21 -0500)] 
more travis fixes && todo

9 years agoRename for Debian. Fixes #1856.
Alan T. DeKok [Tue, 22 Nov 2016 18:17:31 +0000 (13:17 -0500)] 
Rename for Debian.  Fixes #1856.

Manually done due to travis issues.

9 years agocreate heaps
Alan T. DeKok [Tue, 22 Nov 2016 17:30:40 +0000 (12:30 -0500)] 
create heaps

9 years agoadded gpl header
Alan T. DeKok [Tue, 22 Nov 2016 17:23:00 +0000 (12:23 -0500)] 
added gpl header

9 years agoreply_cnt is a size_t
Arran Cudbard-Bell [Tue, 22 Nov 2016 12:51:31 +0000 (07:51 -0500)] 
reply_cnt is a size_t

9 years ago...and more redis fixes.
Arran Cudbard-Bell [Mon, 21 Nov 2016 21:59:34 +0000 (16:59 -0500)] 
...and more redis fixes.

9 years agoMerge pull request #1854 from qnet-herwin/rlm_lua_copy_paste_error
Arran Cudbard-Bell [Tue, 22 Nov 2016 11:52:04 +0000 (06:52 -0500)] 
Merge pull request #1854 from qnet-herwin/rlm_lua_copy_paste_error

Removed reference to json-c from rlm_lua configure

9 years agoRemoved reference to json-c from rlm_lua configure 1854/head
Herwin Weststrate [Tue, 22 Nov 2016 07:18:44 +0000 (08:18 +0100)] 
Removed reference to json-c from rlm_lua configure

This was probably a copy-paste error

9 years agoAdded sub transport, and worker implementations.
Alan T. DeKok [Mon, 21 Nov 2016 20:37:58 +0000 (15:37 -0500)] 
Added sub transport, and worker implementations.

Still some work to do, but the basics should be there.

9 years agoadd stub active / signal_close functions
Alan T. DeKok [Mon, 21 Nov 2016 20:37:39 +0000 (15:37 -0500)] 
add stub active / signal_close functions

9 years agoadd EVFILT_USER callbacks
Alan T. DeKok [Mon, 21 Nov 2016 20:05:36 +0000 (15:05 -0500)] 
add EVFILT_USER callbacks

9 years agoevent_status now can return 1 for "check events, but don't wait"
Alan T. DeKok [Mon, 21 Nov 2016 19:46:04 +0000 (14:46 -0500)] 
event_status now can return 1 for "check events, but don't wait"

9 years agoanother minor rlm_redis_ippool_tool fix
Arran Cudbard-Bell [Mon, 21 Nov 2016 21:43:31 +0000 (16:43 -0500)] 
another minor rlm_redis_ippool_tool fix

9 years agoFix driver_get_stats
Arran Cudbard-Bell [Mon, 21 Nov 2016 21:12:15 +0000 (16:12 -0500)] 
Fix driver_get_stats

Refactoring in fr_redis_pipeline_result messed up the count of commands issued, because the counter is now decremented as responses are received.

9 years agovariable is static
Alan T. DeKok [Mon, 21 Nov 2016 18:17:41 +0000 (13:17 -0500)] 
variable is static

9 years agoremove unnecessary "Need 0 more connections to reach..." INFO output
Alan T. DeKok [Mon, 21 Nov 2016 16:44:40 +0000 (11:44 -0500)] 
remove unnecessary "Need 0 more connections to reach..." INFO output

the <= means that when the value is 0 the server keeps spewing out "Need 0 more connections to reach..." messages into the log output.  this ensures messages come out only when there is a need.

Manual merge of 6be96d36

9 years agoadd heap_id, and it's transport, not protocol
Alan T. DeKok [Mon, 21 Nov 2016 13:53:58 +0000 (08:53 -0500)] 
add heap_id, and it's transport, not protocol

9 years agofix comment
Alan T. DeKok [Mon, 21 Nov 2016 12:24:55 +0000 (07:24 -0500)] 
fix comment

9 years agoStop checking the event list if we're asked to exit
Alan T. DeKok [Mon, 21 Nov 2016 12:24:26 +0000 (07:24 -0500)] 
Stop checking the event list if we're asked to exit

9 years agoinsert yielded request into tail of yielded list
Alan T. DeKok [Mon, 21 Nov 2016 12:24:03 +0000 (07:24 -0500)] 
insert yielded request into tail of yielded list

9 years agoSort option 82 sub-sub-options correctly
Arran Cudbard-Bell [Mon, 21 Nov 2016 14:00:28 +0000 (09:00 -0500)] 
Sort option 82 sub-sub-options correctly

9 years agoMerge pull request #1852 from pwdng/dhcp_order_fix
Arran Cudbard-Bell [Mon, 21 Nov 2016 13:30:42 +0000 (08:30 -0500)] 
Merge pull request #1852 from pwdng/dhcp_order_fix

Fix typos and option 82 handling in DHCP sort changes

9 years agoFix typos and option 82 handling in DHCP sort changes 1852/head
Philippe Wooding [Mon, 21 Nov 2016 11:07:24 +0000 (12:07 +0100)] 
Fix typos and option 82 handling in DHCP sort changes

9 years agoremove unused macro
Alan T. DeKok [Sun, 20 Nov 2016 15:31:49 +0000 (10:31 -0500)] 
remove unused macro

9 years agonote TODOs
Alan T. DeKok [Sun, 20 Nov 2016 03:35:35 +0000 (22:35 -0500)] 
note TODOs

9 years agoadded replies to RADIUS tracking table
Alan T. DeKok [Sun, 20 Nov 2016 03:20:01 +0000 (22:20 -0500)] 
added replies to RADIUS tracking table

9 years agoSimple RADIUS packet tracking API
Alan T. DeKok [Sun, 20 Nov 2016 02:49:39 +0000 (21:49 -0500)] 
Simple RADIUS packet tracking API

9 years agofix APi for fr_message_localize
Alan T. DeKok [Sun, 20 Nov 2016 02:09:44 +0000 (21:09 -0500)] 
fix APi for fr_message_localize

9 years agoadded fr_ring_buffer_start()
Alan T. DeKok [Sun, 20 Nov 2016 01:52:45 +0000 (20:52 -0500)] 
added fr_ring_buffer_start()

Which gets "pointer + size" to the data at the start of the
ring buffer.

9 years agocleanups, and fr_message_done() doesn't need ms
Alan T. DeKok [Sun, 20 Nov 2016 01:43:38 +0000 (20:43 -0500)] 
cleanups, and fr_message_done() doesn't need ms

9 years agom_* -> mr_*
Alan T. DeKok [Sun, 20 Nov 2016 01:34:05 +0000 (20:34 -0500)] 
m_* -> mr_*

which is a better name

9 years agodocument -t
Alan T. DeKok [Sun, 20 Nov 2016 01:33:55 +0000 (20:33 -0500)] 
document -t

9 years agoAssignment to tmp not used
Arran Cudbard-Bell [Sat, 19 Nov 2016 18:58:29 +0000 (13:58 -0500)] 
Assignment to tmp not used

9 years agoAdd fr_message_alloc_reserve()
Alan T. DeKok [Sat, 19 Nov 2016 15:26:39 +0000 (10:26 -0500)] 
Add fr_message_alloc_reserve()

For protocols like TCP, where we reserve a large chunk of memory,
and then read multiple packets into it.  If we want to have a
unique messages for each unique packet, we need to be able to
allocate a message, while reserving the rest of the buffer.

9 years ago%zd -> %zu
Alan T. DeKok [Sat, 19 Nov 2016 15:03:23 +0000 (10:03 -0500)] 
%zd -> %zu

9 years agouse src_type. src->type isn't (yet) used everywhere.
Alan T. DeKok [Sat, 19 Nov 2016 15:00:24 +0000 (10:00 -0500)] 
use src_type.  src->type isn't (yet) used everywhere.

clang complains about this, and src_type is used everywhere else
in this function, so we should probably use it here

9 years agoremove unused variable
Alan T. DeKok [Sat, 19 Nov 2016 14:57:48 +0000 (09:57 -0500)] 
remove unused variable

9 years agoFix typo
Alan T. DeKok [Sat, 19 Nov 2016 14:55:55 +0000 (09:55 -0500)] 
Fix typo

9 years agoReduce scope of custom in fr_vasprintf
Arran Cudbard-Bell [Sat, 19 Nov 2016 14:21:51 +0000 (09:21 -0500)] 
Reduce scope of custom in fr_vasprintf

9 years agotravis warnings
Alan T. DeKok [Sat, 19 Nov 2016 03:32:00 +0000 (22:32 -0500)] 
travis warnings

9 years agosplit out allocate message from allocate ring buffer
Alan T. DeKok [Sat, 19 Nov 2016 02:08:30 +0000 (21:08 -0500)] 
split out allocate message from allocate ring buffer

9 years agofix comparison checks. Fixes #1851
Alan T. DeKok [Sat, 19 Nov 2016 01:58:19 +0000 (20:58 -0500)] 
fix comparison checks.  Fixes #1851

9 years agoFix initialization errors
Alan T. DeKok [Sat, 19 Nov 2016 01:55:36 +0000 (20:55 -0500)] 
Fix initialization errors

9 years agofix inner-tunnel policy
Alan T. DeKok [Sat, 19 Nov 2016 00:35:13 +0000 (19:35 -0500)] 
fix inner-tunnel policy

This policy replaces "use_tunneled_reply".  It's better to use
if (0) { ...} to disable blocks of code, instead of commenting it out.

Also, update the local reply before copying it to the outer
session-state list.  That makes a lot more sense.

9 years agoset reserved
Alan T. DeKok [Sat, 19 Nov 2016 00:20:28 +0000 (19:20 -0500)] 
set reserved

9 years agoadd fr_ring_buffer_reserve_split()
Alan T. DeKok [Fri, 18 Nov 2016 23:41:58 +0000 (18:41 -0500)] 
add fr_ring_buffer_reserve_split()

Which lets the caller fix a partial packet, and move it to
a new ring buffer.

9 years agoOverload %p printk style
Arran Cudbard-Bell [Fri, 18 Nov 2016 23:24:14 +0000 (18:24 -0500)] 
Overload %p printk style

9 years agoAdd custom fprintf style function for talloc binary buffers and value boxes
Arran Cudbard-Bell [Fri, 18 Nov 2016 22:57:05 +0000 (17:57 -0500)] 
Add custom fprintf style function for talloc binary buffers and value boxes

9 years agoFix previous commit
Arran Cudbard-Bell [Fri, 18 Nov 2016 18:27:18 +0000 (13:27 -0500)] 
Fix previous commit

9 years agoFix DHCP attribute ordering
Arran Cudbard-Bell [Fri, 18 Nov 2016 18:17:17 +0000 (13:17 -0500)] 
Fix DHCP attribute ordering

9 years agoExtra space between cache options and colon
Arran Cudbard-Bell [Thu, 17 Nov 2016 17:53:31 +0000 (12:53 -0500)] 
Extra space between cache options and colon

9 years agoset reply code
Alan T. DeKok [Fri, 18 Nov 2016 17:01:29 +0000 (12:01 -0500)] 
set reply code

9 years agoreject on no auth-type
Alan T. DeKok [Fri, 18 Nov 2016 16:18:59 +0000 (11:18 -0500)] 
reject on no auth-type

9 years agoadded "todo" note about UDP protocols
Alan T. DeKok [Fri, 18 Nov 2016 14:35:28 +0000 (09:35 -0500)] 
added "todo" note about UDP protocols

9 years agoAdded "protocol" field to each message.
Alan T. DeKok [Fri, 18 Nov 2016 14:26:31 +0000 (09:26 -0500)] 
Added "protocol" field to each message.

9 years agoDon't copy the entire datum union
Arran Cudbard-Bell [Thu, 17 Nov 2016 17:49:00 +0000 (12:49 -0500)] 
Don't copy the entire datum union

9 years agoFormatting
Arran Cudbard-Bell [Thu, 17 Nov 2016 17:48:29 +0000 (12:48 -0500)] 
Formatting

9 years agore-order fields in value_box to match PW_TYPE
Arran Cudbard-Bell [Thu, 17 Nov 2016 13:04:50 +0000 (08:04 -0500)] 
re-order fields in value_box to match PW_TYPE

9 years agoAdd missing field sizes
Arran Cudbard-Bell [Thu, 17 Nov 2016 01:45:45 +0000 (20:45 -0500)] 
Add missing field sizes

9 years agoCorrect src offset in _tmpl_to_atype
Arran Cudbard-Bell [Thu, 17 Nov 2016 12:55:28 +0000 (07:55 -0500)] 
Correct src offset in _tmpl_to_atype

9 years agoFormatting
Arran Cudbard-Bell [Thu, 17 Nov 2016 13:55:26 +0000 (08:55 -0500)] 
Formatting

9 years agoFormatting
Arran Cudbard-Bell [Wed, 16 Nov 2016 22:05:49 +0000 (17:05 -0500)] 
Formatting

9 years agoUse the correct source fields in value_box_hton
Arran Cudbard-Bell [Wed, 16 Nov 2016 22:05:34 +0000 (17:05 -0500)] 
Use the correct source fields in value_box_hton

9 years agoRename cond tokenization and cond evaluation functions
Arran Cudbard-Bell [Wed, 16 Nov 2016 20:21:49 +0000 (15:21 -0500)] 
Rename cond tokenization and cond evaluation functions

parser.c and evaluate.c really‽