]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
5 years agoIA-PD-Prefix-IPv6-Prefix should be a prefix type
Arran Cudbard-Bell [Mon, 16 Nov 2020 17:04:14 +0000 (11:04 -0600)] 
IA-PD-Prefix-IPv6-Prefix should be a prefix type

The DHCPv6 standard changes the encoding based on whether it's a struct field or an option, which is why it was a fixed length v6 address before.  Unfortunately none of the modules in FreeRADIUS will work with a prefix value split into its components

5 years agoAdd vendor-specific equivalent to DHCP-Error-Message
Arran Cudbard-Bell [Mon, 16 Nov 2020 14:50:17 +0000 (08:50 -0600)] 
Add vendor-specific equivalent to DHCP-Error-Message

5 years agoAdd value for Do-Not-Respond
Arran Cudbard-Bell [Sun, 15 Nov 2020 18:06:19 +0000 (12:06 -0600)] 
Add value for Do-Not-Respond

5 years agoadd mode for printing out values
Arran Cudbard-Bell [Sun, 15 Nov 2020 17:58:59 +0000 (11:58 -0600)] 
add mode for printing out values

5 years agoGet a valid cpu/wallclock offset in the test utilities
Arran Cudbard-Bell [Sun, 15 Nov 2020 16:57:06 +0000 (10:57 -0600)] 
Get a valid cpu/wallclock offset in the test utilities

5 years agoAttributes contain unix time, not internal time
Arran Cudbard-Bell [Sun, 15 Nov 2020 16:49:00 +0000 (10:49 -0600)] 
Attributes contain unix time, not internal time

5 years agoRemove junk from tests
Arran Cudbard-Bell [Sun, 15 Nov 2020 16:13:58 +0000 (10:13 -0600)] 
Remove junk from tests

5 years agoStupid symbol auto-complete
Arran Cudbard-Bell [Sun, 15 Nov 2020 16:09:17 +0000 (10:09 -0600)] 
Stupid symbol auto-complete

5 years agoRevert "Hex doesn't need to extend"
Arran Cudbard-Bell [Sun, 15 Nov 2020 16:08:08 +0000 (10:08 -0600)] 
Revert "Hex doesn't need to extend"

This reverts commit ec61b5763e140c225223f199238d18dc8ff01c67.

5 years agoFix leaked marker
Arran Cudbard-Bell [Sun, 15 Nov 2020 16:02:29 +0000 (10:02 -0600)] 
Fix leaked marker

5 years agoSimplify relay encoder
Arran Cudbard-Bell [Sun, 15 Nov 2020 15:55:38 +0000 (09:55 -0600)] 
Simplify relay encoder

5 years agodbuff: Copy ahead/behind macros from sbuffs
Arran Cudbard-Bell [Sun, 15 Nov 2020 15:53:30 +0000 (09:53 -0600)] 
dbuff: Copy ahead/behind macros from sbuffs

5 years agoFixup fr_dhcpv6_encode to return the correct length
Arran Cudbard-Bell [Sun, 15 Nov 2020 15:53:15 +0000 (09:53 -0600)] 
Fixup fr_dhcpv6_encode to return the correct length

Fix magic numbers
Make code more concise

5 years agoHex doesn't need to extend
Arran Cudbard-Bell [Sun, 15 Nov 2020 15:43:27 +0000 (09:43 -0600)] 
Hex doesn't need to extend

5 years agoSplit out tests
Arran Cudbard-Bell [Sun, 15 Nov 2020 15:43:16 +0000 (09:43 -0600)] 
Split out tests

5 years agoAdd FR_VALUE_BOX_TO_NETWORK_RETURN
Arran Cudbard-Bell [Sun, 15 Nov 2020 15:42:05 +0000 (09:42 -0600)] 
Add FR_VALUE_BOX_TO_NETWORK_RETURN

5 years agoadd function to pretty-print DHCPv6 packets as hex
Alan T. DeKok [Sat, 14 Nov 2020 20:41:05 +0000 (15:41 -0500)] 
add function to pretty-print DHCPv6 packets as hex

