]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agoRemove dots in DHCPv4 dictionary
Arran Cudbard-Bell [Thu, 21 Mar 2019 14:26:32 +0000 (21:26 +0700)] 
Remove dots in DHCPv4 dictionary

7 years agoAdd separate OID validation function
Arran Cudbard-Bell [Thu, 21 Mar 2019 14:26:13 +0000 (21:26 +0700)] 
Add separate OID validation function

7 years agoInclude internal header file in proto_dhcpv4_udp
Arran Cudbard-Bell [Thu, 21 Mar 2019 11:38:02 +0000 (18:38 +0700)] 
Include internal header file in proto_dhcpv4_udp

7 years agoadd more tests from SQL
Alan T. DeKok [Wed, 20 Mar 2019 14:31:27 +0000 (10:31 -0400)] 
add more tests from SQL

7 years agofix argument order
Alan T. DeKok [Wed, 20 Mar 2019 14:30:52 +0000 (10:30 -0400)] 
fix argument order

7 years agotypo and more debugging
Alan T. DeKok [Wed, 20 Mar 2019 14:30:41 +0000 (10:30 -0400)] 
typo and more debugging

7 years agos/Msg-Type/Packet-Type/ for DHCPv6
Arran Cudbard-Bell [Thu, 21 Mar 2019 10:31:52 +0000 (17:31 +0700)] 
s/Msg-Type/Packet-Type/ for DHCPv6

7 years agoMove the internal DHCPv4 options into a separate file
Arran Cudbard-Bell [Thu, 21 Mar 2019 10:30:12 +0000 (17:30 +0700)] 
Move the internal DHCPv4 options into a separate file

7 years agoSplit DHCPv6 options definitions into different files matching their RFC names
Arran Cudbard-Bell [Thu, 21 Mar 2019 10:29:50 +0000 (17:29 +0700)] 
Split DHCPv6 options definitions into different files matching their RFC names

Remove DHCPv6 prefix from DHCPv6 options.  We don't use RADIUS-User-Name.

The same thing should be done for the rest of the protocols, feel free reader of this commit message...

7 years agoFix example detail server config
Arran Cudbard-Bell [Thu, 21 Mar 2019 09:06:13 +0000 (16:06 +0700)] 
Fix example detail server config

7 years agoAvoid spurious output from which when we don't have docker or pandoc
Arran Cudbard-Bell [Thu, 21 Mar 2019 08:29:29 +0000 (15:29 +0700)] 
Avoid spurious output from which when we don't have docker or pandoc

7 years agoUse separate lua FFI logging functions
Arran Cudbard-Bell [Wed, 20 Mar 2019 16:14:18 +0000 (23:14 +0700)] 
Use separate lua FFI logging functions

7 years agoMinor cleanups
Arran Cudbard-Bell [Wed, 20 Mar 2019 16:13:18 +0000 (23:13 +0700)] 
Minor cleanups

7 years agoRemove support for proxying
Arran Cudbard-Bell [Wed, 20 Mar 2019 16:13:03 +0000 (23:13 +0700)] 
Remove support for proxying

7 years agorlm_lua: Test that pass should be 'ok'
Jorge Pereira [Mon, 18 Mar 2019 22:08:56 +0000 (19:08 -0300)] 
rlm_lua: Test that pass should be 'ok'

7 years agorlm_lua: Fix the FFI & fr_log() bind.
Jorge Pereira [Mon, 18 Mar 2019 17:20:08 +0000 (14:20 -0300)] 
rlm_lua: Fix the FFI & fr_log() bind.

* Add extra Lua test validating the 'fr.log.$method()'

7 years agorlm_lua: The table 'fr.log.{}' should be read-only
Jorge Pereira [Sat, 16 Mar 2019 14:46:02 +0000 (11:46 -0300)] 
rlm_lua: The table 'fr.log.{}' should be read-only

7 years agorlm_lua: Update/Add unit tests
Jorge Pereira [Fri, 15 Mar 2019 21:03:30 +0000 (18:03 -0300)] 
rlm_lua: Update/Add unit tests

7 years agorlm_lua: Moving to single table 'fr.{}'
Jorge Pereira [Fri, 15 Mar 2019 21:03:07 +0000 (18:03 -0300)] 
rlm_lua: Moving to single table 'fr.{}'

