]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoRevert "radsniff: More tests"
Alan T. DeKok [Tue, 19 May 2020 13:40:07 +0000 (09:40 -0400)] 
Revert "radsniff: More tests"

This reverts commit 6f8a8f170dda87380f13849cce23ea10ac963aaa.

6 years agoRevert "binaries and input files are real dependencies"
Alan T. DeKok [Tue, 19 May 2020 13:39:39 +0000 (09:39 -0400)] 
Revert "binaries and input files are real dependencies"

This reverts commit 4ed829bcaf466334d71f35c60cc246f25a64a9de.

6 years agohoist 'Listening on' text to network IO
Alan T. DeKok [Tue, 19 May 2020 13:36:08 +0000 (09:36 -0400)] 
hoist 'Listening on' text to network IO

which is more standard, and less code

6 years agoremove old "todo"
Alan T. DeKok [Tue, 19 May 2020 13:26:53 +0000 (09:26 -0400)] 
remove old "todo"

6 years agowe don't need the `proto_` prefix
Alan T. DeKok [Tue, 19 May 2020 13:26:31 +0000 (09:26 -0400)] 
we don't need the `proto_` prefix

6 years agoprint out socket associated with FD
Alan T. DeKok [Tue, 19 May 2020 13:25:27 +0000 (09:25 -0400)] 
print out socket associated with FD

6 years agouse correct values for request / reply
Alan T. DeKok [Tue, 19 May 2020 12:24:38 +0000 (08:24 -0400)] 
use correct values for request / reply

6 years agoclang scan
Arran Cudbard-Bell [Tue, 19 May 2020 00:33:26 +0000 (19:33 -0500)] 
clang scan

6 years agoxlat: Fix copying attribtue refs in xlats
Arran Cudbard-Bell [Tue, 19 May 2020 00:15:20 +0000 (19:15 -0500)] 
xlat: Fix copying attribtue refs in xlats

6 years agoRevert "evaluate virtual attributes separately"
Arran Cudbard-Bell [Mon, 18 May 2020 19:25:58 +0000 (14:25 -0500)] 
Revert "evaluate virtual attributes separately"

This reverts commit 3ef7935a5b0bd96dc632b6f42fb54e6d1a55be22.

6 years agoskip leading whitespace
Alan T. DeKok [Mon, 18 May 2020 19:06:36 +0000 (15:06 -0400)] 
skip leading whitespace

so no one else has to

6 years agouse SOCK_DGRAM, which means that we don't need root
Alan T. DeKok [Mon, 18 May 2020 18:45:49 +0000 (14:45 -0400)] 
use SOCK_DGRAM, which means that we don't need root

6 years agosocket: Fix header
Arran Cudbard-Bell [Mon, 18 May 2020 18:58:17 +0000 (13:58 -0500)] 
socket: Fix header

6 years agocleanups.
Alan T. DeKok [Mon, 18 May 2020 17:53:12 +0000 (13:53 -0400)] 
cleanups.

always set src_ipaddr

look up interface if it wasn't specified.  Apparently it's always
needed.

6 years agocheck / set scope_id
Alan T. DeKok [Mon, 18 May 2020 17:52:31 +0000 (13:52 -0400)] 
check / set scope_id

6 years agoadded sample dhcpv6 virtual server
Alan T. DeKok [Mon, 18 May 2020 17:31:38 +0000 (13:31 -0400)] 
added sample dhcpv6 virtual server

6 years agoinclude non-string versions of the IPs, too
Alan T. DeKok [Mon, 18 May 2020 16:29:14 +0000 (12:29 -0400)] 
include non-string versions of the IPs, too

6 years agoset scope_id when manually trolling through interfaces.
Alan T. DeKok [Mon, 18 May 2020 16:12:18 +0000 (12:12 -0400)] 
set scope_id when manually trolling through interfaces.

And correct the logic a bit.

6 years agoclear out older error messages
Alan T. DeKok [Mon, 18 May 2020 15:59:51 +0000 (11:59 -0400)] 
clear out older error messages

6 years agocleanups and fixes
Alan T. DeKok [Mon, 18 May 2020 13:28:22 +0000 (09:28 -0400)] 
cleanups and fixes

6 years agocast to avoid compiler warnings
Alan T. DeKok [Mon, 18 May 2020 13:27:12 +0000 (09:27 -0400)] 
cast to avoid compiler warnings

