]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agomisc.c: Fix redefinition of 'NSEC'
Jorge Pereira [Fri, 24 May 2019 02:36:38 +0000 (23:36 -0300)] 
misc.c: Fix redefinition of 'NSEC'

7 years agoSwitch to initialiser macros for fr_time_delta_to_timeval and fr_time_delta_to_timspec
Arran Cudbard-Bell [Fri, 24 May 2019 02:33:12 +0000 (22:33 -0400)] 
Switch to initialiser macros for fr_time_delta_to_timeval and fr_time_delta_to_timspec

7 years agoFix FR_TIME_DELTA_BOUND_CHECK to take NSEC, so we can easily pass other fr_time_delta...
Arran Cudbard-Bell [Fri, 24 May 2019 02:11:18 +0000 (22:11 -0400)] 
Fix FR_TIME_DELTA_BOUND_CHECK to take NSEC, so we can easily pass other fr_time_delta_t values in as the _bound

7 years agoFR_TYPE_TIME_DELTA case
Arran Cudbard-Bell [Thu, 23 May 2019 20:36:32 +0000 (16:36 -0400)] 
FR_TYPE_TIME_DELTA case

7 years agoFix type check for FR_TYPE_TIME_DELTA
Arran Cudbard-Bell [Thu, 23 May 2019 20:31:52 +0000 (16:31 -0400)] 
Fix type check for FR_TYPE_TIME_DELTA

7 years agocall realloc for strings so that they're the right size
Alan T. DeKok [Thu, 23 May 2019 19:32:09 +0000 (15:32 -0400)] 
call realloc for strings so that they're the right size

7 years agoenable data type tests
Alan T. DeKok [Thu, 23 May 2019 15:23:14 +0000 (11:23 -0400)] 
enable data type tests

7 years agomove 'rt' to fr_time_delta_t
Alan T. DeKok [Thu, 23 May 2019 15:20:20 +0000 (11:20 -0400)] 
move 'rt' to fr_time_delta_t

7 years agomove to using fr_time_delta_t
Alan T. DeKok [Thu, 23 May 2019 15:17:39 +0000 (11:17 -0400)] 
move to using fr_time_delta_t

7 years agomove to using fr_time_t
Alan T. DeKok [Thu, 23 May 2019 15:12:28 +0000 (11:12 -0400)] 
move to using fr_time_t

7 years agoMerge pull request #2711 from mattrose/checkout-url
Alan DeKok [Thu, 23 May 2019 14:38:23 +0000 (10:38 -0400)] 
Merge pull request #2711 from mattrose/checkout-url

get git url from job configuration

7 years agoget git url from job configuration 2711/head
Matt Rose [Fri, 17 May 2019 18:03:44 +0000 (14:03 -0400)] 
get git url from job configuration

7 years agodo print / parse / cmp for data type comparisons
Alan T. DeKok [Thu, 23 May 2019 13:26:57 +0000 (09:26 -0400)] 
do print / parse / cmp for data type comparisons

to be sure that when we parse something and then print it,
the thing we printed can get parsed to be the same thing

7 years agoremove reference to gettimeofday from comments
Alan T. DeKok [Thu, 23 May 2019 11:31:46 +0000 (07:31 -0400)] 
remove reference to gettimeofday from comments

7 years agoremove WIN32 wrapper for gettimeofday
Alan T. DeKok [Thu, 23 May 2019 11:30:37 +0000 (07:30 -0400)] 
remove WIN32 wrapper for gettimeofday

we haven't built on Windows in a long time

7 years agorlm_sigtran: Move to fr_time_t
Jorge Pereira [Thu, 23 May 2019 00:39:20 +0000 (21:39 -0300)] 
rlm_sigtran: Move to fr_time_t

7 years agosrc/modules: Move to fr_time_t
Jorge Pereira [Wed, 22 May 2019 22:54:24 +0000 (19:54 -0300)] 
src/modules: Move to fr_time_t

7 years agosrc/lib: Move to fr_time_t
Jorge Pereira [Wed, 22 May 2019 22:54:16 +0000 (19:54 -0300)] 
src/lib: Move to fr_time_t

7 years agosrc/tests: Move to fr_time_t
Jorge Pereira [Wed, 22 May 2019 22:53:43 +0000 (19:53 -0300)] 
src/tests: Move to fr_time_t

7 years agorlm_redis_ippol: Move to fr_time_t
Jorge Pereira [Wed, 22 May 2019 22:23:46 +0000 (19:23 -0300)] 
rlm_redis_ippol: Move to fr_time_t

