]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Tue, 19 May 2020 13:40:07 +0000 (09:40 -0400)]
Revert "radsniff: More tests"
This reverts commit
6f8a8f170dda87380f13849cce23ea10ac963aaa .
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 .
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
Alan T. DeKok [Tue, 19 May 2020 13:26:53 +0000 (09:26 -0400)]
remove old "todo"
Alan T. DeKok [Tue, 19 May 2020 13:26:31 +0000 (09:26 -0400)]
we don't need the `proto_` prefix
Alan T. DeKok [Tue, 19 May 2020 13:25:27 +0000 (09:25 -0400)]
print out socket associated with FD
Alan T. DeKok [Tue, 19 May 2020 12:24:38 +0000 (08:24 -0400)]
use correct values for request / reply
Arran Cudbard-Bell [Tue, 19 May 2020 00:33:26 +0000 (19:33 -0500)]
clang scan
Arran Cudbard-Bell [Tue, 19 May 2020 00:15:20 +0000 (19:15 -0500)]
xlat: Fix copying attribtue refs in xlats
Arran Cudbard-Bell [Mon, 18 May 2020 19:25:58 +0000 (14:25 -0500)]
Revert "evaluate virtual attributes separately"
This reverts commit
3ef7935a5b0bd96dc632b6f42fb54e6d1a55be22 .
Alan T. DeKok [Mon, 18 May 2020 19:06:36 +0000 (15:06 -0400)]
skip leading whitespace
so no one else has to
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
Arran Cudbard-Bell [Mon, 18 May 2020 18:58:17 +0000 (13:58 -0500)]
socket: Fix header
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.
Alan T. DeKok [Mon, 18 May 2020 17:52:31 +0000 (13:52 -0400)]
check / set scope_id
Alan T. DeKok [Mon, 18 May 2020 17:31:38 +0000 (13:31 -0400)]
added sample dhcpv6 virtual server
Alan T. DeKok [Mon, 18 May 2020 16:29:14 +0000 (12:29 -0400)]
include non-string versions of the IPs, too
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.
Alan T. DeKok [Mon, 18 May 2020 15:59:51 +0000 (11:59 -0400)]
clear out older error messages
Alan T. DeKok [Mon, 18 May 2020 13:28:22 +0000 (09:28 -0400)]
cleanups and fixes
Alan T. DeKok [Mon, 18 May 2020 13:27:12 +0000 (09:27 -0400)]
cast to avoid compiler warnings
Alan T. DeKok [Mon, 18 May 2020 13:21:52 +0000 (09:21 -0400)]
add fr_ipaddr_to_interface
Alan T. DeKok [Mon, 18 May 2020 13:21:30 +0000 (09:21 -0400)]
fix snprintf parameters
Alan T. DeKok [Mon, 18 May 2020 00:29:59 +0000 (20:29 -0400)]
some packets cannot be received on a unicast address
Alan T. DeKok [Mon, 18 May 2020 00:13:12 +0000 (20:13 -0400)]
evaluate virtual attributes separately
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.
Alan T. DeKok [Sun, 17 May 2020 22:05:57 +0000 (18:05 -0400)]
out-smart clan scan
Alan T. DeKok [Sun, 17 May 2020 18:05:36 +0000 (14:05 -0400)]
and finally the main proto_dhcp
Alan T. DeKok [Sun, 17 May 2020 18:05:20 +0000 (14:05 -0400)]
don't forget "Release"
Alan T. DeKok [Sun, 17 May 2020 17:43:43 +0000 (13:43 -0400)]
first stab at proto_dhcpv6_udp
Alan T. DeKok [Sun, 17 May 2020 18:06:03 +0000 (14:06 -0400)]
add relay agents, etc.
Alan T. DeKok [Sun, 17 May 2020 17:50:00 +0000 (13:50 -0400)]
fix code leftover from RADIUS days
Alan T. DeKok [Sun, 17 May 2020 13:15:20 +0000 (09:15 -0400)]
don't allow IPv6 or combo IP addresses for DHCPv4
Alan T. DeKok [Sun, 17 May 2020 13:01:31 +0000 (09:01 -0400)]
add handlers for renew / rebind / etc.
Alan T. DeKok [Sun, 17 May 2020 12:49:27 +0000 (08:49 -0400)]
first stab at proto_dhcpv6
Alan T. DeKok [Sun, 17 May 2020 12:48:57 +0000 (08:48 -0400)]
added array of names of packet types
Alan T. DeKok [Sun, 17 May 2020 12:37:09 +0000 (08:37 -0400)]
use attr_message_type
Arran Cudbard-Bell [Sun, 17 May 2020 16:41:10 +0000 (11:41 -0500)]
Now unused
Arran Cudbard-Bell [Sun, 17 May 2020 16:40:01 +0000 (11:40 -0500)]
Fix more scan issues
Alan T. DeKok [Sat, 16 May 2020 21:11:13 +0000 (17:11 -0400)]
remove unnecessary assignment
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.
Alan T. DeKok [Sat, 16 May 2020 21:07:15 +0000 (17:07 -0400)]
try to shut up stupid analyzer
Alan T. DeKok [Sat, 16 May 2020 19:34:30 +0000 (15:34 -0400)]
check for clang >= 10
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 .
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
Jorge Pereira [Fri, 15 May 2020 19:53:34 +0000 (16:53 -0300)]
radsniff: More tests
Arran Cudbard-Bell [Sat, 16 May 2020 18:45:36 +0000 (13:45 -0500)]
Parent never read after updating
Arran Cudbard-Bell [Sat, 16 May 2020 18:34:21 +0000 (13:34 -0500)]
travis: Encourage travis to use the correct clang version
Arran Cudbard-Bell [Sat, 16 May 2020 18:24:03 +0000 (13:24 -0500)]
travis: Postgresql is failing to start...
Arran Cudbard-Bell [Sat, 16 May 2020 18:17:48 +0000 (13:17 -0500)]
travis: Bump postgres
Arran Cudbard-Bell [Sat, 16 May 2020 18:10:36 +0000 (13:10 -0500)]
try again...
Arran Cudbard-Bell [Sat, 16 May 2020 18:08:32 +0000 (13:08 -0500)]
Equivalent json-c packages on bionic (hopefully)
Arran Cudbard-Bell [Sat, 16 May 2020 18:06:23 +0000 (13:06 -0500)]
Debug symbols only for xenial apparently
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...
Arran Cudbard-Bell [Sat, 16 May 2020 17:55:44 +0000 (12:55 -0500)]
travis: Container based builds were removed in 2018
Arran Cudbard-Bell [Sat, 16 May 2020 17:51:09 +0000 (12:51 -0500)]
travis: Bump OS to bionic
Arran Cudbard-Bell [Sat, 16 May 2020 17:43:39 +0000 (12:43 -0500)]
Always build tmpl_attr-debug
Arran Cudbard-Bell [Sat, 16 May 2020 17:41:30 +0000 (12:41 -0500)]
Woo we have clang 8
Arran Cudbard-Bell [Sat, 16 May 2020 17:36:08 +0000 (12:36 -0500)]
clang 8?
Arran Cudbard-Bell [Sat, 16 May 2020 17:23:28 +0000 (12:23 -0500)]
Bump the repo too...
Arran Cudbard-Bell [Sat, 16 May 2020 17:21:03 +0000 (12:21 -0500)]
debug: Remove useless FALL_THROUGH
Arran Cudbard-Bell [Sat, 16 May 2020 17:20:13 +0000 (12:20 -0500)]
Fix gcc stupidity
Arran Cudbard-Bell [Sat, 16 May 2020 17:18:20 +0000 (12:18 -0500)]
9 at least?
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
Arran Cudbard-Bell [Sat, 16 May 2020 16:06:02 +0000 (11:06 -0500)]
event: Better assert
Arran Cudbard-Bell [Sat, 16 May 2020 04:26:24 +0000 (23:26 -0500)]
event: Fix comments
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
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
Arran Cudbard-Bell [Fri, 15 May 2020 22:26:01 +0000 (17:26 -0500)]
s/resolve_undefined/resolve_unparsed/
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 .
Arran Cudbard-Bell [Fri, 15 May 2020 21:26:34 +0000 (16:26 -0500)]
Update copyright
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
Arran Cudbard-Bell [Fri, 15 May 2020 19:48:17 +0000 (14:48 -0500)]
trunk: Always re-calculate the connection/request ratio
Alan T. DeKok [Fri, 15 May 2020 19:50:53 +0000 (15:50 -0400)]
use CC
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.
Alan T. DeKok [Fri, 15 May 2020 19:28:04 +0000 (15:28 -0400)]
start of simple framework for performance tests
Alan T. DeKok [Fri, 15 May 2020 19:24:00 +0000 (15:24 -0400)]
don't complain about "client" sections either
Alan T. DeKok [Fri, 15 May 2020 19:14:02 +0000 (15:14 -0400)]
ensure that we automatically point to the correct libdir
Alan T. DeKok [Fri, 15 May 2020 19:13:01 +0000 (15:13 -0400)]
add "jlibtool" target for laziness
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
Alan T. DeKok [Fri, 15 May 2020 17:28:07 +0000 (13:28 -0400)]
"gunzip -c" is more portable thjan gzcat :(
Alan T. DeKok [Fri, 15 May 2020 15:32:24 +0000 (11:32 -0400)]
fix the tests. Fixes #3456
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 .
Jorge Pereira [Fri, 15 May 2020 15:03:21 +0000 (12:03 -0300)]
radsniff: Default exit should be success (#3455)
Alan T. DeKok [Fri, 15 May 2020 14:56:26 +0000 (10:56 -0400)]
let radsniff return "OK" if we're OK.
Arran Cudbard-Bell [Fri, 15 May 2020 14:55:29 +0000 (09:55 -0500)]
radsniff: Process files directly instead of using the event loop
Jorge Pereira [Thu, 7 May 2020 00:02:56 +0000 (21:02 -0300)]
radsniff: Add new test suite
New target 'make test.radsniff'
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
Arran Cudbard-Bell [Fri, 15 May 2020 01:46:51 +0000 (20:46 -0500)]
tmpl: Use correct talloc_get_type_abort function
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
Arran Cudbard-Bell [Thu, 14 May 2020 23:06:21 +0000 (18:06 -0500)]
tmpl: Correct name for unparsed
Arran Cudbard-Bell [Thu, 14 May 2020 23:05:52 +0000 (18:05 -0500)]
cond: Formatting
Arran Cudbard-Bell [Thu, 14 May 2020 23:05:37 +0000 (18:05 -0500)]
value: Better error messages on invalid octet casts
Arran Cudbard-Bell [Thu, 14 May 2020 23:04:56 +0000 (18:04 -0500)]
map: Sprinkle MAP_VERIFY in more places
Arran Cudbard-Bell [Thu, 14 May 2020 23:04:05 +0000 (18:04 -0500)]
cond: rhs is const in cond_normalise_and_cmp
Arran Cudbard-Bell [Thu, 14 May 2020 23:03:12 +0000 (18:03 -0500)]
dict: Constify dict pointer in fr_dict_attr_known
Arran Cudbard-Bell [Thu, 14 May 2020 23:02:51 +0000 (18:02 -0500)]
dict: Set the unknown flag on unknown attributes
Arran Cudbard-Bell [Thu, 14 May 2020 23:01:20 +0000 (18:01 -0500)]
tmpl: Move NUM constants into the tmpl header
Arran Cudbard-Bell [Thu, 14 May 2020 22:59:19 +0000 (17:59 -0500)]
rlm_icmp: Ensure icmp header struct is correctly initialised
Arran Cudbard-Bell [Thu, 14 May 2020 22:17:14 +0000 (17:17 -0500)]
radsniff: Fix crash on exit.