6 years agoadd fr_ipaddr_to_interface
Alan T. DeKok [Mon, 18 May 2020 13:21:52 +0000 (09:21 -0400)] 
add fr_ipaddr_to_interface

6 years agofix snprintf parameters
Alan T. DeKok [Mon, 18 May 2020 13:21:30 +0000 (09:21 -0400)] 
fix snprintf parameters

6 years agosome packets cannot be received on a unicast address
Alan T. DeKok [Mon, 18 May 2020 00:29:59 +0000 (20:29 -0400)] 
some packets cannot be received on a unicast address

6 years agoevaluate virtual attributes separately
Alan T. DeKok [Mon, 18 May 2020 00:13:12 +0000 (20:13 -0400)] 
evaluate virtual attributes separately

6 years agomake clang scan happy
Alan T. DeKok [Sun, 17 May 2020 22:53:37 +0000 (18:53 -0400)] 
make clang scan happy

and double-check value length.  It should not be too large or
too small.

6 years agoout-smart clan scan
Alan T. DeKok [Sun, 17 May 2020 22:05:57 +0000 (18:05 -0400)] 
out-smart clan scan

6 years agoand finally the main proto_dhcp
Alan T. DeKok [Sun, 17 May 2020 18:05:36 +0000 (14:05 -0400)] 
and finally the main proto_dhcp

6 years agodon't forget "Release"
Alan T. DeKok [Sun, 17 May 2020 18:05:20 +0000 (14:05 -0400)] 
don't forget "Release"

6 years agofirst stab at proto_dhcpv6_udp
Alan T. DeKok [Sun, 17 May 2020 17:43:43 +0000 (13:43 -0400)] 
first stab at proto_dhcpv6_udp

6 years agoadd relay agents, etc.
Alan T. DeKok [Sun, 17 May 2020 18:06:03 +0000 (14:06 -0400)] 
add relay agents, etc.

6 years agofix code leftover from RADIUS days
Alan T. DeKok [Sun, 17 May 2020 17:50:00 +0000 (13:50 -0400)] 
fix code leftover from RADIUS days

6 years agodon't allow IPv6 or combo IP addresses for DHCPv4
Alan T. DeKok [Sun, 17 May 2020 13:15:20 +0000 (09:15 -0400)] 
don't allow IPv6 or combo IP addresses for DHCPv4

6 years agoadd handlers for renew / rebind / etc.
Alan T. DeKok [Sun, 17 May 2020 13:01:31 +0000 (09:01 -0400)] 
add handlers for renew / rebind / etc.

6 years agofirst stab at proto_dhcpv6
Alan T. DeKok [Sun, 17 May 2020 12:49:27 +0000 (08:49 -0400)] 
first stab at proto_dhcpv6

6 years agoadded array of names of packet types
Alan T. DeKok [Sun, 17 May 2020 12:48:57 +0000 (08:48 -0400)] 
added array of names of packet types

6 years agouse attr_message_type
Alan T. DeKok [Sun, 17 May 2020 12:37:09 +0000 (08:37 -0400)] 
use attr_message_type

6 years agoNow unused
Arran Cudbard-Bell [Sun, 17 May 2020 16:41:10 +0000 (11:41 -0500)] 
Now unused

6 years agoFix more scan issues
Arran Cudbard-Bell [Sun, 17 May 2020 16:40:01 +0000 (11:40 -0500)] 
Fix more scan issues

6 years agoremove unnecessary assignment
Alan T. DeKok [Sat, 16 May 2020 21:11:13 +0000 (17:11 -0400)] 
remove unnecessary assignment

6 years agoshut up stupid analyzer
Alan T. DeKok [Sat, 16 May 2020 21:09:10 +0000 (17:09 -0400)] 
shut up stupid analyzer

it's too stupid to know that while 'cp' isn't used inside of the
loop, it *is* used in the loop condition.

6 years agotry to shut up stupid analyzer
Alan T. DeKok [Sat, 16 May 2020 21:07:15 +0000 (17:07 -0400)] 
try to shut up stupid analyzer

6 years agocheck for clang >= 10
Alan T. DeKok [Sat, 16 May 2020 19:34:30 +0000 (15:34 -0400)] 
check for clang >= 10