7 years agotests/util/message_set_test.c: Move to fr_time_t
Jorge Pereira [Wed, 22 May 2019 22:21:53 +0000 (19:21 -0300)] 
tests/util/message_set_test.c: Move to fr_time_t

7 years agoldap/connection.c: Fix _ldap_connection_init()
Jorge Pereira [Thu, 23 May 2019 00:46:28 +0000 (21:46 -0300)] 
ldap/connection.c: Fix _ldap_connection_init()

7 years agoRevert "ldap/connection.c: Fix _ldap_connection_init()"
Arran Cudbard-Bell [Wed, 22 May 2019 23:56:47 +0000 (19:56 -0400)] 
Revert "ldap/connection.c: Fix _ldap_connection_init()"

7 years agoMerge pull request #2707 from jpereira/v4/fix22
Alan DeKok [Wed, 22 May 2019 21:48:23 +0000 (17:48 -0400)] 
Merge pull request #2707 from jpereira/v4/fix22

ldap/connection.c: Fix _ldap_connection_init()

7 years agoldap/connection.c: Fix _ldap_connection_init() 2707/head
Jorge Pereira [Wed, 22 May 2019 21:24:54 +0000 (18:24 -0300)] 
ldap/connection.c: Fix _ldap_connection_init()

7 years agoadd tests for data types
Alan T. DeKok [Wed, 22 May 2019 19:44:45 +0000 (15:44 -0400)] 
add tests for data types

7 years agodon't forget to convert seconds to nanoseconds
Alan T. DeKok [Wed, 22 May 2019 19:43:44 +0000 (15:43 -0400)] 
don't forget to convert seconds to nanoseconds

7 years agoallow parsing of fr_time_delta_t
Alan T. DeKok [Wed, 22 May 2019 19:25:33 +0000 (15:25 -0400)] 
allow parsing of fr_time_delta_t

7 years agoconvert rlm_ldap et al. to fr_time_delta_t
Alan T. DeKok [Wed, 22 May 2019 18:37:51 +0000 (14:37 -0400)] 
convert rlm_ldap et al. to fr_time_delta_t

7 years agomove to fr_time_delta_t
Alan T. DeKok [Wed, 22 May 2019 18:21:43 +0000 (14:21 -0400)] 
move to fr_time_delta_t

7 years agomove to TIME_DELTA
Alan T. DeKok [Wed, 22 May 2019 18:19:58 +0000 (14:19 -0400)] 
move to TIME_DELTA

7 years agoprint out scale based on time spec
Alan T. DeKok [Wed, 22 May 2019 18:07:17 +0000 (14:07 -0400)] 
print out scale based on time spec

for seconds, milliseconds, etc.

And don't print time qualififiers as "s" or "ms".  It will likely
end up breaking too many things

7 years agomove master.c timers to fr_time_delta_t
Alan T. DeKok [Wed, 22 May 2019 16:54:16 +0000 (12:54 -0400)] 
move master.c timers to fr_time_delta_t

7 years agomove remaining config items to fr_time_delay_t
Alan T. DeKok [Wed, 22 May 2019 16:38:25 +0000 (12:38 -0400)] 
move remaining config items to fr_time_delay_t

7 years agoconvert zombie_period to use fr_time_delta_t
Alan T. DeKok [Wed, 22 May 2019 16:34:10 +0000 (12:34 -0400)] 
convert zombie_period to use fr_time_delta_t

7 years agodoxygen
Alan T. DeKok [Wed, 22 May 2019 15:43:30 +0000 (11:43 -0400)] 
doxygen

7 years agoprint out "s" qualifier after time_delta
Alan T. DeKok [Wed, 22 May 2019 15:42:11 +0000 (11:42 -0400)] 
print out "s" qualifier after time_delta

and truncate the output so that we don't get trailing zeros

7 years agoprint canonical version of time_delta
Alan T. DeKok [Wed, 22 May 2019 15:41:16 +0000 (11:41 -0400)] 
print canonical version of time_delta

by using value_box functions.  We likely should convert all
of the "manually print values" debug output to use value_box,
which gives us a canonical version of the output

7 years agoallow for scaling in fr_time_delta_t using dst_enumv
Alan T. DeKok [Wed, 22 May 2019 15:17:08 +0000 (11:17 -0400)] 
allow for scaling in fr_time_delta_t using dst_enumv

we don't currently allow fr_time_delta_t in the dictionaries,
but once all of this is done, we should allow it.