5 years agoWe need <sys/wait.h> on Linux
Alan T. DeKok [Sat, 14 Nov 2020 19:50:06 +0000 (14:50 -0500)] 
We need <sys/wait.h> on Linux

5 years agotry to work around libkqueue issues on Linux
Alan T. DeKok [Sat, 14 Nov 2020 19:32:25 +0000 (14:32 -0500)] 
try to work around libkqueue issues on Linux

5 years agoJust return slen
Arran Cudbard-Bell [Sat, 14 Nov 2020 17:46:10 +0000 (11:46 -0600)] 
Just return slen

5 years agosimplify fr_value_box_to_network
Arran Cudbard-Bell [Sat, 14 Nov 2020 17:32:28 +0000 (11:32 -0600)] 
simplify fr_value_box_to_network

5 years agoupdate for whitespace changes
Alan T. DeKok [Sat, 14 Nov 2020 14:40:06 +0000 (09:40 -0500)] 
update for whitespace changes

5 years agothere is a trailing space after the length
Alan T. DeKok [Sat, 14 Nov 2020 13:49:52 +0000 (08:49 -0500)] 
there is a trailing space after the length

5 years agotypo
Alan T. DeKok [Sat, 14 Nov 2020 13:24:12 +0000 (08:24 -0500)] 
typo

5 years agoadd relay reply test
Alan T. DeKok [Sat, 14 Nov 2020 13:12:06 +0000 (08:12 -0500)] 
add relay reply test

5 years ago<sigh> Header fields are NOT OPTIONAL
Alan T. DeKok [Sat, 14 Nov 2020 13:08:16 +0000 (08:08 -0500)] 
<sigh> Header fields are NOT OPTIONAL

if there's no VP for the header field, we MUST encode SOMETHING.
Doing anything else is utterly ridiculous

5 years agoif no original, fall through to encoding the header from VPs
Alan T. DeKok [Sat, 14 Nov 2020 13:05:15 +0000 (08:05 -0500)] 
if no original, fall through to encoding the header from VPs

5 years agoadded debugging
Alan T. DeKok [Sat, 14 Nov 2020 13:04:19 +0000 (08:04 -0500)] 
added debugging

5 years agoProcess extents lifo style
Arran Cudbard-Bell [Sat, 14 Nov 2020 00:59:57 +0000 (18:59 -0600)] 
Process extents lifo style

5 years agoAllocate from the correct ctx in subrequest.c
Arran Cudbard-Bell [Sat, 14 Nov 2020 00:57:08 +0000 (18:57 -0600)] 
Allocate from the correct ctx in subrequest.c

5 years agoCI: Only trigger scheduled coverity scans from main repo (#3746)
Terry Burton [Sat, 14 Nov 2020 00:45:57 +0000 (00:45 +0000)] 
CI: Only trigger scheduled coverity scans from main repo (#3746)

5 years agoFormatting
Arran Cudbard-Bell [Sat, 14 Nov 2020 00:29:04 +0000 (18:29 -0600)] 
Formatting

5 years agoFix edge case in fr_dict_attr_common_parent
Arran Cudbard-Bell [Fri, 13 Nov 2020 23:38:01 +0000 (17:38 -0600)] 
Fix edge case in fr_dict_attr_common_parent

5 years agoFor proxied requests don't filer reply attributes by protocol
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:59:45 +0000 (16:59 -0600)] 
For proxied requests don't filer reply attributes by protocol

5 years agoOnly print attributes of... the actual protocol!
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:59:27 +0000 (16:59 -0600)] 
Only print attributes of... the actual protocol!

Do as the name suggests.  Only took three years...

5 years agoHave the DHCPv6 state machine the work of creating the canned reply
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:20:51 +0000 (16:20 -0600)] 
Have the DHCPv6 state machine the work of creating the canned reply

5 years agoFormatting
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:12:56 +0000 (16:12 -0600)] 
Formatting

5 years agoAllow limits to be set on the number of attributes copied
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:12:49 +0000 (16:12 -0600)] 
Allow limits to be set on the number of attributes copied

5 years agoSort
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:12:09 +0000 (16:12 -0600)] 
Sort