6 years agoFix setting of FR_LIBRARY_PATH
Alan T. DeKok [Sat, 16 May 2020 18:57:45 +0000 (14:57 -0400)] 
Fix setting of FR_LIBRARY_PATH

to be relative to the location of jlibtool.  Not to the binary that
we're running.  If the binary is "lldb", then it doesn't help us find
$(BUILD_DIR)/lib/local/.libs

Revert "Revert "ensure that we automatically point to the correct libdir""

This reverts commit 8ea864c2e0fa53f903c6a5f68b4d22e8a0770ecf.

6 years agobinaries and input files are real dependencies
Alan T. DeKok [Sat, 16 May 2020 18:53:35 +0000 (14:53 -0400)] 
binaries and input files are real dependencies

if the radsniff binary changes, we MUST re-run the tests

6 years agoradsniff: More tests
Jorge Pereira [Fri, 15 May 2020 19:53:34 +0000 (16:53 -0300)] 
radsniff: More tests

6 years agoParent never read after updating
Arran Cudbard-Bell [Sat, 16 May 2020 18:45:36 +0000 (13:45 -0500)] 
Parent never read after updating

6 years agotravis: Encourage travis to use the correct clang version
Arran Cudbard-Bell [Sat, 16 May 2020 18:34:21 +0000 (13:34 -0500)] 
travis: Encourage travis to use the correct clang version

6 years agotravis: Postgresql is failing to start...
Arran Cudbard-Bell [Sat, 16 May 2020 18:24:03 +0000 (13:24 -0500)] 
travis: Postgresql is failing to start...

6 years agotravis: Bump postgres
Arran Cudbard-Bell [Sat, 16 May 2020 18:17:48 +0000 (13:17 -0500)] 
travis: Bump postgres

6 years agotry again...
Arran Cudbard-Bell [Sat, 16 May 2020 18:10:36 +0000 (13:10 -0500)] 
try again...

6 years agoEquivalent json-c packages on bionic (hopefully)
Arran Cudbard-Bell [Sat, 16 May 2020 18:08:32 +0000 (13:08 -0500)] 
Equivalent json-c packages on bionic (hopefully)

6 years agoDebug symbols only for xenial apparently
Arran Cudbard-Bell [Sat, 16 May 2020 18:06:23 +0000 (13:06 -0500)] 
Debug symbols only for xenial apparently

6 years agoBionic has a newer version of libkqueue.
Arran Cudbard-Bell [Sat, 16 May 2020 18:03:02 +0000 (13:03 -0500)] 
Bionic has a newer version of libkqueue.

another attempt at getting clang 10...

6 years agotravis: Container based builds were removed in 2018
Arran Cudbard-Bell [Sat, 16 May 2020 17:55:44 +0000 (12:55 -0500)] 
travis: Container based builds were removed in 2018

6 years agotravis: Bump OS to bionic
Arran Cudbard-Bell [Sat, 16 May 2020 17:51:09 +0000 (12:51 -0500)] 
travis: Bump OS to bionic

6 years agoAlways build tmpl_attr-debug
Arran Cudbard-Bell [Sat, 16 May 2020 17:43:39 +0000 (12:43 -0500)] 
Always build tmpl_attr-debug

6 years agoWoo we have clang 8
Arran Cudbard-Bell [Sat, 16 May 2020 17:41:30 +0000 (12:41 -0500)] 
Woo we have clang 8

6 years agoclang 8?
Arran Cudbard-Bell [Sat, 16 May 2020 17:36:08 +0000 (12:36 -0500)] 
clang 8?

6 years agoBump the repo too...
Arran Cudbard-Bell [Sat, 16 May 2020 17:23:28 +0000 (12:23 -0500)] 
Bump the repo too...

6 years agodebug: Remove useless FALL_THROUGH
Arran Cudbard-Bell [Sat, 16 May 2020 17:21:03 +0000 (12:21 -0500)] 
debug: Remove useless FALL_THROUGH

6 years agoFix gcc stupidity
Arran Cudbard-Bell [Sat, 16 May 2020 17:20:13 +0000 (12:20 -0500)] 
Fix gcc stupidity

6 years ago9 at least?
Arran Cudbard-Bell [Sat, 16 May 2020 17:18:20 +0000 (12:18 -0500)] 
9 at least?