7 years agoadd "hint" for scaling to delta_from_str
Alan T. DeKok [Wed, 22 May 2019 15:15:13 +0000 (11:15 -0400)] 
add "hint" for scaling to delta_from_str

and allow non-qualified numbers, which use "hint" as the scale

7 years agomove idle_timeout to fr_time_delta_t
Alan T. DeKok [Wed, 22 May 2019 14:59:06 +0000 (10:59 -0400)] 
move idle_timeout to fr_time_delta_t

7 years agoallow / parse FR_TYPE_TIME_DELTA in config files
Alan T. DeKok [Wed, 22 May 2019 14:58:29 +0000 (10:58 -0400)] 
allow / parse FR_TYPE_TIME_DELTA in config files

7 years agocast first to avoid potential overflow
Alan T. DeKok [Wed, 22 May 2019 14:58:03 +0000 (10:58 -0400)] 
cast first to avoid potential overflow

7 years agodoxygen
Alan T. DeKok [Wed, 22 May 2019 14:27:07 +0000 (10:27 -0400)] 
doxygen

7 years agocase to "int" AFTER divide by NSEC
Alan T. DeKok [Wed, 22 May 2019 14:25:46 +0000 (10:25 -0400)] 
case to "int" AFTER divide by NSEC

7 years agoparse '1s', too
Alan T. DeKok [Wed, 22 May 2019 15:07:30 +0000 (11:07 -0400)] 
parse '1s', too

7 years agoparse "1.1ms" etc. in fr_time_delta_t
Alan T. DeKok [Wed, 22 May 2019 13:42:31 +0000 (09:42 -0400)] 
parse "1.1ms" etc. in fr_time_delta_t

7 years agocomplain if there is garbage after the number
Alan T. DeKok [Wed, 22 May 2019 13:40:01 +0000 (09:40 -0400)] 
complain if there is garbage after the number

7 years agomake error messages clearer
Alan T. DeKok [Wed, 22 May 2019 13:25:29 +0000 (09:25 -0400)] 
make error messages clearer

while the number looks like a float, it's a timeval.  So the
error message should say that.

7 years agoadd FR_TYPE_TIME_DELTA
Alan T. DeKok [Wed, 22 May 2019 13:17:20 +0000 (09:17 -0400)] 
add FR_TYPE_TIME_DELTA

in preparation for moving CONF_PARSER stuff from timeval to time_delta

7 years agodisallow FT_TYPE_ABINARY in conf parser
Alan T. DeKok [Tue, 21 May 2019 17:32:31 +0000 (13:32 -0400)] 
disallow FT_TYPE_ABINARY in conf parser

there are unexplained build errors after the previous commit,
AND there is no reason to allow ABINARY in the config files.

Nothing in the config file parser encodes strings to ABINARY,
so the "builtin_choose_expr" macro would never do anything useful.

7 years agoremove multiple date data types
Alan T. DeKok [Tue, 21 May 2019 17:06:40 +0000 (13:06 -0400)] 
remove multiple date data types

no more date_milliseconds or date_microseconds or date_nanoseconds

7 years agofix typo
Alan T. DeKok [Tue, 21 May 2019 16:56:05 +0000 (12:56 -0400)] 
fix typo

7 years agopass pointer to fr_trie_lookup
Alan T. DeKok [Tue, 21 May 2019 15:30:27 +0000 (11:30 -0400)] 
pass pointer to fr_trie_lookup

7 years agoprint date precision, too
Alan T. DeKok [Tue, 21 May 2019 15:07:04 +0000 (11:07 -0400)] 
print date precision, too

7 years agoparse precision for attributes of type 'date'
Alan T. DeKok [Tue, 21 May 2019 14:58:05 +0000 (10:58 -0400)] 
parse precision for attributes of type 'date'

7 years agocheck before setting to NULL
Alan T. DeKok [Tue, 21 May 2019 14:56:43 +0000 (10:56 -0400)] 
check before setting to NULL

7 years agoadd trie for ipv4prefix / ipv6prefix
Alan T. DeKok [Tue, 21 May 2019 14:55:38 +0000 (10:55 -0400)] 
add trie for ipv4prefix / ipv6prefix

7 years agomove "key" to value_box
Alan T. DeKok [Tue, 21 May 2019 14:06:10 +0000 (10:06 -0400)] 
move "key" to value_box

and use prefix tries for data type ipv4prefix and ipv6prefix