7 years agoDoxygen
Arran Cudbard-Bell [Wed, 20 Mar 2019 15:00:28 +0000 (22:00 +0700)] 
Doxygen

7 years agoFix argument order
Arran Cudbard-Bell [Wed, 20 Mar 2019 14:59:00 +0000 (21:59 +0700)] 
Fix argument order

7 years agoUnused
Arran Cudbard-Bell [Wed, 20 Mar 2019 14:17:25 +0000 (21:17 +0700)] 
Unused

7 years agoFinish functionality in "sub" xlat
Arran Cudbard-Bell [Wed, 20 Mar 2019 14:12:53 +0000 (21:12 +0700)] 
Finish functionality in "sub" xlat

This now provides some functionality even if we don't have libpcre2

7 years agoFix various talloc functions and discovered parenting issues
Arran Cudbard-Bell [Wed, 20 Mar 2019 14:12:21 +0000 (21:12 +0700)] 
Fix various talloc functions and discovered parenting issues

7 years agowhoops... use &
Alan T. DeKok [Wed, 20 Mar 2019 13:11:59 +0000 (09:11 -0400)] 
whoops... use &

7 years agouse names instead of hard-coded values
Alan T. DeKok [Wed, 20 Mar 2019 12:14:49 +0000 (08:14 -0400)] 
use names instead of hard-coded values

7 years agoadd "original" to proto_dhcpv4_encode()
Alan T. DeKok [Wed, 20 Mar 2019 12:01:26 +0000 (08:01 -0400)] 
add "original" to proto_dhcpv4_encode()

and then use it to set giaddr, if it wasn't already set
along with other fields such as hwtype, hwlen, hops, and chaddr

7 years agouse "Sending" instead of "Sent"
Alan T. DeKok [Wed, 20 Mar 2019 11:43:04 +0000 (07:43 -0400)] 
use "Sending" instead of "Sent"

as the packet is sent after the debug has been printed

7 years agoUndo the printing changes
Arran Cudbard-Bell [Wed, 20 Mar 2019 09:14:39 +0000 (16:14 +0700)] 
Undo the printing changes

Can't reproduce the issue locally with a Linux VM and GCC so
can't debug it.

7 years agoas a trial, don't run xlat-delay
Alan T. DeKok [Tue, 19 Mar 2019 19:16:35 +0000 (15:16 -0400)] 
as a trial, don't run xlat-delay

it seems to pass fine locally, but dies in travis.  Maybe it's
a travis issue, or maybe it's a test issue.  Let's see.

7 years agoadded more debugging and sanity checks
Alan T. DeKok [Tue, 19 Mar 2019 17:31:22 +0000 (13:31 -0400)] 
added more debugging and sanity checks

7 years agoadded fr_trie_check() routine
Alan T. DeKok [Tue, 19 Mar 2019 17:29:23 +0000 (13:29 -0400)] 
added fr_trie_check() routine

which is called after insert, to see if the key we inserted
can be found in the newly-updated trie

7 years agosimplify lcp
Alan T. DeKok [Tue, 19 Mar 2019 17:21:58 +0000 (13:21 -0400)] 
simplify lcp

which is much better than the previous 3 versions.

7 years agoEnable sub func even if we don't have libpcre2
Arran Cudbard-Bell [Tue, 19 Mar 2019 16:30:37 +0000 (23:30 +0700)] 
Enable sub func even if we don't have libpcre2

7 years agoWill finish the non-regex substitution mode later
Arran Cudbard-Bell [Tue, 19 Mar 2019 16:09:01 +0000 (23:09 +0700)] 
Will finish the non-regex substitution mode later

7 years ago...and the rest
Arran Cudbard-Bell [Tue, 19 Mar 2019 15:45:44 +0000 (22:45 +0700)] 
...and the rest

7 years agoWhich to strlen until it passes...
Arran Cudbard-Bell [Tue, 19 Mar 2019 15:21:46 +0000 (22:21 +0700)] 
Which to strlen until it passes...

7 years agoApparently not talloced...
Arran Cudbard-Bell [Tue, 19 Mar 2019 14:14:31 +0000 (21:14 +0700)] 
Apparently not talloced...

7 years agoPrint more things using boxes so we get special chars escaped properly
Arran Cudbard-Bell [Tue, 19 Mar 2019 13:11:33 +0000 (20:11 +0700)] 
Print more things using boxes so we get special chars escaped properly