6 years agoSee if we can bump clang to solve the fallthrough issue
Arran Cudbard-Bell [Sat, 16 May 2020 17:15:32 +0000 (12:15 -0500)] 
See if we can bump clang to solve the fallthrough issue

6 years agoevent: Better assert
Arran Cudbard-Bell [Sat, 16 May 2020 16:06:02 +0000 (11:06 -0500)] 
event: Better assert

6 years agoevent: Fix comments
Arran Cudbard-Bell [Sat, 16 May 2020 04:26:24 +0000 (23:26 -0500)] 
event: Fix comments

6 years agotmpl: Add attribute reference validation
Arran Cudbard-Bell [Fri, 15 May 2020 22:27:01 +0000 (17:27 -0500)] 
tmpl: Add attribute reference validation

Which has revealed lots of additional issues

6 years agotmpl: Don't insert the same ref into the ref list twice
Arran Cudbard-Bell [Fri, 15 May 2020 22:26:25 +0000 (17:26 -0500)] 
tmpl: Don't insert the same ref into the ref list twice

6 years agos/resolve_undefined/resolve_unparsed/
Arran Cudbard-Bell [Fri, 15 May 2020 22:26:01 +0000 (17:26 -0500)] 
s/resolve_undefined/resolve_unparsed/

6 years agoRevert "ensure that we automatically point to the correct libdir"
Arran Cudbard-Bell [Fri, 15 May 2020 21:28:00 +0000 (16:28 -0500)] 
Revert "ensure that we automatically point to the correct libdir"

This reverts commit 3589f5244e56302298e3edf8bcf50de45a37f38f.

6 years agoUpdate copyright
Arran Cudbard-Bell [Fri, 15 May 2020 21:26:34 +0000 (16:26 -0500)] 
Update copyright

6 years agoclang: Fix multiple issues caused by clang 10 not supporting /* FALL-THROUGH */ and...
Arran Cudbard-Bell [Fri, 15 May 2020 21:06:04 +0000 (16:06 -0500)] 
clang: Fix multiple issues caused by clang 10 not supporting /* FALL-THROUGH */ and adding useless, pendantic checks

6 years agotrunk: Always re-calculate the connection/request ratio
Arran Cudbard-Bell [Fri, 15 May 2020 19:48:17 +0000 (14:48 -0500)] 
trunk: Always re-calculate the connection/request ratio

6 years agouse CC
Alan T. DeKok [Fri, 15 May 2020 19:50:53 +0000 (15:50 -0400)] 
use CC

6 years agodifferentiate between "kill" and "stop"
Alan T. DeKok [Fri, 15 May 2020 19:38:59 +0000 (15:38 -0400)] 
differentiate between "kill" and "stop"

"kill" means kill it, even if it doesn't exist

"stop" means gracefully stop it, and fail if we can't.

6 years agostart of simple framework for performance tests
Alan T. DeKok [Fri, 15 May 2020 19:28:04 +0000 (15:28 -0400)] 
start of simple framework for performance tests

6 years agodon't complain about "client" sections either
Alan T. DeKok [Fri, 15 May 2020 19:24:00 +0000 (15:24 -0400)] 
don't complain about "client" sections either

6 years agoensure that we automatically point to the correct libdir
Alan T. DeKok [Fri, 15 May 2020 19:14:02 +0000 (15:14 -0400)] 
ensure that we automatically point to the correct libdir

6 years agoadd "jlibtool" target for laziness
Alan T. DeKok [Fri, 15 May 2020 19:13:01 +0000 (15:13 -0400)] 
add "jlibtool" target for laziness

6 years agoevent: Don't allow the same event to be inserted multiple times
Arran Cudbard-Bell [Fri, 15 May 2020 17:41:34 +0000 (12:41 -0500)] 
event: Don't allow the same event to be inserted multiple times

