]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agotrack active packets in a connection
Alan T. DeKok [Tue, 10 Oct 2017 18:43:12 +0000 (14:43 -0400)] 
track active packets in a connection

8 years agoadd explicit STATE to udp_request_t
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

8 years agore-initialize fields after re-open
Alan T. DeKok [Tue, 10 Oct 2017 15:26:54 +0000 (11:26 -0400)] 
re-initialize fields after re-open

8 years agodon't decrement num_requests on status_server
Alan T. DeKok [Tue, 10 Oct 2017 14:59:30 +0000 (10:59 -0400)] 
don't decrement num_requests on status_server

8 years agomore assertions and cleanups
Alan T. DeKok [Tue, 10 Oct 2017 13:33:08 +0000 (09:33 -0400)] 
more assertions and cleanups

8 years agoclean up more request stuff, and add more assertions
Alan T. DeKok [Tue, 10 Oct 2017 13:12:50 +0000 (09:12 -0400)] 
clean up more request stuff, and add more assertions

8 years agoTable used outside of when WITH_EVENT_DEBUG is defined now
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

8 years agoUse kevent_filter_table
Arran Cudbard-Bell [Tue, 10 Oct 2017 11:39:41 +0000 (17:39 +0600)] 
Use kevent_filter_table

8 years agoifdef out array for EVENT_DEBUG
Alan T. DeKok [Tue, 10 Oct 2017 11:13:48 +0000 (07:13 -0400)] 
ifdef out array for EVENT_DEBUG

8 years ago%f is double, so an explicit conversion is useful
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

8 years agoEVFILT_EXCEPT not defined by libkqueue
Arran Cudbard-Bell [Tue, 10 Oct 2017 10:51:15 +0000 (16:51 +0600)] 
EVFILT_EXCEPT not defined by libkqueue

8 years agoadd extra logging to event.c
Arran Cudbard-Bell [Tue, 10 Oct 2017 10:34:10 +0000 (16:34 +0600)] 
add extra logging to event.c

8 years agoMerge pull request #2089 from alanbuxey/patch-4
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)

8 years agoMerge pull request #2088 from jsynack/oct7updates
Arran Cudbard-Bell [Tue, 10 Oct 2017 03:28:16 +0000 (11:28 +0800)] 
Merge pull request #2088 from jsynack/oct7updates

Misc updates

8 years agoDon't close out the connection just signal it to reconnect if we can insert the FD
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.

8 years agoupdate text (typo and grammar) 2089/head
Alan Buxey [Mon, 9 Oct 2017 14:03:02 +0000 (15:03 +0100)] 
update text (typo and grammar)

8 years agoMisc Non-code impacting changes to docs 2088/head
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.

8 years agoRandom adjustments and low-hanging fruit
Jason Ackley [Mon, 9 Oct 2017 12:59:07 +0000 (07:59 -0500)] 
Random adjustments and low-hanging fruit

8 years agoFreeADIUS -> FreeRADIUS :)
Jason Ackley [Sat, 7 Oct 2017 16:43:40 +0000 (11:43 -0500)] 
FreeADIUS -> FreeRADIUS :)

8 years agoAdd Foundry-COA-Command (overlaps with existing)
Jason Ackley [Sat, 7 Oct 2017 16:43:07 +0000 (11:43 -0500)] 
Add Foundry-COA-Command (overlaps with existing)

8 years agoVendor not used
Arran Cudbard-Bell [Thu, 5 Oct 2017 13:08:33 +0000 (21:08 +0800)] 
Vendor not used

8 years agoMove dict xlats into rlm_dict
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

8 years agoRevert "Fix a couple of log messages"
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.

8 years agoFix a couple of log messages
Arran Cudbard-Bell [Thu, 5 Oct 2017 02:12:00 +0000 (10:12 +0800)] 
Fix a couple of log messages

8 years agoPopulate request packet timestamp
Arran Cudbard-Bell [Wed, 4 Oct 2017 07:23:45 +0000 (14:23 +0700)] 
Populate request packet timestamp

8 years agoMore cleanups in udp_request_free
Arran Cudbard-Bell [Wed, 4 Oct 2017 02:24:26 +0000 (09:24 +0700)] 
More cleanups in udp_request_free

8 years agoonly call timer delete if we have a timer
Alan T. DeKok [Tue, 3 Oct 2017 20:10:03 +0000 (16:10 -0400)] 
only call timer delete if we have a timer

8 years agodon't molest ev
Alan T. DeKok [Tue, 3 Oct 2017 20:09:48 +0000 (16:09 -0400)] 
don't molest ev

8 years agoadd time values to debug message
Alan T. DeKok [Tue, 3 Oct 2017 18:50:51 +0000 (14:50 -0400)] 
add time values to debug message

8 years agoset *ev->parent = NULL in the talloc destructor
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.

8 years agoprint when retransmit timers hit, even if there's no connection
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