7 years agofix "install include" file rules
Alan T. DeKok [Tue, 19 Mar 2019 12:34:04 +0000 (08:34 -0400)] 
fix "install include" file rules

7 years agoprint out more of the path name of what we're installing
Alan T. DeKok [Tue, 19 Mar 2019 12:33:39 +0000 (08:33 -0400)] 
print out more of the path name of what we're installing

7 years agoadd missing field
Alan T. DeKok [Tue, 19 Mar 2019 11:40:35 +0000 (07:40 -0400)] 
add missing field

7 years agoAdd 'sub' xlat
Arran Cudbard-Bell [Tue, 19 Mar 2019 00:37:19 +0000 (08:37 +0800)] 
Add 'sub' xlat

7 years agoAdd wrapper for pcre2_substitute
Arran Cudbard-Bell [Tue, 19 Mar 2019 00:37:03 +0000 (08:37 +0800)] 
Add wrapper for pcre2_substitute

7 years agofix install paths for include files
Alan T. DeKok [Tue, 19 Mar 2019 02:12:02 +0000 (22:12 -0400)] 
fix install paths for include files

libraries install include/LIB/base.h
protocols install include/PROTO/PROTO.h

7 years agofix GNU Make stupidities
Alan T. DeKok [Tue, 19 Mar 2019 01:55:23 +0000 (21:55 -0400)] 
fix GNU Make stupidities

The behavior has changed from earlier versions, so we now
have to copy files over manually.

And list the full directory in rules, insteadof $(OUTPUT)

7 years agodon't put things into the wrong directory
Alan T. DeKok [Tue, 19 Mar 2019 01:40:37 +0000 (21:40 -0400)] 
don't put things into the wrong directory

7 years agocast to int to quiet the compiler
Alan T. DeKok [Tue, 19 Mar 2019 01:23:06 +0000 (21:23 -0400)] 
cast to int to quiet the compiler

we still keep the check, on the odd chance there's a memory issue

7 years agoreconstruct the key after split
Alan T. DeKok [Mon, 18 Mar 2019 22:26:48 +0000 (18:26 -0400)] 
reconstruct the key after split

for testing purposes

7 years agofix write_chunk() some more
Alan T. DeKok [Mon, 18 Mar 2019 22:24:40 +0000 (18:24 -0400)] 
fix write_chunk() some more

so that it takes care of jumping ahead in the key, when depth > 7

and fix the callers so that we don't double-add "depth"

7 years agospecial-case 1-bit reads and writes
Alan T. DeKok [Sun, 17 Mar 2019 22:55:50 +0000 (18:55 -0400)] 
special-case 1-bit reads and writes

7 years agoadded WITH_TRIE_VERIFY flag, so that we can do better verification
Alan T. DeKok [Sun, 17 Mar 2019 22:25:05 +0000 (18:25 -0400)] 
added WITH_TRIE_VERIFY flag, so that we can do better verification

7 years agomove "link protocols" rules to src/lib
Alan T. DeKok [Tue, 19 Mar 2019 01:16:36 +0000 (21:16 -0400)] 
move "link protocols" rules to src/lib

as the protocol headers are now includes in src/util/base.h

7 years agonope.
Alan T. DeKok [Sun, 17 Mar 2019 21:51:08 +0000 (17:51 -0400)] 
nope.

SQL tests which pass locally still fail in travis.

7 years agodon't redefine things
Alan T. DeKok [Sun, 17 Mar 2019 20:52:26 +0000 (16:52 -0400)] 
don't redefine things

7 years agoenable path compression, and try to use 16 bits for paths
Alan T. DeKok [Sun, 17 Mar 2019 19:50:31 +0000 (15:50 -0400)] 
enable path compression, and try to use 16 bits for paths

now that it's fully tested and verified, it should work.

7 years agoprint out the nodes as we add them
Alan T. DeKok [Sun, 17 Mar 2019 19:49:13 +0000 (15:49 -0400)] 
print out the nodes as we add them

7 years agoadd some VERIFY for testing
Alan T. DeKok [Sun, 17 Mar 2019 16:22:54 +0000 (12:22 -0400)] 
add some VERIFY for testing