6 years ago"gunzip -c" is more portable thjan gzcat :(
Alan T. DeKok [Fri, 15 May 2020 17:28:07 +0000 (13:28 -0400)] 
"gunzip -c" is more portable thjan gzcat :(

6 years agofix the tests. Fixes #3456
Alan T. DeKok [Fri, 15 May 2020 15:32:24 +0000 (11:32 -0400)] 
fix the tests.  Fixes #3456

6 years agoRevert "let radsniff return "OK" if we're OK."
Alan T. DeKok [Fri, 15 May 2020 15:05:22 +0000 (11:05 -0400)] 
Revert "let radsniff return "OK" if we're OK."

This reverts commit 93ac467c77575393a3116f9593351b82b7f74605.

6 years agoradsniff: Default exit should be success (#3455)
Jorge Pereira [Fri, 15 May 2020 15:03:21 +0000 (12:03 -0300)] 
radsniff: Default exit should be success (#3455)

6 years agolet radsniff return "OK" if we're OK.
Alan T. DeKok [Fri, 15 May 2020 14:56:26 +0000 (10:56 -0400)] 
let radsniff return "OK" if we're OK.

6 years agoradsniff: Process files directly instead of using the event loop
Arran Cudbard-Bell [Fri, 15 May 2020 14:55:29 +0000 (09:55 -0500)] 
radsniff: Process files directly instead of using the event loop

6 years agoradsniff: Add new test suite
Jorge Pereira [Thu, 7 May 2020 00:02:56 +0000 (21:02 -0300)] 
radsniff: Add new test suite

New target 'make test.radsniff'

6 years agoradsniff: Can't rely on a notification from kevent that PCAP files are still readable...
Arran Cudbard-Bell [Fri, 15 May 2020 13:35:24 +0000 (08:35 -0500)] 
radsniff: Can't rely on a notification from kevent that PCAP files are still readable, so keep reading until pcap_next_ex indicates there's no more packets available

https://github.com/the-tcpdump-group/libpcap/issues/870

6 years agotmpl: Use correct talloc_get_type_abort function
Arran Cudbard-Bell [Fri, 15 May 2020 01:46:51 +0000 (20:46 -0500)] 
tmpl: Use correct talloc_get_type_abort function

6 years agotmpl: Move most modifications to tmpls into the tmpl API in preparation for nested...
Arran Cudbard-Bell [Thu, 14 May 2020 23:47:20 +0000 (18:47 -0500)] 
tmpl: Move most modifications to tmpls into the tmpl API in preparation for nested attribute references

6 years agotmpl: Correct name for unparsed
Arran Cudbard-Bell [Thu, 14 May 2020 23:06:21 +0000 (18:06 -0500)] 
tmpl: Correct name for unparsed

6 years agocond: Formatting
Arran Cudbard-Bell [Thu, 14 May 2020 23:05:52 +0000 (18:05 -0500)] 
cond: Formatting

6 years agovalue: Better error messages on invalid octet casts
Arran Cudbard-Bell [Thu, 14 May 2020 23:05:37 +0000 (18:05 -0500)] 
value: Better error messages on invalid octet casts

6 years agomap: Sprinkle MAP_VERIFY in more places
Arran Cudbard-Bell [Thu, 14 May 2020 23:04:56 +0000 (18:04 -0500)] 
map: Sprinkle MAP_VERIFY in more places

6 years agocond: rhs is const in cond_normalise_and_cmp
Arran Cudbard-Bell [Thu, 14 May 2020 23:04:05 +0000 (18:04 -0500)] 
cond: rhs is const in cond_normalise_and_cmp

6 years agodict: Constify dict pointer in fr_dict_attr_known
Arran Cudbard-Bell [Thu, 14 May 2020 23:03:12 +0000 (18:03 -0500)] 
dict: Constify dict pointer in fr_dict_attr_known

6 years agodict: Set the unknown flag on unknown attributes
Arran Cudbard-Bell [Thu, 14 May 2020 23:02:51 +0000 (18:02 -0500)] 
dict: Set the unknown flag on unknown attributes

6 years agotmpl: Move NUM constants into the tmpl header
Arran Cudbard-Bell [Thu, 14 May 2020 23:01:20 +0000 (18:01 -0500)] 
tmpl: Move NUM constants into the tmpl header

6 years agorlm_icmp: Ensure icmp header struct is correctly initialised
Arran Cudbard-Bell [Thu, 14 May 2020 22:59:19 +0000 (17:59 -0500)] 
rlm_icmp: Ensure icmp header struct is correctly initialised

6 years agoradsniff: Fix crash on exit.
Arran Cudbard-Bell [Thu, 14 May 2020 22:17:14 +0000 (17:17 -0500)] 
radsniff: Fix crash on exit.