8 years agoassert that the parent is pointing to us
Alan T. DeKok [Tue, 3 Oct 2017 18:19:32 +0000 (14:19 -0400)] 
assert that the parent is pointing to us

8 years agomove timer insert to udp function
Alan T. DeKok [Tue, 3 Oct 2017 16:42:39 +0000 (12:42 -0400)] 
move timer insert to udp function

8 years agomore debugging and "finished" flag
Alan T. DeKok [Tue, 3 Oct 2017 16:26:31 +0000 (12:26 -0400)] 
more debugging and "finished" flag

8 years agoenable RADIUS module by default
Alan T. DeKok [Tue, 3 Oct 2017 15:49:09 +0000 (11:49 -0400)] 
enable RADIUS module by default

8 years agoRestore previous state
Arran Cudbard-Bell [Tue, 3 Oct 2017 15:53:48 +0000 (23:53 +0800)] 
Restore previous state

8 years agoFollow the normal state transition if we have a ->failed callback and it returns...
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

8 years agoremove it from the thread queue, too
Alan T. DeKok [Tue, 3 Oct 2017 15:43:20 +0000 (11:43 -0400)] 
remove it from the thread queue, too

8 years agoremove packet from c->queued on timeout or reply
Alan T. DeKok [Tue, 3 Oct 2017 15:37:11 +0000 (11:37 -0400)] 
remove packet from c->queued on timeout or reply

8 years agodon't access u->rr if it doesn't exist
Alan T. DeKok [Tue, 3 Oct 2017 15:29:08 +0000 (11:29 -0400)] 
don't access u->rr if it doesn't exist

8 years agoprint time after the timer has been initialized
Alan T. DeKok [Tue, 3 Oct 2017 15:25:40 +0000 (11:25 -0400)] 
print time after the timer has been initialized

8 years agoaccess u->timer directly
Alan T. DeKok [Tue, 3 Oct 2017 15:24:13 +0000 (11:24 -0400)] 
access u->timer directly

8 years agonotes for todo
Alan T. DeKok [Tue, 3 Oct 2017 15:24:06 +0000 (11:24 -0400)] 
notes for todo

8 years agoDon't need this in _conn_failed as _conn_close is always called
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

8 years agoremove connection from list / heap
Alan T. DeKok [Tue, 3 Oct 2017 15:12:10 +0000 (11:12 -0400)] 
remove connection from list / heap

8 years agodon't use one-character variable names
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

8 years agoformatting
Alan T. DeKok [Tue, 3 Oct 2017 12:39:36 +0000 (08:39 -0400)] 
formatting

so that it's readable in a terminal

8 years agofix documentation
Alan T. DeKok [Tue, 3 Oct 2017 12:38:53 +0000 (08:38 -0400)] 
fix documentation

8 years agomore gluing worker into proto_detail
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

8 years agomore preparations for auto-create detail worker
Alan T. DeKok [Mon, 2 Oct 2017 19:58:14 +0000 (15:58 -0400)] 
more preparations for auto-create detail worker

8 years agoPackage proto_detail_work
Arran Cudbard-Bell [Tue, 3 Oct 2017 14:55:03 +0000 (22:55 +0800)] 
Package proto_detail_work

8 years agoadded proto_detail_file
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>

8 years agoNOTE_EXTEND can be applied to directories
Alan T. DeKok [Mon, 2 Oct 2017 19:12:56 +0000 (15:12 -0400)] 
NOTE_EXTEND can be applied to directories

8 years agoinclude type name in message
Alan T. DeKok [Mon, 2 Oct 2017 19:10:30 +0000 (15:10 -0400)] 
include type name in message

8 years agoinstance isn't const
Alan T. DeKok [Mon, 2 Oct 2017 18:59:49 +0000 (14:59 -0400)] 
instance isn't const

8 years agoadd fr_schedule_directory_add()
Alan T. DeKok [Mon, 2 Oct 2017 18:54:09 +0000 (14:54 -0400)] 
add fr_schedule_directory_add()

8 years agorename proto_detail_file to proto_detail_work
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

8 years agomove common "work" header to proto_detail header
Alan T. DeKok [Mon, 2 Oct 2017 18:41:48 +0000 (14:41 -0400)] 
move common "work" header to proto_detail header

8 years agoifdef out unused function
Alan T. DeKok [Mon, 2 Oct 2017 18:12:50 +0000 (14:12 -0400)] 
ifdef out unused function

8 years agoadd support for unmounted file systems
Alan T. DeKok [Mon, 2 Oct 2017 17:50:41 +0000 (13:50 -0400)] 
add support for unmounted file systems

8 years agofix comments
Alan T. DeKok [Mon, 2 Oct 2017 17:38:21 +0000 (13:38 -0400)] 
fix comments

8 years agoadd "track_progress" configuration
Alan T. DeKok [Mon, 2 Oct 2017 17:33:52 +0000 (13:33 -0400)] 
add "track_progress" configuration

