]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Thu, 2 Nov 2017 15:55:46 +0000 (11:55 -0400)]
remove unused assignment
Alan T. DeKok [Thu, 2 Nov 2017 15:54:21 +0000 (11:54 -0400)]
remove unused struct entries
Alan T. DeKok [Thu, 2 Nov 2017 15:52:55 +0000 (11:52 -0400)]
remove unused struct entries
Alan T. DeKok [Thu, 2 Nov 2017 15:51:52 +0000 (11:51 -0400)]
move declaration to inside ifdef, where it's used
Alan T. DeKok [Thu, 2 Nov 2017 15:50:40 +0000 (11:50 -0400)]
%zd -> %zu for size_t
Alan T. DeKok [Thu, 2 Nov 2017 15:50:05 +0000 (11:50 -0400)]
do run-time check of rbtree_insert()
Alan T. DeKok [Thu, 2 Nov 2017 15:39:20 +0000 (11:39 -0400)]
add assertions for RBtree checks
Alan T. DeKok [Thu, 2 Nov 2017 14:56:12 +0000 (10:56 -0400)]
srcdst structure is const
Alan T. DeKok [Thu, 2 Nov 2017 14:56:02 +0000 (10:56 -0400)]
src/dst addresses are const
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:43:07 +0000 (13:43 +0000)]
Move tls_strerror_printf into its own header file
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:41:49 +0000 (13:41 +0000)]
Add implementation of 3GPP ephemeral identities
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:41:08 +0000 (13:41 +0000)]
Build tls functions into libfreeradius-server not radiusd
Arran Cudbard-Bell [Thu, 2 Nov 2017 13:39:43 +0000 (13:39 +0000)]
Expose the arrays used to encoding/decoding base64 directly
Alan T. DeKok [Tue, 31 Oct 2017 20:50:43 +0000 (16:50 -0400)]
remove unused assignment
Alan T. DeKok [Tue, 31 Oct 2017 20:16:57 +0000 (16:16 -0400)]
more preparations for eventual cleanup
Alan T. DeKok [Tue, 31 Oct 2017 20:10:36 +0000 (16:10 -0400)]
destroy worker where we created it
note that we would LIKE to free the event list here, too.
But... the event list is cached in many modules, and therefore
cannot be freed until all of the modules have been freed,
and all of the threads have exited.
Alan T. DeKok [Tue, 31 Oct 2017 20:05:02 +0000 (16:05 -0400)]
timer events are parented from the event list
so delete them manually, before calling talloc_free_children(),
otherwise we will try to access children that no longer exist...
Alan T. DeKok [Tue, 31 Oct 2017 20:00:34 +0000 (16:00 -0400)]
notes on thread exiting
Alan T. DeKok [Tue, 31 Oct 2017 19:47:10 +0000 (15:47 -0400)]
simplify use of circular list
Alan T. DeKok [Tue, 31 Oct 2017 19:37:53 +0000 (15:37 -0400)]
Fix coverity issues CID #
1420467 ,
1420478 ,
1420469
Alan T. DeKok [Tue, 31 Oct 2017 19:35:54 +0000 (15:35 -0400)]
add assertion
Alan T. DeKok [Tue, 31 Oct 2017 18:50:33 +0000 (14:50 -0400)]
set entry->reply = NULL as necessary
Alan T. DeKok [Tue, 31 Oct 2017 17:35:32 +0000 (13:35 -0400)]
move polling message to debug3
it will still wake up and print "ready to receive requests",
but one less debug message is useful
Alan T. DeKok [Tue, 31 Oct 2017 17:31:59 +0000 (13:31 -0400)]
do more memory cleanup on exit
Alan T. DeKok [Tue, 31 Oct 2017 17:30:19 +0000 (13:30 -0400)]
free children before the queues they use
Alan T. DeKok [Tue, 31 Oct 2017 16:08:16 +0000 (12:08 -0400)]
move debug message to higher level
Alan T. DeKok [Tue, 31 Oct 2017 15:46:44 +0000 (11:46 -0400)]
note todo
Alan T. DeKok [Tue, 31 Oct 2017 14:47:47 +0000 (10:47 -0400)]
coalesce stats across multiple threads
Alan T. DeKok [Tue, 31 Oct 2017 14:22:06 +0000 (10:22 -0400)]
clean up schedule exit code
because of back & forth signaling issues, we have to be careful
how we clean up memory.
First, the network is signaled to exit. When it does, the
scheduler thread sends a semaphore saying so. That signals the
master thread to call fr_network_destroy(), which in turn signals
the worker threads that it's exiting.
BUT fr_network_destory() doesn't free underlying memory. Instead,
we have to wait for all of the workers to finish.
The workers are signaled to finish, and again don't call
fr_worker_destroy(). Instead, they don't ACK the channel close,
but do signal the semaphore again.
When all of the workers are done, it's safe to free the network
memory. And then it's also safe to free the worker memory.
... and then disable most of it, because apparently even
signaling the workers to exit causes problems.
Alan T. DeKok [Mon, 30 Oct 2017 20:45:01 +0000 (16:45 -0400)]
allow storing and querying stats by src/dst/global
for now, it's thread-specific. But it does work.
Next, merge all of the stats from other threads...
Alan T. DeKok [Mon, 30 Oct 2017 19:45:42 +0000 (15:45 -0400)]
track statistics by src/dst IP address, too
Alan T. DeKok [Mon, 30 Oct 2017 19:12:11 +0000 (15:12 -0400)]
merge thread stats into global stats on thread exit
Alan T. DeKok [Mon, 30 Oct 2017 18:29:15 +0000 (14:29 -0400)]
first pass at having statistics in v4
Alan T. DeKok [Fri, 27 Oct 2017 16:14:29 +0000 (12:14 -0400)]
Revert "add counters by packet code"
This reverts commit
2b75a31a05de9c6160b493dc60fb29ec141ec332 .
in the end, this belongs elsewhere
Alan T. DeKok [Fri, 27 Oct 2017 13:48:28 +0000 (09:48 -0400)]
remove redundant memset. CID #
1271306
Alan T. DeKok [Fri, 27 Oct 2017 13:02:57 +0000 (09:02 -0400)]
clarify error message
Alan T. DeKok [Fri, 27 Oct 2017 13:01:24 +0000 (09:01 -0400)]
remove unnecessary variable
Alan DeKok [Fri, 27 Oct 2017 10:49:02 +0000 (06:49 -0400)]
Merge pull request #2103 from pwdng/v4.0.x
Bug fix to get radsniff working
Philippe Wooding [Fri, 27 Oct 2017 09:15:56 +0000 (11:15 +0200)]
Bug fix to get radsniff working
Matthew Newton [Thu, 26 Oct 2017 23:38:24 +0000 (00:38 +0100)]
multi-stage docker builds
Alan T. DeKok [Thu, 26 Oct 2017 23:00:19 +0000 (19:00 -0400)]
add counters by packet code
Alan T. DeKok [Thu, 26 Oct 2017 22:47:44 +0000 (18:47 -0400)]
fix dictionary error printing
dict.c now pushes errors
and the caller now prints them line by line
also double-checked the various messages so that they all make sense...
Alan T. DeKok [Thu, 26 Oct 2017 17:24:00 +0000 (13:24 -0400)]
use new RADIUS API
Alan T. DeKok [Thu, 26 Oct 2017 17:22:16 +0000 (13:22 -0400)]
remove unnecessary debug message
Alan T. DeKok [Thu, 26 Oct 2017 17:10:03 +0000 (13:10 -0400)]
track statistics in proto_radius_udp
Only global statistics. Per-packet statistics should be done
in a module. Sorry about that...
Matthew Newton [Thu, 26 Oct 2017 21:28:09 +0000 (22:28 +0100)]
rework dockerfiles
Matthew Newton [Wed, 25 Oct 2017 11:58:47 +0000 (12:58 +0100)]
mk-build-deps needs pkg called libkqueue-dev
Matthew Newton [Wed, 25 Oct 2017 11:46:32 +0000 (12:46 +0100)]
debian 9 build dependency
Matthew Newton [Wed, 25 Oct 2017 10:14:04 +0000 (11:14 +0100)]
force install in dockerfile
Arran Cudbard-Bell [Wed, 25 Oct 2017 08:51:45 +0000 (21:51 +1300)]
Merge pull request #2102 from herwinw/rlm_rest_value_box_rest_http_status_code
Fixed rlm_rest
Herwin Weststrate [Wed, 25 Oct 2017 06:21:07 +0000 (08:21 +0200)]
Fixed rlm_rest
Add an explicit type to the value assigned to REST-HTTP-Status-Code.
Without this, the following error occurs:
CONSISTENCY CHECK FAILED src/lib/util/pair_cursor.c[478]: VALUE_PAIR
attribute 0xb6c639a8 "REST-HTTP-Status-Code" data type (int8) does not
match da type (uint32)
Alan T. DeKok [Wed, 25 Oct 2017 00:44:02 +0000 (20:44 -0400)]
re-add deleted variable
Alan T. DeKok [Tue, 24 Oct 2017 20:58:07 +0000 (16:58 -0400)]
Revert "remove rad_authenticate()"
This reverts commit
8f22ef299bb34a45bc9c10c70c675e21747417ad .
Alan T. DeKok [Tue, 24 Oct 2017 20:56:50 +0000 (16:56 -0400)]
start the timer when we get the packet
not when we first send it. If all of the connections are down,
the timers will never fire.
Alan T. DeKok [Tue, 24 Oct 2017 20:39:45 +0000 (16:39 -0400)]
distinguish different kinds of stop messages
because it was already mostly doing that
Alan T. DeKok [Tue, 24 Oct 2017 20:07:41 +0000 (16:07 -0400)]
more assertions
Alan T. DeKok [Tue, 24 Oct 2017 20:01:20 +0000 (16:01 -0400)]
delete only if they're in the heaps
Alan T. DeKok [Tue, 24 Oct 2017 19:26:04 +0000 (15:26 -0400)]
remove more unused functions
Alan T. DeKok [Tue, 24 Oct 2017 17:50:51 +0000 (13:50 -0400)]
remove unused variable
Alan T. DeKok [Tue, 24 Oct 2017 16:33:54 +0000 (12:33 -0400)]
reset "is_set" on every round through the loop
Alan T. DeKok [Tue, 24 Oct 2017 16:14:31 +0000 (12:14 -0400)]
name2 can be NULL
Alan T. DeKok [Tue, 24 Oct 2017 16:07:37 +0000 (12:07 -0400)]
remove rad_authenticate()
and move auth_name to proto_radius, which is now the only
user of it.
Alan T. DeKok [Tue, 24 Oct 2017 16:03:36 +0000 (12:03 -0400)]
remove reference to unused function
Alan T. DeKok [Tue, 24 Oct 2017 15:59:58 +0000 (11:59 -0400)]
remove prototypes for functions that no longer exist
Alan T. DeKok [Tue, 24 Oct 2017 15:58:46 +0000 (11:58 -0400)]
remove more unused files.
If we need the code, it's in the v3 branch
Alan T. DeKok [Tue, 24 Oct 2017 15:57:11 +0000 (11:57 -0400)]
no more need for rad_accounting() or acct.c
Alan T. DeKok [Tue, 24 Oct 2017 15:55:13 +0000 (11:55 -0400)]
name2 may be NULL
Alan T. DeKok [Tue, 24 Oct 2017 15:43:04 +0000 (11:43 -0400)]
fr_event_timer_delete() returns int, not bool
Alan T. DeKok [Tue, 24 Oct 2017 15:15:52 +0000 (11:15 -0400)]
don't delete on conflicting packets
Alan T. DeKok [Tue, 24 Oct 2017 14:58:42 +0000 (10:58 -0400)]
remove WITH_foo hacks
the base library should be able to do everything
Alan T. DeKok [Tue, 24 Oct 2017 14:55:39 +0000 (10:55 -0400)]
avoid zero-change memcpy()
Alan T. DeKok [Tue, 24 Oct 2017 14:43:16 +0000 (10:43 -0400)]
fix wrong assertion
Alan T. DeKok [Tue, 24 Oct 2017 13:49:12 +0000 (09:49 -0400)]
clean up tracking entry in corner cases
Alan T. DeKok [Tue, 24 Oct 2017 12:37:57 +0000 (08:37 -0400)]
dump use after free
Alan T. DeKok [Mon, 23 Oct 2017 16:38:14 +0000 (12:38 -0400)]
active (maybe) only when returning
Alan T. DeKok [Mon, 23 Oct 2017 16:33:32 +0000 (12:33 -0400)]
fd_active() may free the connection <sigh>
e.g. if there's an error activating it.
Alan T. DeKok [Mon, 23 Oct 2017 14:41:34 +0000 (10:41 -0400)]
more assertions and cleanups
Alan T. DeKok [Mon, 23 Oct 2017 14:41:20 +0000 (10:41 -0400)]
it's 4.0
Arran Cudbard-Bell [Mon, 23 Oct 2017 05:19:38 +0000 (18:19 +1300)]
Merge pull request #2100 from jsynack/virtserver-fix
Virtual server fixup
Jason Ackley [Mon, 23 Oct 2017 04:51:39 +0000 (23:51 -0500)]
Update the example config file for virtual servers.
1. Remove reference to proxy.conf
2. Modernize the server config settings with namespace/listen/transport information.
3. Include enough configuration for a working virtual server for auth/acct on alternate ports.
Jason Ackley [Mon, 23 Oct 2017 04:50:48 +0000 (23:50 -0500)]
Correct typo and expand an error message when the virtual server lacks the namespace setting
Arran Cudbard-Bell [Mon, 23 Oct 2017 02:42:01 +0000 (15:42 +1300)]
Merge pull request #2099 from jsynack/utfscrub
UTF Scrub
Jason Ackley [Mon, 23 Oct 2017 02:31:28 +0000 (21:31 -0500)]
Replace a UTF char with the ASCII version
Jason Ackley [Mon, 23 Oct 2017 02:29:48 +0000 (21:29 -0500)]
Update information in RADIUS-LDAP-eDirectory
1. Remove the registered trademark blip to make this file ASCII-only
2. Update the documentation URL with current version
Jason Ackley [Mon, 23 Oct 2017 02:29:15 +0000 (21:29 -0500)]
Remove UTF ZWNJ/ZWSP combo in comments to make the file ASCII-pure
Jason Ackley [Mon, 23 Oct 2017 02:25:44 +0000 (21:25 -0500)]
Replace UTF char with ASCII version
Jason Ackley [Mon, 23 Oct 2017 02:24:55 +0000 (21:24 -0500)]
Replace UTF-8 spacing with ASCII spacing
Alan T. DeKok [Sun, 22 Oct 2017 13:21:48 +0000 (09:21 -0400)]
Revert "manually set heap_id = -1"
This reverts commit
bd5402a53b82e8b46ccb69f2073020da6d8dde65 .
no longer necessary now tat we've tracked down the real issue
Alan T. DeKok [Sun, 22 Oct 2017 13:16:11 +0000 (09:16 -0400)]
use new definition for Original-Packet-Code
Alan T. DeKok [Sun, 22 Oct 2017 13:15:58 +0000 (09:15 -0400)]
clean up, and allow for (some) extended attributes
Alan T. DeKok [Sun, 22 Oct 2017 13:15:47 +0000 (09:15 -0400)]
include RFC 7930
Alan T. DeKok [Sun, 22 Oct 2017 13:04:47 +0000 (09:04 -0400)]
don't re-insert the connection if we receive multiple packets
Alan T. DeKok [Sun, 22 Oct 2017 12:46:01 +0000 (08:46 -0400)]
update assertions
Alan T. DeKok [Sun, 22 Oct 2017 12:43:37 +0000 (08:43 -0400)]
minor optimizations for status check
Alan T. DeKok [Sat, 21 Oct 2017 12:38:35 +0000 (08:38 -0400)]
verifications for heaps
Alan T. DeKok [Sat, 21 Oct 2017 12:38:25 +0000 (08:38 -0400)]
better cleanups for connections
Alan T. DeKok [Sat, 21 Oct 2017 12:38:02 +0000 (08:38 -0400)]
better cleanups for status check packets
Alan T. DeKok [Sat, 21 Oct 2017 12:37:19 +0000 (08:37 -0400)]
free only if it exists
Arran Cudbard-Bell [Sat, 21 Oct 2017 01:48:35 +0000 (14:48 +1300)]
Merge pull request #2098 from jsynack/radsniff-fixup
A few adjustments for radsniff
Arran Cudbard-Bell [Sat, 21 Oct 2017 01:44:34 +0000 (14:44 +1300)]
Merge pull request #2097 from jsynack/dictfixups
Dictionary Fixups