7 years agoset child ptr <sigh>
Alan T. DeKok [Sun, 17 Mar 2019 16:22:00 +0000 (12:22 -0400)] 
set child ptr <sigh>

7 years agore-add verify functions
Alan T. DeKok [Sun, 17 Mar 2019 15:49:42 +0000 (11:49 -0400)] 
re-add verify functions

7 years agomove "dump" to state functions keyed off of trie->type
Alan T. DeKok [Sun, 17 Mar 2019 15:32:18 +0000 (11:32 -0400)] 
move "dump" to state functions keyed off of trie->type

7 years agoclarify documentation
Alan T. DeKok [Sun, 17 Mar 2019 15:12:12 +0000 (11:12 -0400)] 
clarify documentation

7 years agocleanups and more tests
Alan T. DeKok [Sun, 17 Mar 2019 14:28:18 +0000 (10:28 -0400)] 
cleanups and more tests

7 years agomove "walk" to state functions keyed off of trie->type
Alan T. DeKok [Sun, 17 Mar 2019 14:03:45 +0000 (10:03 -0400)] 
move "walk" to state functions keyed off of trie->type

7 years agoadd chunk tests
Alan T. DeKok [Sun, 17 Mar 2019 01:07:08 +0000 (21:07 -0400)] 
add chunk tests

we need a lot more, but this looks good.

7 years agoforce path compression for "trie" tests
Alan T. DeKok [Sun, 17 Mar 2019 00:55:22 +0000 (20:55 -0400)] 
force path compression for "trie" tests

7 years agosome more conditions for testing
Alan T. DeKok [Sun, 17 Mar 2019 00:51:07 +0000 (20:51 -0400)] 
some more conditions for testing

7 years agoadd ifdefs
Alan T. DeKok [Sun, 17 Mar 2019 00:43:18 +0000 (20:43 -0400)] 
add ifdefs

7 years agouse jlibtool to run the tests
Alan T. DeKok [Sun, 17 Mar 2019 00:35:53 +0000 (20:35 -0400)] 
use jlibtool to run the tests

7 years agocleanups and clarifications
Alan T. DeKok [Sun, 17 Mar 2019 00:25:55 +0000 (20:25 -0400)] 
cleanups and clarifications

There still seems to be an issue when paths are longer than
8 bits.

7 years agoclean up code in preparation for making paths 16 bits
Alan T. DeKok [Sat, 16 Mar 2019 23:52:22 +0000 (19:52 -0400)] 
clean up code in preparation for making paths 16 bits

7 years agostart of attempt to get paths to 16 bits
Alan T. DeKok [Sat, 16 Mar 2019 23:03:41 +0000 (19:03 -0400)] 
start of attempt to get paths to 16 bits

7 years agouse "add edge" function
Alan T. DeKok [Sat, 16 Mar 2019 22:17:58 +0000 (18:17 -0400)] 
use "add edge" function

to abstract the notion of adding an edge to a node, so that
we can move from 2^N-way nodes to packed nodes with a small number
of children

7 years agowhoops... call fr_trie_free(), not talloc_free()
Alan T. DeKok [Sat, 16 Mar 2019 21:48:29 +0000 (17:48 -0400)] 
whoops... call fr_trie_free(), not talloc_free()

as the trie no longer has each node parented from the previous one.

7 years agoadd "-remove" command
Alan T. DeKok [Sat, 16 Mar 2019 18:34:58 +0000 (14:34 -0400)] 
add "-remove" command

which tries to remove the key, and returns "." if the key wasn't
there.

7 years agoadd SQL states from SQL
Alan T. DeKok [Sat, 16 Mar 2019 18:34:42 +0000 (14:34 -0400)] 
add SQL states from SQL

7 years agoprint out filename, not directory
Alan T. DeKok [Sat, 16 Mar 2019 18:31:04 +0000 (14:31 -0400)] 
print out filename, not directory

7 years agojust recurse instead of being smart
Alan T. DeKok [Sat, 16 Mar 2019 17:59:59 +0000 (13:59 -0400)] 
just recurse instead of being smart

7 years agodisable path compression
Alan T. DeKok [Sat, 16 Mar 2019 17:55:39 +0000 (13:55 -0400)] 
disable path compression

7 years agofree path once we're done
Alan T. DeKok [Sat, 16 Mar 2019 16:17:24 +0000 (12:17 -0400)] 
free path once we're done

