]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Wed, 9 May 2018 23:58:54 +0000 (19:58 -0400)]
some protocols don't have expiry timers
Alan T. DeKok [Wed, 9 May 2018 23:55:39 +0000 (19:55 -0400)]
allow replies for NOOP, too
Alan T. DeKok [Wed, 9 May 2018 21:34:37 +0000 (17:34 -0400)]
move network parsing to common API
Alan T. DeKok [Wed, 9 May 2018 21:23:21 +0000 (17:23 -0400)]
move bulk of fr_dhcpv4_packet_encode() to fr_dhcpv4_encode()
and have proto_dhcpv4 use it.
Alan T. DeKok [Wed, 9 May 2018 21:22:05 +0000 (17:22 -0400)]
typo in function call
Alan T. DeKok [Wed, 9 May 2018 21:08:43 +0000 (17:08 -0400)]
packet_decode works as-is
Alan T. DeKok [Wed, 9 May 2018 21:04:39 +0000 (17:04 -0400)]
typo
Alan T. DeKok [Wed, 9 May 2018 21:04:02 +0000 (17:04 -0400)]
proto_dhcp_udp now validates the packets it receives
Alan T. DeKok [Wed, 9 May 2018 20:55:32 +0000 (16:55 -0400)]
move to newer API
Alan T. DeKok [Wed, 9 May 2018 20:43:41 +0000 (16:43 -0400)]
start cleaning up API
packet_ok() functions check if the packet is OK.
They shouldn't allocate a RADIUS_PACKET.
Alan T. DeKok [Wed, 9 May 2018 15:23:37 +0000 (11:23 -0400)]
the transaction may be defunct
If so, don't do REDEBUG
Alan T. DeKok [Wed, 9 May 2018 15:21:26 +0000 (11:21 -0400)]
ignore DUP signals
Alan T. DeKok [Wed, 9 May 2018 00:49:59 +0000 (20:49 -0400)]
return error
Alan T. DeKok [Tue, 8 May 2018 23:41:31 +0000 (19:41 -0400)]
unused variables
Alan T. DeKok [Tue, 8 May 2018 23:39:40 +0000 (19:39 -0400)]
fine... make this 255
Alan T. DeKok [Tue, 8 May 2018 22:53:11 +0000 (18:53 -0400)]
helps to have a makefile
Alan T. DeKok [Tue, 8 May 2018 21:11:08 +0000 (17:11 -0400)]
template for DHCPv4 over UDP.
it still needs to have the packet encode/decode inserted,
but the basics are there
Alan T. DeKok [Tue, 8 May 2018 21:10:49 +0000 (17:10 -0400)]
move include to header file
Alan T. DeKok [Tue, 8 May 2018 21:00:40 +0000 (17:00 -0400)]
set packet lengths to match VMPS headers
Alan T. DeKok [Tue, 8 May 2018 20:58:12 +0000 (16:58 -0400)]
sanity checks for IO functions
Alan T. DeKok [Tue, 8 May 2018 20:57:05 +0000 (16:57 -0400)]
do dup checks on the correct field
Alan T. DeKok [Tue, 8 May 2018 20:45:08 +0000 (16:45 -0400)]
start moving to new framework for DHCP.
We still need to add proto_dhcpv4_udp, and the various
process handlers. But this compiles at least.
Alan T. DeKok [Tue, 8 May 2018 20:19:57 +0000 (16:19 -0400)]
remove FR_DHCP_OFFSET, it's no longer necessary
and move proto_dhcpv4.c out of the way in preparation
for new code
Alan T. DeKok [Tue, 8 May 2018 13:31:56 +0000 (09:31 -0400)]
fix example so that it works
Alan T. DeKok [Tue, 8 May 2018 13:30:01 +0000 (09:30 -0400)]
minor fixes
Alan T. DeKok [Tue, 8 May 2018 12:38:44 +0000 (08:38 -0400)]
use new autoload framework
Alan T. DeKok [Tue, 8 May 2018 12:27:29 +0000 (08:27 -0400)]
set "out" to main_config.dict
until such time as they are different
Alan DeKok [Tue, 8 May 2018 12:26:24 +0000 (08:26 -0400)]
Merge pull request #2227 from chrisd8088/radwho_check_inet_pton_ret
Print usage and exit when -N used with invalid IP.
Chris Darroch [Tue, 8 May 2018 06:42:33 +0000 (23:42 -0700)]
Print usage and exit when -N used with invalid IP.
Check for all possible error return values from inet_pton(),
particularly zero, as this indicates an invalid IP address was
passed in the input string, whereas -1 is returned only when the
address family parameter is invalid, which is never the case
here because it's always AF_INET.
Alan T. DeKok [Mon, 7 May 2018 19:19:30 +0000 (15:19 -0400)]
hack up autoload via fr_dict_read()
Alan T. DeKok [Mon, 7 May 2018 18:24:04 +0000 (14:24 -0400)]
re-order (again)
and autoloads are done last to first, so we want or register
the dict loader last, and then the attribute loader
Alan T. DeKok [Mon, 7 May 2018 18:17:14 +0000 (14:17 -0400)]
we don't need to check anything here
Alan T. DeKok [Mon, 7 May 2018 18:10:19 +0000 (14:10 -0400)]
we don't need talloc && types for a 16-character name
less code is good, too
Alan T. DeKok [Mon, 7 May 2018 17:01:13 +0000 (13:01 -0400)]
fr_dict_autoload() doesn't quite work yet
there's no "dictionary.radius", so we can't try loading one
Alan T. DeKok [Mon, 7 May 2018 16:55:46 +0000 (12:55 -0400)]
remove unused attribute
Alan T. DeKok [Mon, 7 May 2018 15:34:00 +0000 (11:34 -0400)]
add dictionary directory to fr_dict_autoload()
Alan T. DeKok [Mon, 7 May 2018 15:16:17 +0000 (11:16 -0400)]
more work towards ON_LOAD autoload of dictionaries
fr_dict_autoload_t likely needs to have base_dir removed,
and instead passed in as a function parameter. That should
then work.
Alan T. DeKok [Mon, 7 May 2018 15:08:22 +0000 (11:08 -0400)]
run ON_READ rules when CONF_SECTION is allocated
Alan T. DeKok [Mon, 7 May 2018 15:04:55 +0000 (11:04 -0400)]
over-write replacement in place
Alan T. DeKok [Mon, 7 May 2018 15:02:37 +0000 (11:02 -0400)]
it's a pointer, not a pointer to a pointer
Alan T. DeKok [Mon, 7 May 2018 12:25:08 +0000 (08:25 -0400)]
cf_section_alloc() now adds itself to the parent automatically
this is more in line with the rest of the APIs. And, with the
way that cf_section_alloc() was being called.
Alan T. DeKok [Mon, 7 May 2018 12:23:58 +0000 (08:23 -0400)]
need dl_init() here, too
Alan T. DeKok [Mon, 7 May 2018 12:17:54 +0000 (08:17 -0400)]
added ON_READ for parsing callback functions when reading files
Alan T. DeKok [Sun, 6 May 2018 21:36:10 +0000 (17:36 -0400)]
remove unhelpful warning
Alan T. DeKok [Sun, 6 May 2018 21:32:42 +0000 (17:32 -0400)]
explicitly call dl_init()
Alan T. DeKok [Sun, 6 May 2018 21:28:00 +0000 (17:28 -0400)]
let's just use VMPS
Alan T. DeKok [Sun, 6 May 2018 12:17:00 +0000 (08:17 -0400)]
notes on autoloading proto_FOO dictionaries
Alan T. DeKok [Sun, 6 May 2018 12:14:13 +0000 (08:14 -0400)]
add boilerplate for autoload
Alan T. DeKok [Sat, 5 May 2018 12:03:14 +0000 (08:03 -0400)]
decode VMPS packets using new method
it doesn't do unknown / raw attrs, but that can be fixed later.
Alan T. DeKok [Sat, 5 May 2018 11:52:04 +0000 (07:52 -0400)]
hack to load dictionary.vqp outselves
Alan T. DeKok [Sat, 5 May 2018 11:48:07 +0000 (07:48 -0400)]
try to autoload VMPS / VQP dict.
doesn't seem to work, because autoloads are only registered
for rlm_*, and not proto_*?
Alan T. DeKok [Sat, 5 May 2018 11:41:07 +0000 (07:41 -0400)]
use correct names here, too
Alan T. DeKok [Sat, 5 May 2018 11:36:52 +0000 (07:36 -0400)]
this isn't needed any more
Alan T. DeKok [Fri, 4 May 2018 18:25:46 +0000 (14:25 -0400)]
notes that VMPS doesn't have clients, and we likely want
to fix this...
Alan T. DeKok [Fri, 4 May 2018 18:23:57 +0000 (14:23 -0400)]
preliminary updates for VMPS
Alan T. DeKok [Fri, 4 May 2018 17:13:16 +0000 (13:13 -0400)]
remove unused variable
Alan T. DeKok [Fri, 4 May 2018 16:59:43 +0000 (12:59 -0400)]
use vqp_decode as-is
Alan T. DeKok [Fri, 4 May 2018 16:54:56 +0000 (12:54 -0400)]
added fr_vmps_encode()
Alan T. DeKok [Fri, 4 May 2018 16:24:51 +0000 (12:24 -0400)]
move to new method of handling listeners
still have to re-do raw encode/decode functions, but it's a
good start
Alan T. DeKok [Fri, 4 May 2018 15:40:52 +0000 (11:40 -0400)]
move to new methods
Alan T. DeKok [Fri, 4 May 2018 15:36:41 +0000 (11:36 -0400)]
add fr_vmps_print_hex()
Alan T. DeKok [Fri, 4 May 2018 15:31:42 +0000 (11:31 -0400)]
8 hexits, not 4
Alan T. DeKok [Fri, 4 May 2018 15:19:17 +0000 (11:19 -0400)]
don't need secrets for some protocols
Alan T. DeKok [Fri, 4 May 2018 15:18:23 +0000 (11:18 -0400)]
VMPS packets are small.
Alan T. DeKok [Fri, 4 May 2018 15:18:09 +0000 (11:18 -0400)]
need this, too...
Alan T. DeKok [Fri, 4 May 2018 15:17:05 +0000 (11:17 -0400)]
added fr_vmps_codes
Alan T. DeKok [Fri, 4 May 2018 14:52:09 +0000 (10:52 -0400)]
added dynamic client handler
this should really be protocol-agnostic, but...
Alan T. DeKok [Fri, 4 May 2018 13:56:21 +0000 (09:56 -0400)]
smash it all into new format
copy proto_radius stuff over, hack it so that it works for VMPS,
and commit it.
We still need to fix up proto_vmps, and the base encode/decode
functions. But this part compiles, so it's committed
Alan DeKok [Fri, 4 May 2018 16:28:38 +0000 (12:28 -0400)]
Merge pull request #2224 from nchaigne/4.0.x-201805-dhcpv4-empty-value
Encoding of empty DHCP options
nchaigne [Fri, 4 May 2018 15:36:11 +0000 (17:36 +0200)]
Encoding of empty DHCP options
DHCP options can be empty.
See https://tools.ietf.org/html/rfc4039: "Rapid Commit" always has a len of 0.
The encoding doesn't support this currently.
(I think it worked before, but was broken by https://github.com/FreeRADIUS/freeradius-server/pull/2209 - my bad).
So here's another fix, to support encoding of empty DHCP options.
I also updated (and passed) the dhcp4 unit tests.
Arran Cudbard-Bell [Fri, 4 May 2018 10:04:21 +0000 (16:04 +0600)]
Remove fr_pair_list_copy_by_num, it's not actually used anywhere
Alan T. DeKok [Thu, 3 May 2018 22:36:23 +0000 (18:36 -0400)]
typos
Alan T. DeKok [Thu, 3 May 2018 22:34:37 +0000 (18:34 -0400)]
listen on "*" for TCP
Alan T. DeKok [Thu, 3 May 2018 21:45:46 +0000 (17:45 -0400)]
doxygen
Alan T. DeKok [Thu, 3 May 2018 21:44:40 +0000 (17:44 -0400)]
don't enable dynamic clients in the default config
Alan T. DeKok [Thu, 3 May 2018 21:43:03 +0000 (17:43 -0400)]
shut up stupid compiler
Alan T. DeKok [Thu, 3 May 2018 17:41:47 +0000 (13:41 -0400)]
doxygen
Alan T. DeKok [Thu, 3 May 2018 17:40:43 +0000 (13:40 -0400)]
handle leftover
Alan T. DeKok [Thu, 3 May 2018 17:20:02 +0000 (13:20 -0400)]
let's default to UDP
Alan T. DeKok [Thu, 3 May 2018 17:17:43 +0000 (13:17 -0400)]
pause reading only after reading one packet
Alan T. DeKok [Thu, 3 May 2018 17:10:57 +0000 (13:10 -0400)]
document TCP transport
Alan T. DeKok [Thu, 3 May 2018 17:05:57 +0000 (13:05 -0400)]
typo.
Alan T. DeKok [Thu, 3 May 2018 17:05:26 +0000 (13:05 -0400)]
always call fr_network_error() on socket error
and call app_io->error only if it's set
Alan T. DeKok [Thu, 3 May 2018 16:30:51 +0000 (12:30 -0400)]
typo
Alan T. DeKok [Thu, 3 May 2018 16:29:37 +0000 (12:29 -0400)]
start of TCP
it works for sending basic packets, but crashes on exit
Alan T. DeKok [Thu, 3 May 2018 16:25:47 +0000 (12:25 -0400)]
print actual error before assertion
Alan T. DeKok [Thu, 3 May 2018 16:10:45 +0000 (12:10 -0400)]
define and call fd_set() for TCP sockets
Alan T. DeKok [Thu, 3 May 2018 15:55:46 +0000 (11:55 -0400)]
place-holders for TCP sockets
Alan T. DeKok [Thu, 3 May 2018 15:37:34 +0000 (11:37 -0400)]
handle leftover bytes properly for TCP
Alan T. DeKok [Thu, 3 May 2018 15:34:41 +0000 (11:34 -0400)]
add place-holder FD to connection_alloc
Alan T. DeKok [Thu, 3 May 2018 15:31:52 +0000 (11:31 -0400)]
move enforcment / counting to connection_alloc
Alan T. DeKok [Thu, 3 May 2018 14:56:22 +0000 (10:56 -0400)]
use correct name
Arran Cudbard-Bell [Wed, 2 May 2018 03:55:02 +0000 (07:55 +0400)]
Fix sign issue
Arran Cudbard-Bell [Wed, 2 May 2018 00:39:52 +0000 (04:39 +0400)]
Autoload rlm_eap_fast attrs
Arran Cudbard-Bell [Wed, 2 May 2018 00:34:19 +0000 (04:34 +0400)]
Change autoload functions to iterate over an array of autoload structures
Arran Cudbard-Bell [Wed, 2 May 2018 00:33:46 +0000 (04:33 +0400)]
Add init functions to the eap base library
Arran Cudbard-Bell [Wed, 2 May 2018 00:32:00 +0000 (04:32 +0400)]
Fix autoload definitions in rlm_wimax
This was done before we started using the autoload scripts
Arran Cudbard-Bell [Wed, 2 May 2018 00:31:19 +0000 (04:31 +0400)]
Formatting
Arran Cudbard-Bell [Mon, 30 Apr 2018 10:26:35 +0000 (22:26 +1200)]
Fix minor formatting issue
Alan T. DeKok [Tue, 1 May 2018 14:29:52 +0000 (10:29 -0400)]
don't point to 17 year-old documentation