5 years agoAdd doxygen headers for request_data_add
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:12:01 +0000 (16:12 -0600)] 
Add doxygen headers for request_data_add

It's annoying to try and puzzle out what all the arguments mean.

5 years agoMore indenting
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:09:07 +0000 (16:09 -0600)] 
More indenting

5 years agoIndent pair lists by default
Arran Cudbard-Bell [Fri, 13 Nov 2020 22:06:59 +0000 (16:06 -0600)] 
Indent pair lists by default

5 years agoremove unused printf arg
Alan T. DeKok [Fri, 13 Nov 2020 21:00:56 +0000 (16:00 -0500)] 
remove unused printf arg

5 years agoFix fr_pair_list_log to print nested attributes with indentation
Arran Cudbard-Bell [Fri, 13 Nov 2020 19:39:28 +0000 (13:39 -0600)] 
Fix fr_pair_list_log to print nested attributes with indentation

5 years agomake the virtual servers call app_process bootstrap / instantiate
Alan T. DeKok [Fri, 13 Nov 2020 18:09:44 +0000 (13:09 -0500)] 
make the virtual servers call app_process bootstrap / instantiate

so that the proto_* modules don't need to do it.

and now that the app_process pointer is cached, each 'type = foo'
app_process handler is bootstrapped / instantiated only once,
instead of multiple times as before.

5 years agocache the entire dl_module_inst_t* for packet types
Alan T. DeKok [Fri, 13 Nov 2020 17:50:44 +0000 (12:50 -0500)] 
cache the entire dl_module_inst_t* for packet types

which means that we can not only get the process function by name
as before, but we also have full access to the data for calling
bootstrap, instantiate, etc.

5 years agorename variable
Alan T. DeKok [Fri, 13 Nov 2020 17:38:24 +0000 (12:38 -0500)] 
rename variable

5 years agomove proto name argument to be a little cleaner
Alan T. DeKok [Fri, 13 Nov 2020 16:07:46 +0000 (11:07 -0500)] 
move proto name argument to be a little cleaner

5 years agoremove code_allowed[code]. It's redundant with type_submodule_by_code
Alan T. DeKok [Fri, 13 Nov 2020 16:05:12 +0000 (11:05 -0500)] 
remove code_allowed[code].  It's redundant with type_submodule_by_code

5 years agomove settings of type_submodule_by_name to the type_parse function
Alan T. DeKok [Fri, 13 Nov 2020 16:01:19 +0000 (11:01 -0500)] 
move settings of type_submodule_by_name to the type_parse function

5 years agopull necessary work from fr_app_process_type_parse()
Alan T. DeKok [Thu, 12 Nov 2020 20:46:07 +0000 (15:46 -0500)] 
pull necessary work from fr_app_process_type_parse()

in preparation for drastically simplifying the booting process

5 years agoinitialize "code"
Alan T. DeKok [Thu, 12 Nov 2020 20:38:15 +0000 (15:38 -0500)] 
initialize "code"

5 years agowe don't use recv/send sections for control sockets
Alan T. DeKok [Thu, 12 Nov 2020 20:27:20 +0000 (15:27 -0500)] 
we don't use recv/send sections for control sockets

so might as well nuke them

5 years agoremove unused code
Alan T. DeKok [Thu, 12 Nov 2020 20:23:16 +0000 (15:23 -0500)] 
remove unused code

5 years agoremove unused files
Alan T. DeKok [Thu, 12 Nov 2020 20:17:25 +0000 (15:17 -0500)] 
remove unused files

5 years agoReturn the reply packet type
Arran Cudbard-Bell [Fri, 13 Nov 2020 18:39:10 +0000 (12:39 -0600)] 
Return the reply packet type

5 years agoHelps to set the extent
Arran Cudbard-Bell [Fri, 13 Nov 2020 18:13:46 +0000 (12:13 -0600)] 
Helps to set the extent

5 years agofr_pair_list_copy should append not prepend
Arran Cudbard-Bell [Fri, 13 Nov 2020 18:10:37 +0000 (12:10 -0600)] 
fr_pair_list_copy should append not prepend