7 years agoMerge pull request #2706 from jpereira/v4/method2
Alan DeKok [Tue, 21 May 2019 13:50:58 +0000 (09:50 -0400)] 
Merge pull request #2706 from jpereira/v4/method2

Fix the '$module.$method1.$method2' match. #270

7 years agoskip the parsed { token
Alan T. DeKok [Tue, 21 May 2019 13:50:12 +0000 (09:50 -0400)] 
skip the parsed { token

7 years agoFix the '$module.$method1.$method2' match. #270 2706/head
Jorge Pereira [Tue, 21 May 2019 04:34:43 +0000 (01:34 -0300)] 
Fix the '$module.$method1.$method2' match. #270

7 years agofix error message
Alan T. DeKok [Tue, 21 May 2019 13:23:01 +0000 (09:23 -0400)] 
fix error message

7 years agouse new name
Alan T. DeKok [Tue, 21 May 2019 12:13:28 +0000 (08:13 -0400)] 
use new name

7 years agoupdate CSV with examples and documentation
Alan T. DeKok [Tue, 21 May 2019 11:28:11 +0000 (07:28 -0400)] 
update CSV with examples and documentation

7 years agoMerge pull request #2705 from jpereira/v4/module1
Alan DeKok [Tue, 21 May 2019 02:14:20 +0000 (22:14 -0400)] 
Merge pull request #2705 from jpereira/v4/module1

Fix the '$module.$method1' match. #2702

7 years agouse correct version of time
Alan T. DeKok [Mon, 20 May 2019 22:18:15 +0000 (18:18 -0400)] 
use correct version of time

7 years agouse correct function
Alan T. DeKok [Mon, 20 May 2019 18:47:55 +0000 (14:47 -0400)] 
use correct function

7 years agomove idle_timeout to fr_time_t
Alan T. DeKok [Mon, 20 May 2019 18:45:41 +0000 (14:45 -0400)] 
move idle_timeout to fr_time_t

7 years agoconvert zombie_period to fr_time_delta_t
Alan T. DeKok [Mon, 20 May 2019 18:34:14 +0000 (14:34 -0400)] 
convert zombie_period to fr_time_delta_t

7 years agorevert last 3 commits in rlm_radius_udp
Alan T. DeKok [Mon, 20 May 2019 21:11:21 +0000 (17:11 -0400)] 
revert last 3 commits in rlm_radius_udp

in preparation for a more comprehensive set of patches

7 years agoRemove fr_event_timer_insert call from conn_timeout_init
Arran Cudbard-Bell [Sat, 18 May 2019 02:18:40 +0000 (22:18 -0400)] 
Remove fr_event_timer_insert call from conn_timeout_init

7 years agoRemove another call to fr_event_timer_insert in conn_transition
Arran Cudbard-Bell [Sat, 18 May 2019 02:12:52 +0000 (22:12 -0400)] 
Remove another call to fr_event_timer_insert in conn_transition

7 years agoRemove call to fr_event_timer_insert from conn_check_idle
Arran Cudbard-Bell [Sat, 18 May 2019 02:04:07 +0000 (22:04 -0400)] 
Remove call to fr_event_timer_insert from conn_check_idle

7 years agoFix the '$module.$method1' match. #2702 2705/head
Jorge Pereira [Mon, 20 May 2019 16:55:49 +0000 (13:55 -0300)] 
Fix the '$module.$method1' match. #2702

7 years agofree the "pending" list before freeing the "client"
Alan T. DeKok [Sat, 18 May 2019 21:01:56 +0000 (17:01 -0400)] 
free the "pending" list before freeing the "client"

because "pending" entries point to "track" structs, which are
parented from "client".  Without this explicit ordering, bad things
can happen

7 years agoMerge pull request #2703 from jpereira/v4/fix23
Alan DeKok [Sat, 18 May 2019 20:46:45 +0000 (16:46 -0400)] 
Merge pull request #2703 from jpereira/v4/fix23

Fix the header conflict

7 years agoadd more test methods
Alan T. DeKok [Sat, 18 May 2019 20:39:52 +0000 (16:39 -0400)] 
add more test methods

7 years agosystemd: Only the sd_notifyf() supports format-strings 2703/head
Jorge Pereira [Sat, 18 May 2019 20:23:26 +0000 (17:23 -0300)] 
systemd: Only the sd_notifyf() supports format-strings

7 years agosystemd: Fix the header conflict
Jorge Pereira [Sat, 18 May 2019 20:19:58 +0000 (17:19 -0300)] 
systemd: Fix the header conflict

7 years agomatch names correctly. Helps with #2702
Alan T. DeKok [Sat, 18 May 2019 19:51:50 +0000 (15:51 -0400)] 
match names correctly.  Helps with #2702

7 years agoAllow systemd to work with -f, maybe
Arran Cudbard-Bell [Sat, 18 May 2019 17:41:45 +0000 (13:41 -0400)] 
Allow systemd to work with -f, maybe

7 years agoMerge pull request #2701 from jpereira/v4/fix9
Alan DeKok [Sat, 18 May 2019 16:41:41 +0000 (12:41 -0400)] 
Merge pull request #2701 from jpereira/v4/fix9

Fix missed ;

7 years agoFix missed ; 2701/head
Jorge Pereira [Sat, 18 May 2019 16:38:01 +0000 (13:38 -0300)] 
Fix missed ;

7 years agoRemove fr_event_timer_insert call from worker_reset_time
Arran Cudbard-Bell [Sat, 18 May 2019 01:49:20 +0000 (21:49 -0400)] 
Remove fr_event_timer_insert call from worker_reset_time

7 years agoMore systemd ickiness
Arran Cudbard-Bell [Sat, 18 May 2019 15:34:35 +0000 (11:34 -0400)] 
More systemd ickiness

7 years agoUpdate Aruba dictionary (from ClearPass 6.8.0)
Alexis La Goutte [Sat, 18 May 2019 08:39:00 +0000 (08:39 +0000)] 
Update Aruba dictionary (from ClearPass 6.8.0)

7 years agoUpdate HP(E) dictionary (from ClearPass 6.8.0)
Alexis La Goutte [Sat, 18 May 2019 08:48:51 +0000 (08:48 +0000)] 
Update HP(E) dictionary (from ClearPass 6.8.0)

7 years agoEverybody hates gettimeofday(), Season 1
Jorge Pereira [Sat, 18 May 2019 01:00:21 +0000 (22:00 -0300)] 
Everybody hates gettimeofday(), Season 1

7 years agoUpdate *when, when calling fr_event_timer_run
Arran Cudbard-Bell [Sat, 18 May 2019 01:28:57 +0000 (21:28 -0400)] 
Update *when, when calling fr_event_timer_run

7 years agoFix fr_event_timer_cmp
Arran Cudbard-Bell [Sat, 18 May 2019 01:26:49 +0000 (21:26 -0400)] 
Fix fr_event_timer_cmp

7 years agoRemove gettimeofday from subrequest.c
Arran Cudbard-Bell [Sat, 18 May 2019 00:38:22 +0000 (20:38 -0400)] 
Remove gettimeofday from subrequest.c

7 years agoAdd "delta" type and comparator
Arran Cudbard-Bell [Sat, 18 May 2019 00:21:57 +0000 (20:21 -0400)] 
Add "delta" type and comparator

Internally we probably want FR_TYPE_TIME_DELTA and FR_TYPE_TIME too, with FR_TYPE_TIME_DELTA replacing FR_TYPE_TIMEVAL

7 years agoSimplify fr_time() CLOCK_MONOTONIC case
Arran Cudbard-Bell [Fri, 17 May 2019 23:33:49 +0000 (19:33 -0400)] 
Simplify fr_time() CLOCK_MONOTONIC case

7 years agoAdd separate function to allow periodic refreshing of realtime/monotime
Arran Cudbard-Bell [Fri, 17 May 2019 23:13:05 +0000 (19:13 -0400)] 
Add separate function to allow periodic refreshing of realtime/monotime

7 years agooops...
Arran Cudbard-Bell [Fri, 17 May 2019 23:09:40 +0000 (19:09 -0400)] 
oops...

7 years agoNot used
Arran Cudbard-Bell [Fri, 17 May 2019 21:47:56 +0000 (17:47 -0400)] 
Not used

7 years agoMake recvfromto output a fr_time_t
Arran Cudbard-Bell [Fri, 17 May 2019 21:21:06 +0000 (17:21 -0400)] 
Make recvfromto output a fr_time_t

7 years ago"When" is uninitialised in proto_detail_work
Arran Cudbard-Bell [Fri, 17 May 2019 21:11:19 +0000 (17:11 -0400)] 
"When" is uninitialised in proto_detail_work

7 years agoFix unused variable
Arran Cudbard-Bell [Fri, 17 May 2019 21:11:02 +0000 (17:11 -0400)] 
Fix unused variable