]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Tue, 10 Oct 2017 18:43:12 +0000 (14:43 -0400)]
track active packets in a connection
Alan T. DeKok [Tue, 10 Oct 2017 18:26:17 +0000 (14:26 -0400)]
add explicit STATE to udp_request_t
and other minor fixes:
- use allowed_replies[code], not code2rcode[code]
- ensure that all packets are in the right list
- switch off of state to do packet list enqueue / dequeue
Alan T. DeKok [Tue, 10 Oct 2017 15:26:54 +0000 (11:26 -0400)]
re-initialize fields after re-open
Alan T. DeKok [Tue, 10 Oct 2017 14:59:30 +0000 (10:59 -0400)]
don't decrement num_requests on status_server
Alan T. DeKok [Tue, 10 Oct 2017 13:33:08 +0000 (09:33 -0400)]
more assertions and cleanups
Alan T. DeKok [Tue, 10 Oct 2017 13:12:50 +0000 (09:12 -0400)]
clean up more request stuff, and add more assertions
Arran Cudbard-Bell [Tue, 10 Oct 2017 11:40:50 +0000 (17:40 +0600)]
Table used outside of when WITH_EVENT_DEBUG is defined now
Arran Cudbard-Bell [Tue, 10 Oct 2017 11:39:41 +0000 (17:39 +0600)]
Use kevent_filter_table
Alan T. DeKok [Tue, 10 Oct 2017 11:13:48 +0000 (07:13 -0400)]
ifdef out array for EVENT_DEBUG
Alan T. DeKok [Mon, 9 Oct 2017 13:01:41 +0000 (09:01 -0400)]
%f is double, so an explicit conversion is useful
as a hint to the compiler that we know what we're doing
Arran Cudbard-Bell [Tue, 10 Oct 2017 10:51:15 +0000 (16:51 +0600)]
EVFILT_EXCEPT not defined by libkqueue
Arran Cudbard-Bell [Tue, 10 Oct 2017 10:34:10 +0000 (16:34 +0600)]
add extra logging to event.c
Arran Cudbard-Bell [Tue, 10 Oct 2017 08:47:54 +0000 (16:47 +0800)]
Merge pull request #2089 from alanbuxey/patch-4
update text (typo and grammar)
Arran Cudbard-Bell [Tue, 10 Oct 2017 03:28:16 +0000 (11:28 +0800)]
Merge pull request #2088 from jsynack/oct7updates
Misc updates
Arran Cudbard-Bell [Mon, 9 Oct 2017 15:58:38 +0000 (21:58 +0600)]
Don't close out the connection just signal it to reconnect if we can insert the FD
There are too many corner cases with freeing the connection within fd_active and fd_idle... They don't for example communicate to the caller that the connection is no longer valid.
Alan Buxey [Mon, 9 Oct 2017 14:03:02 +0000 (15:03 +0100)]
update text (typo and grammar)
Jason Ackley [Mon, 9 Oct 2017 13:46:46 +0000 (08:46 -0500)]
Misc Non-code impacting changes to docs
1. Start to sprinkle https vs. http to encourage a safer web.
Some of this had URLs redone to the wiki as the SSL redirect from freeradius.org
doesn't appear to be consistent. If this is desired then there are more.
2. Misc corrections to links that had become outdated or stale.
3. A few filename renames ( -> .md files)
4. Remove reference to google search box in the mailing list - couldnt find it?
5. Instead of talking about the age of the book - just give the publication date.
6. A few extra bash highlight-isms
Normally I would not batch so much into one commit - but these are all non-code impacting.
Jason Ackley [Mon, 9 Oct 2017 12:59:07 +0000 (07:59 -0500)]
Random adjustments and low-hanging fruit
Jason Ackley [Sat, 7 Oct 2017 16:43:40 +0000 (11:43 -0500)]
FreeADIUS -> FreeRADIUS :)
Jason Ackley [Sat, 7 Oct 2017 16:43:07 +0000 (11:43 -0500)]
Add Foundry-COA-Command (overlaps with existing)
Arran Cudbard-Bell [Thu, 5 Oct 2017 13:08:33 +0000 (21:08 +0800)]
Vendor not used
Arran Cudbard-Bell [Thu, 5 Oct 2017 12:35:27 +0000 (20:35 +0800)]
Move dict xlats into rlm_dict
Remove vendor specification from fr_dict_attr_by_oid as vendors are structural attributes now and it's not required
Arran Cudbard-Bell [Thu, 5 Oct 2017 08:03:18 +0000 (16:03 +0800)]
Revert "Fix a couple of log messages"
This reverts commit
eb5bce9fd8648e682ecd3cb761d152f2a90bad30 .
Arran Cudbard-Bell [Thu, 5 Oct 2017 02:12:00 +0000 (10:12 +0800)]
Fix a couple of log messages
Arran Cudbard-Bell [Wed, 4 Oct 2017 07:23:45 +0000 (14:23 +0700)]
Populate request packet timestamp
Arran Cudbard-Bell [Wed, 4 Oct 2017 02:24:26 +0000 (09:24 +0700)]
More cleanups in udp_request_free
Alan T. DeKok [Tue, 3 Oct 2017 20:10:03 +0000 (16:10 -0400)]
only call timer delete if we have a timer
Alan T. DeKok [Tue, 3 Oct 2017 20:09:48 +0000 (16:09 -0400)]
don't molest ev
Alan T. DeKok [Tue, 3 Oct 2017 18:50:51 +0000 (14:50 -0400)]
add time values to debug message
Alan T. DeKok [Tue, 3 Oct 2017 18:47:12 +0000 (14:47 -0400)]
set *ev->parent = NULL in the talloc destructor
so that the callers expectations are held true... that we can
just talloc_free() the pointer, and expect everything to be
cleaned up.
Alan T. DeKok [Tue, 3 Oct 2017 18:24:36 +0000 (14:24 -0400)]
print when retransmit timers hit, even if there's no connection
Alan T. DeKok [Tue, 3 Oct 2017 18:19:32 +0000 (14:19 -0400)]
assert that the parent is pointing to us
Alan T. DeKok [Tue, 3 Oct 2017 16:42:39 +0000 (12:42 -0400)]
move timer insert to udp function
Alan T. DeKok [Tue, 3 Oct 2017 16:26:31 +0000 (12:26 -0400)]
more debugging and "finished" flag
Alan T. DeKok [Tue, 3 Oct 2017 15:49:09 +0000 (11:49 -0400)]
enable RADIUS module by default
Arran Cudbard-Bell [Tue, 3 Oct 2017 15:53:48 +0000 (23:53 +0800)]
Restore previous state
Arran Cudbard-Bell [Tue, 3 Oct 2017 15:52:18 +0000 (23:52 +0800)]
Follow the normal state transition if we have a ->failed callback and it returns FR_CONNECTION_STATE_INIT
Alan T. DeKok [Tue, 3 Oct 2017 15:43:20 +0000 (11:43 -0400)]
remove it from the thread queue, too
Alan T. DeKok [Tue, 3 Oct 2017 15:37:11 +0000 (11:37 -0400)]
remove packet from c->queued on timeout or reply
Alan T. DeKok [Tue, 3 Oct 2017 15:29:08 +0000 (11:29 -0400)]
don't access u->rr if it doesn't exist
Alan T. DeKok [Tue, 3 Oct 2017 15:25:40 +0000 (11:25 -0400)]
print time after the timer has been initialized
Alan T. DeKok [Tue, 3 Oct 2017 15:24:13 +0000 (11:24 -0400)]
access u->timer directly
Alan T. DeKok [Tue, 3 Oct 2017 15:24:06 +0000 (11:24 -0400)]
notes for todo
Arran Cudbard-Bell [Tue, 3 Oct 2017 15:21:03 +0000 (23:21 +0800)]
Don't need this in _conn_failed as _conn_close is always called
Alan T. DeKok [Tue, 3 Oct 2017 15:12:10 +0000 (11:12 -0400)]
remove connection from list / heap
Alan T. DeKok [Tue, 3 Oct 2017 12:49:42 +0000 (08:49 -0400)]
don't use one-character variable names
or prefixes. or _p where it's not necessary
simplify some logic to make it clearer, and update comments
to describe what the code is doing
Alan T. DeKok [Tue, 3 Oct 2017 12:39:36 +0000 (08:39 -0400)]
formatting
so that it's readable in a terminal
Alan T. DeKok [Tue, 3 Oct 2017 12:38:53 +0000 (08:38 -0400)]
fix documentation
Alan T. DeKok [Mon, 2 Oct 2017 20:14:47 +0000 (16:14 -0400)]
more gluing worker into proto_detail
if "transport != work", then we load the worker, as the various
other modules are intended to use it, too
Alan T. DeKok [Mon, 2 Oct 2017 19:58:14 +0000 (15:58 -0400)]
more preparations for auto-create detail worker
Arran Cudbard-Bell [Tue, 3 Oct 2017 14:55:03 +0000 (22:55 +0800)]
Package proto_detail_work
Alan T. DeKok [Mon, 2 Oct 2017 19:45:46 +0000 (15:45 -0400)]
added proto_detail_file
and started on integrating it. But it looks like NOTE_EXTEND
for directories isn't supported on OSX. <sigh>
Alan T. DeKok [Mon, 2 Oct 2017 19:12:56 +0000 (15:12 -0400)]
NOTE_EXTEND can be applied to directories
Alan T. DeKok [Mon, 2 Oct 2017 19:10:30 +0000 (15:10 -0400)]
include type name in message
Alan T. DeKok [Mon, 2 Oct 2017 18:59:49 +0000 (14:59 -0400)]
instance isn't const
Alan T. DeKok [Mon, 2 Oct 2017 18:54:09 +0000 (14:54 -0400)]
add fr_schedule_directory_add()
Alan T. DeKok [Mon, 2 Oct 2017 18:44:36 +0000 (14:44 -0400)]
rename proto_detail_file to proto_detail_work
in preparation for new proto_detail_file
Alan T. DeKok [Mon, 2 Oct 2017 18:41:48 +0000 (14:41 -0400)]
move common "work" header to proto_detail header
Alan T. DeKok [Mon, 2 Oct 2017 18:12:50 +0000 (14:12 -0400)]
ifdef out unused function
Alan T. DeKok [Mon, 2 Oct 2017 17:50:41 +0000 (13:50 -0400)]
add support for unmounted file systems
Alan T. DeKok [Mon, 2 Oct 2017 17:38:21 +0000 (13:38 -0400)]
fix comments
Alan T. DeKok [Mon, 2 Oct 2017 17:33:52 +0000 (13:33 -0400)]
add "track_progress" configuration
Alan T. DeKok [Mon, 2 Oct 2017 17:31:06 +0000 (13:31 -0400)]
minor cleanups
Alan DeKok [Mon, 2 Oct 2017 17:56:04 +0000 (13:56 -0400)]
Merge pull request #2084 from herwinw/allow_expired_crl_docs
Added some docs for allow_expired_crl
Alan DeKok [Mon, 2 Oct 2017 17:55:48 +0000 (13:55 -0400)]
Merge pull request #2085 from herwinw/docs_2.1.10_and_later
Removed references to version 2.1.10 in the config docs
Herwin Weststrate [Mon, 2 Oct 2017 17:17:13 +0000 (19:17 +0200)]
Removed references to version 2.1.10 in the config docs
That version is years out of date, there's no added value in keeping
references to that version in the docs.
Herwin Weststrate [Mon, 2 Oct 2017 17:11:16 +0000 (19:11 +0200)]
Added some docs for allow_expired_crl
As mentioned on the mailing list today: omission might confuse people
Alan T. DeKok [Mon, 2 Oct 2017 16:31:38 +0000 (12:31 -0400)]
fix assertion for uninitialized variable
Alan T. DeKok [Mon, 2 Oct 2017 16:31:02 +0000 (12:31 -0400)]
GCC definitions for sanitize-address
Alan T. DeKok [Mon, 2 Oct 2017 15:27:09 +0000 (11:27 -0400)]
keep timers around even when removing packets from a connection
so that the timers keep running, and the packets are retransmitted
when the timers hit.
This shouldn't be an issue normally. If a new connection opens,
any pending t->queued are drained, and sent immediately. BUT
there may be some pending packets in the queue which didn't make
it to the connection. So we have to handle that case, too.
If there is no connection, any timed-out packets are sent only when
a connection is available. This means that the timers aren't
perfect in that case, but there's no perfect situation here.
Alan T. DeKok [Mon, 2 Oct 2017 15:14:00 +0000 (11:14 -0400)]
add thread to udp_request_t
Alan T. DeKok [Mon, 2 Oct 2017 15:08:16 +0000 (11:08 -0400)]
move retry into udp_request_t
so we can access it when there's no connection
Alan T. DeKok [Mon, 2 Oct 2017 14:57:41 +0000 (10:57 -0400)]
use talloc_ctx, as it doesn't need the actual ID struct
Alan T. DeKok [Mon, 2 Oct 2017 14:30:39 +0000 (10:30 -0400)]
clear timers and remove (now wrong) assert
Alan T. DeKok [Mon, 2 Oct 2017 13:13:25 +0000 (09:13 -0400)]
remove todo as it's done
Alan T. DeKok [Mon, 2 Oct 2017 13:11:11 +0000 (09:11 -0400)]
re-initialize the status check packet on connection failed
and remove any pending writes, events, etc.
Arran Cudbard-Bell [Mon, 2 Oct 2017 09:29:18 +0000 (17:29 +0800)]
Add address-sanitizer 'feature' to version.c
...so we can check if the code was really built with support
Alan T. DeKok [Sun, 1 Oct 2017 22:48:28 +0000 (18:48 -0400)]
doxygen
Alan T. DeKok [Sun, 1 Oct 2017 21:58:32 +0000 (17:58 -0400)]
move retransmission timers to rlm_radius_udp_t
so that they operate across connections
Alan T. DeKok [Sun, 1 Oct 2017 21:24:53 +0000 (17:24 -0400)]
doxygen
Alan T. DeKok [Sun, 1 Oct 2017 15:00:56 +0000 (11:00 -0400)]
typo
Alan T. DeKok [Sun, 1 Oct 2017 14:58:37 +0000 (10:58 -0400)]
set pending flag
Alan T. DeKok [Sun, 1 Oct 2017 14:37:13 +0000 (10:37 -0400)]
reset connection state to INIT on failure
and allow active -> init states for reconnect
Alan T. DeKok [Sun, 1 Oct 2017 14:16:45 +0000 (10:16 -0400)]
move packets back to thread queue, not connection queue
on connection failure. the thread queue is for packets
without IDs allocated. The connection queue is for packets
with IDs allocated
Alan T. DeKok [Sun, 1 Oct 2017 14:16:32 +0000 (10:16 -0400)]
stop if we're at end of buffer
Alan T. DeKok [Sun, 1 Oct 2017 14:16:02 +0000 (10:16 -0400)]
transition to FAILED on conneciton failure before reconnect
Alan T. DeKok [Sun, 1 Oct 2017 13:47:45 +0000 (09:47 -0400)]
set last_search = 0
Alan T. DeKok [Sat, 30 Sep 2017 12:44:06 +0000 (08:44 -0400)]
notes on dynamic clients
Alan T. DeKok [Fri, 29 Sep 2017 15:07:46 +0000 (11:07 -0400)]
detail file packets are lower priority than packets from the network
Arran Cudbard-Bell [Sun, 1 Oct 2017 13:27:33 +0000 (21:27 +0800)]
Move most of conn_error to a conn_failed function to reconnections are handled properly
The connection state machine calls conn_failed on signal_reconnect() and when there's issues opening the connection.
Arran Cudbard-Bell [Sun, 1 Oct 2017 13:26:13 +0000 (21:26 +0800)]
Rename CONN_UNUSED to CONN_INIT
Arran Cudbard-Bell [Sun, 1 Oct 2017 12:09:04 +0000 (20:09 +0800)]
Add missing get_type_abort in conn_free
Arran Cudbard-Bell [Sun, 1 Oct 2017 12:06:48 +0000 (20:06 +0800)]
Don't double free status_u
Already freed by talloc_free_children
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:56:31 +0000 (19:56 +0800)]
Use correct argument order for fr_pair_afrom_num
The VPs should always be added (not just at L_DBG_LVL_2)
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:53:36 +0000 (19:53 +0800)]
Name arguments in rdebug* declarations
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:43:15 +0000 (19:43 +0800)]
Callback functions have _<func>
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:42:43 +0000 (19:42 +0800)]
Break long lines
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:38:38 +0000 (19:38 +0800)]
Use correct doxygen
Arran Cudbard-Bell [Sun, 1 Oct 2017 10:21:43 +0000 (18:21 +0800)]
Make it clear the connection is now open
Arran Cudbard-Bell [Sun, 1 Oct 2017 10:21:12 +0000 (18:21 +0800)]
Don't leak memory on reconnection