7 years agoTypo
Arran Cudbard-Bell [Sat, 16 Mar 2019 15:23:01 +0000 (23:23 +0800)] 
Typo

7 years agocleanup and reorganize
Alan T. DeKok [Sat, 16 Mar 2019 13:40:04 +0000 (09:40 -0400)] 
cleanup and reorganize

and try re-enabling path compression...

7 years agoUpdate unlang.5 to describe the new regex flags
Arran Cudbard-Bell [Sat, 16 Mar 2019 11:08:20 +0000 (19:08 +0800)] 
Update unlang.5 to describe the new regex flags

7 years agoMake the regex-pcre and regex-pcre2 feature flags distinct
Arran Cudbard-Bell [Sat, 16 Mar 2019 11:06:06 +0000 (19:06 +0800)] 
Make the regex-pcre and regex-pcre2 feature flags distinct

7 years agoVarious fixes
Arran Cudbard-Bell [Sat, 16 Mar 2019 08:48:54 +0000 (16:48 +0800)] 
Various fixes

7 years agoAdd luajit package
Arran Cudbard-Bell [Sat, 16 Mar 2019 06:26:02 +0000 (14:26 +0800)] 
Add luajit package

7 years agoSupport additional regex flags 'g' - global, s - 'single line', u - 'utf', x - 'extended'
Arran Cudbard-Bell [Sat, 16 Mar 2019 06:08:28 +0000 (14:08 +0800)] 
Support additional regex flags 'g' - global, s - 'single line', u - 'utf', x - 'extended'

7 years agoAdd feature flag for regex-pcre2
Arran Cudbard-Bell [Fri, 15 Mar 2019 07:43:35 +0000 (15:43 +0800)] 
Add feature flag for regex-pcre2

7 years agointernal function is better
Matthew Newton [Fri, 15 Mar 2019 21:08:26 +0000 (21:08 +0000)] 
internal function is better

7 years agoAdd "crossbuild" makefile
Matthew Newton [Fri, 15 Mar 2019 01:13:57 +0000 (01:13 +0000)] 
Add "crossbuild" makefile

Start with

    $ make crossbuild.help

The new targets will spin up docker containers (built from the
images in scripts/docker), and then run builds in them. This
should allow quick build tests on lots of different systems before
pushing commits up.

7 years agomore error messages
Alan T. DeKok [Fri, 15 Mar 2019 16:23:12 +0000 (12:23 -0400)] 
more error messages

7 years agoremove unused assignment
Alan T. DeKok [Fri, 15 Mar 2019 16:19:55 +0000 (12:19 -0400)] 
remove unused assignment

and comment out path compression again <sigh>  It appears that
travis is much different from local tests

7 years agoimplemented final chunk of trie code.
Alan T. DeKok [Fri, 15 Mar 2019 15:52:06 +0000 (11:52 -0400)] 
implemented final chunk of trie code.

And it all now works

7 years agofix get_chunk API
Alan T. DeKok [Fri, 15 Mar 2019 14:59:07 +0000 (10:59 -0400)] 
fix get_chunk API

7 years agouse correct calculation for chunk
Alan T. DeKok [Fri, 15 Mar 2019 14:56:37 +0000 (10:56 -0400)] 
use correct calculation for chunk

7 years agoNormalise function/variable naming
Arran Cudbard-Bell [Fri, 15 Mar 2019 02:34:59 +0000 (10:34 +0800)] 
Normalise function/variable naming

7 years agoRemove proxy and CoA methods from rlm_lua
Arran Cudbard-Bell [Fri, 15 Mar 2019 02:34:39 +0000 (10:34 +0800)] 
Remove proxy and CoA methods from rlm_lua

7 years agore-enable sql states that previously caused issues
Arran Cudbard-Bell [Fri, 15 Mar 2019 00:58:31 +0000 (08:58 +0800)] 
re-enable sql states that previously caused issues

7 years agodisable path compression until the tests pass
Alan T. DeKok [Fri, 15 Mar 2019 00:49:44 +0000 (20:49 -0400)] 
disable path compression until the tests pass

and rearrange code to match

7 years agoproperly case top-level 'ft' to 'user' node
Alan T. DeKok [Fri, 15 Mar 2019 00:47:02 +0000 (20:47 -0400)] 
properly case top-level 'ft' to 'user' node