5 years agoFixup = and += with nested LHS for callers of map_to_request
Arran Cudbard-Bell [Fri, 13 Nov 2020 17:44:05 +0000 (11:44 -0600)] 
Fixup = and += with nested LHS for callers of map_to_request

This gives at least partial nesting functionality for LDAP, SQL maps, and redis_ippool

Add support for nested attribute references for ':=', '=', '+='

5 years agoAdd tmpl_extents_debug
Arran Cudbard-Bell [Fri, 13 Nov 2020 16:15:01 +0000 (10:15 -0600)] 
Add tmpl_extents_debug

5 years agoForce cleanup
Arran Cudbard-Bell [Fri, 13 Nov 2020 15:31:41 +0000 (09:31 -0600)] 
Force cleanup

5 years agoTypo
Arran Cudbard-Bell [Fri, 13 Nov 2020 15:27:26 +0000 (09:27 -0600)] 
Typo

5 years agoHide the big callergraphs
Arran Cudbard-Bell [Fri, 13 Nov 2020 15:22:18 +0000 (09:22 -0600)] 
Hide the big callergraphs

5 years agoBetter group names
Arran Cudbard-Bell [Fri, 13 Nov 2020 00:22:30 +0000 (18:22 -0600)] 
Better group names

5 years agoTypo
Arran Cudbard-Bell [Fri, 13 Nov 2020 00:16:19 +0000 (18:16 -0600)] 
Typo

5 years agoShould be private
Arran Cudbard-Bell [Fri, 13 Nov 2020 00:09:35 +0000 (18:09 -0600)] 
Should be private

5 years agoDisable subgrouping. We control the grouping not doxygen.
Arran Cudbard-Bell [Fri, 13 Nov 2020 00:08:06 +0000 (18:08 -0600)] 
Disable subgrouping.  We control the grouping not doxygen.

5 years agoClearer docs for fr_dbuff_extend_t
Arran Cudbard-Bell [Thu, 12 Nov 2020 23:29:00 +0000 (17:29 -0600)] 
Clearer docs for fr_dbuff_extend_t

5 years agoClearer docs for _status in #fr_dbuff_extend_lowat
Arran Cudbard-Bell [Thu, 12 Nov 2020 23:25:54 +0000 (17:25 -0600)] 
Clearer docs for _status in #fr_dbuff_extend_lowat

5 years agoMore fixes
Arran Cudbard-Bell [Thu, 12 Nov 2020 23:17:01 +0000 (17:17 -0600)] 
More fixes

5 years agoRepetition
Arran Cudbard-Bell [Thu, 12 Nov 2020 22:46:02 +0000 (16:46 -0600)] 
Repetition

5 years agoMake the warnings around caching pointers clearer
Arran Cudbard-Bell [Thu, 12 Nov 2020 22:43:00 +0000 (16:43 -0600)] 
Make the warnings around caching pointers clearer

5 years agoShuffle the fr_dbuff_extend_t typedef around
Arran Cudbard-Bell [Thu, 12 Nov 2020 22:36:31 +0000 (16:36 -0600)] 
Shuffle the fr_dbuff_extend_t typedef around

5 years agoHelps to provide a valid example
Arran Cudbard-Bell [Thu, 12 Nov 2020 20:25:57 +0000 (14:25 -0600)] 
Helps to provide a valid example

5 years agoTypo
Arran Cudbard-Bell [Thu, 12 Nov 2020 20:23:55 +0000 (14:23 -0600)] 
Typo