8 years agominor cleanups
Alan T. DeKok [Mon, 2 Oct 2017 17:31:06 +0000 (13:31 -0400)] 
minor cleanups

8 years agoMerge pull request #2084 from herwinw/allow_expired_crl_docs
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

8 years agoMerge pull request #2085 from herwinw/docs_2.1.10_and_later
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

8 years agoRemoved references to version 2.1.10 in the config docs 2085/head
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.

8 years agoAdded some docs for allow_expired_crl 2084/head
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

8 years agofix assertion for uninitialized variable
Alan T. DeKok [Mon, 2 Oct 2017 16:31:38 +0000 (12:31 -0400)] 
fix assertion for uninitialized variable

8 years agoGCC definitions for sanitize-address
Alan T. DeKok [Mon, 2 Oct 2017 16:31:02 +0000 (12:31 -0400)] 
GCC definitions for sanitize-address

8 years agokeep timers around even when removing packets from a connection
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.

8 years agoadd thread to udp_request_t
Alan T. DeKok [Mon, 2 Oct 2017 15:14:00 +0000 (11:14 -0400)] 
add thread to udp_request_t

8 years agomove retry into 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

8 years agouse talloc_ctx, as it doesn't need the actual ID struct
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

8 years agoclear timers and remove (now wrong) assert
Alan T. DeKok [Mon, 2 Oct 2017 14:30:39 +0000 (10:30 -0400)] 
clear timers and remove (now wrong) assert

8 years agoremove todo as it's done
Alan T. DeKok [Mon, 2 Oct 2017 13:13:25 +0000 (09:13 -0400)] 
remove todo as it's done

8 years agore-initialize the status check packet on connection failed
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.

8 years agoAdd address-sanitizer 'feature' to version.c
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

8 years agodoxygen
Alan T. DeKok [Sun, 1 Oct 2017 22:48:28 +0000 (18:48 -0400)] 
doxygen

8 years agomove retransmission timers to rlm_radius_udp_t
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

8 years agodoxygen
Alan T. DeKok [Sun, 1 Oct 2017 21:24:53 +0000 (17:24 -0400)] 
doxygen

8 years agotypo
Alan T. DeKok [Sun, 1 Oct 2017 15:00:56 +0000 (11:00 -0400)] 
typo

8 years agoset pending flag
Alan T. DeKok [Sun, 1 Oct 2017 14:58:37 +0000 (10:58 -0400)] 
set pending flag

8 years agoreset connection state to INIT on failure
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

8 years agomove packets back to thread queue, not connection queue
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

8 years agostop if we're at end of buffer
Alan T. DeKok [Sun, 1 Oct 2017 14:16:32 +0000 (10:16 -0400)] 
stop if we're at end of buffer

8 years agotransition to FAILED on conneciton failure before reconnect
Alan T. DeKok [Sun, 1 Oct 2017 14:16:02 +0000 (10:16 -0400)] 
transition to FAILED on conneciton failure before reconnect

8 years agoset last_search = 0
Alan T. DeKok [Sun, 1 Oct 2017 13:47:45 +0000 (09:47 -0400)] 
set last_search = 0

8 years agonotes on dynamic clients
Alan T. DeKok [Sat, 30 Sep 2017 12:44:06 +0000 (08:44 -0400)] 
notes on dynamic clients

8 years agodetail file packets are lower priority than packets from the network
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

8 years agoMove most of conn_error to a conn_failed function to reconnections are handled properly
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.

8 years agoRename CONN_UNUSED to CONN_INIT
Arran Cudbard-Bell [Sun, 1 Oct 2017 13:26:13 +0000 (21:26 +0800)] 
Rename CONN_UNUSED to CONN_INIT

8 years agoAdd missing get_type_abort in conn_free
Arran Cudbard-Bell [Sun, 1 Oct 2017 12:09:04 +0000 (20:09 +0800)] 
Add missing get_type_abort in conn_free

8 years agoDon't double free status_u
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

8 years agoUse correct argument order for fr_pair_afrom_num
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)

8 years agoName arguments in rdebug* declarations
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:53:36 +0000 (19:53 +0800)] 
Name arguments in rdebug* declarations

8 years agoCallback functions have _<func>
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:43:15 +0000 (19:43 +0800)] 
Callback functions have _<func>

8 years agoBreak long lines
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:42:43 +0000 (19:42 +0800)] 
Break long lines

8 years agoUse correct doxygen
Arran Cudbard-Bell [Sun, 1 Oct 2017 11:38:38 +0000 (19:38 +0800)] 
Use correct doxygen

8 years agoMake it clear the connection is now open
Arran Cudbard-Bell [Sun, 1 Oct 2017 10:21:43 +0000 (18:21 +0800)] 
Make it clear the connection is now open

8 years agoDon't leak memory on reconnection
Arran Cudbard-Bell [Sun, 1 Oct 2017 10:21:12 +0000 (18:21 +0800)] 
Don't leak memory on reconnection