5 years agoCI: No need to call apt-get update after add-apt-repository (#3745)
Terry Burton [Thu, 12 Nov 2020 20:21:11 +0000 (20:21 +0000)] 
CI: No need to call apt-get update after add-apt-repository (#3745)

5 years agoFix order
Arran Cudbard-Bell [Thu, 12 Nov 2020 20:20:37 +0000 (14:20 -0600)] 
Fix order

5 years agoMore consistent description of accessors
Arran Cudbard-Bell [Thu, 12 Nov 2020 20:14:11 +0000 (14:14 -0600)] 
More consistent description of accessors

5 years agoPosessive...
Arran Cudbard-Bell [Thu, 12 Nov 2020 20:09:54 +0000 (14:09 -0600)] 
Posessive...

5 years agoOmmit this
Arran Cudbard-Bell [Thu, 12 Nov 2020 20:08:05 +0000 (14:08 -0600)] 
Ommit this

5 years agoYet more tweaks
Arran Cudbard-Bell [Thu, 12 Nov 2020 20:04:46 +0000 (14:04 -0600)] 
Yet more tweaks

5 years agoUpdate target dir
Arran Cudbard-Bell [Thu, 12 Nov 2020 19:57:53 +0000 (13:57 -0600)] 
Update target dir

5 years agoMore tweaks
Arran Cudbard-Bell [Thu, 12 Nov 2020 19:54:40 +0000 (13:54 -0600)] 
More tweaks

5 years agoCI: Use pre-installed DBs since containers are slow to start (#3744)
Terry Burton [Thu, 12 Nov 2020 19:36:13 +0000 (19:36 +0000)] 
CI: Use pre-installed DBs since containers are slow to start (#3744)

5 years agoTypo
Arran Cudbard-Bell [Thu, 12 Nov 2020 19:31:28 +0000 (13:31 -0600)] 
Typo

5 years agoCleanup doxygen output for dbuff
Arran Cudbard-Bell [Thu, 12 Nov 2020 19:30:47 +0000 (13:30 -0600)] 
Cleanup doxygen output for dbuff

5 years agoMark things as private
Arran Cudbard-Bell [Thu, 12 Nov 2020 17:51:13 +0000 (11:51 -0600)] 
Mark things as private

5 years agoMore doxygen
Arran Cudbard-Bell [Thu, 12 Nov 2020 17:50:41 +0000 (11:50 -0600)] 
More doxygen

5 years agoDeploy documentation to github pages
Arran Cudbard-Bell [Thu, 12 Nov 2020 17:23:32 +0000 (11:23 -0600)] 
Deploy documentation to github pages

5 years agoMore doxygen
Arran Cudbard-Bell [Thu, 12 Nov 2020 16:52:09 +0000 (10:52 -0600)] 
More doxygen

5 years agoshut up static analyzer
Alan T. DeKok [Thu, 12 Nov 2020 16:38:08 +0000 (11:38 -0500)] 
shut up static analyzer

5 years agomake `type = ...` parsers use new function
Alan T. DeKok [Thu, 12 Nov 2020 16:36:30 +0000 (11:36 -0500)] 
make `type = ...` parsers use new function

5 years agoadd fr_app_process_type_parse()
Alan T. DeKok [Thu, 12 Nov 2020 16:33:03 +0000 (11:33 -0500)] 
add fr_app_process_type_parse()

to abstract all of the common parsing of `type = ...`

5 years agouse Packet-Type for names, not Message-Type
Alan T. DeKok [Thu, 12 Nov 2020 15:16:32 +0000 (10:16 -0500)] 
use Packet-Type for names, not Message-Type

5 years agogive a better error message than "internal sanity check failed"
Alan T. DeKok [Thu, 12 Nov 2020 15:06:50 +0000 (10:06 -0500)] 
give a better error message than "internal sanity check failed"

5 years agounknown attributes can still be created if the dictionaries are read-only
Alan T. DeKok [Thu, 12 Nov 2020 15:06:03 +0000 (10:06 -0500)] 
unknown attributes can still be created if the dictionaries are read-only

otherwise we're unable to create _any_ unknown attributes at run-time.

5 years agotypo
Alan T. DeKok [Thu, 12 Nov 2020 13:17:12 +0000 (08:17 -0500)] 
typo

5 years agoAlways initialise rcode
Arran Cudbard-Bell [Thu, 12 Nov 2020 01:55:06 +0000 (19:55 -0600)] 
Always initialise rcode

5 years agoFix yielding from eap_method_select
Arran Cudbard-Bell [Thu, 12 Nov 2020 01:39:47 +0000 (19:39 -0600)] 
Fix yielding from eap_method_select

5 years agoDoxygen
Arran Cudbard-Bell [Thu, 12 Nov 2020 01:29:41 +0000 (19:29 -0600)] 
Doxygen