]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agosome protocols don't have expiry timers
Alan T. DeKok [Wed, 9 May 2018 23:58:54 +0000 (19:58 -0400)] 
some protocols don't have expiry timers

8 years agoallow replies for NOOP, too
Alan T. DeKok [Wed, 9 May 2018 23:55:39 +0000 (19:55 -0400)] 
allow replies for NOOP, too

8 years agomove network parsing to common API
Alan T. DeKok [Wed, 9 May 2018 21:34:37 +0000 (17:34 -0400)] 
move network parsing to common API

8 years agomove bulk of fr_dhcpv4_packet_encode() to fr_dhcpv4_encode()
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.

8 years agotypo in function call
Alan T. DeKok [Wed, 9 May 2018 21:22:05 +0000 (17:22 -0400)] 
typo in function call

8 years agopacket_decode works as-is
Alan T. DeKok [Wed, 9 May 2018 21:08:43 +0000 (17:08 -0400)] 
packet_decode works as-is

8 years agotypo
Alan T. DeKok [Wed, 9 May 2018 21:04:39 +0000 (17:04 -0400)] 
typo

8 years agoproto_dhcp_udp now validates the packets it receives
Alan T. DeKok [Wed, 9 May 2018 21:04:02 +0000 (17:04 -0400)] 
proto_dhcp_udp now validates the packets it receives

8 years agomove to newer API
Alan T. DeKok [Wed, 9 May 2018 20:55:32 +0000 (16:55 -0400)] 
move to newer API

8 years agostart cleaning up 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.

8 years agothe transaction may be defunct
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

8 years agoignore DUP signals
Alan T. DeKok [Wed, 9 May 2018 15:21:26 +0000 (11:21 -0400)] 
ignore DUP signals

8 years agoreturn error
Alan T. DeKok [Wed, 9 May 2018 00:49:59 +0000 (20:49 -0400)] 
return error

8 years agounused variables
Alan T. DeKok [Tue, 8 May 2018 23:41:31 +0000 (19:41 -0400)] 
unused variables

8 years agofine... make this 255
Alan T. DeKok [Tue, 8 May 2018 23:39:40 +0000 (19:39 -0400)] 
fine... make this 255

8 years agohelps to have a makefile
Alan T. DeKok [Tue, 8 May 2018 22:53:11 +0000 (18:53 -0400)] 
helps to have a makefile

8 years agotemplate for DHCPv4 over UDP.
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

8 years agomove include to header file
Alan T. DeKok [Tue, 8 May 2018 21:10:49 +0000 (17:10 -0400)] 
move include to header file

8 years agoset packet lengths to match VMPS headers
Alan T. DeKok [Tue, 8 May 2018 21:00:40 +0000 (17:00 -0400)] 
set packet lengths to match VMPS headers

8 years agosanity checks for IO functions
Alan T. DeKok [Tue, 8 May 2018 20:58:12 +0000 (16:58 -0400)] 
sanity checks for IO functions

8 years agodo dup checks on the correct field
Alan T. DeKok [Tue, 8 May 2018 20:57:05 +0000 (16:57 -0400)] 
do dup checks on the correct field

8 years agostart moving to new framework for DHCP.
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.

8 years agoremove FR_DHCP_OFFSET, it's no longer necessary
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

8 years agofix example so that it works
Alan T. DeKok [Tue, 8 May 2018 13:31:56 +0000 (09:31 -0400)] 
fix example so that it works

8 years agominor fixes
Alan T. DeKok [Tue, 8 May 2018 13:30:01 +0000 (09:30 -0400)] 
minor fixes

8 years agouse new autoload framework
Alan T. DeKok [Tue, 8 May 2018 12:38:44 +0000 (08:38 -0400)] 
use new autoload framework

8 years agoset "out" to main_config.dict
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

8 years agoMerge pull request #2227 from chrisd8088/radwho_check_inet_pton_ret
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.

8 years agoPrint usage and exit when -N used with invalid IP. 2227/head
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.

8 years agohack up autoload via fr_dict_read()
Alan T. DeKok [Mon, 7 May 2018 19:19:30 +0000 (15:19 -0400)] 
hack up autoload via fr_dict_read()

8 years agore-order (again)
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

8 years agowe don't need to check anything here
Alan T. DeKok [Mon, 7 May 2018 18:17:14 +0000 (14:17 -0400)] 
we don't need to check anything here

8 years agowe don't need talloc && types for a 16-character name
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

8 years agofr_dict_autoload() doesn't quite work yet
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

8 years agoremove unused attribute
Alan T. DeKok [Mon, 7 May 2018 16:55:46 +0000 (12:55 -0400)] 
remove unused attribute

8 years agoadd dictionary directory to fr_dict_autoload()
Alan T. DeKok [Mon, 7 May 2018 15:34:00 +0000 (11:34 -0400)] 
add dictionary directory to fr_dict_autoload()

8 years agomore work towards ON_LOAD autoload of dictionaries
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.

8 years agorun ON_READ rules when CONF_SECTION is allocated
Alan T. DeKok [Mon, 7 May 2018 15:08:22 +0000 (11:08 -0400)] 
run ON_READ rules when CONF_SECTION is allocated

8 years agoover-write replacement in place
Alan T. DeKok [Mon, 7 May 2018 15:04:55 +0000 (11:04 -0400)] 
over-write replacement in place

8 years agoit's a pointer, not a pointer to a pointer
Alan T. DeKok [Mon, 7 May 2018 15:02:37 +0000 (11:02 -0400)] 
it's a pointer, not a pointer to a pointer

8 years agocf_section_alloc() now adds itself to the parent automatically
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.

8 years agoneed dl_init() here, too
Alan T. DeKok [Mon, 7 May 2018 12:23:58 +0000 (08:23 -0400)] 
need dl_init() here, too

8 years agoadded ON_READ for parsing callback functions when reading files
Alan T. DeKok [Mon, 7 May 2018 12:17:54 +0000 (08:17 -0400)] 
added ON_READ for parsing callback functions when reading files

8 years agoremove unhelpful warning
Alan T. DeKok [Sun, 6 May 2018 21:36:10 +0000 (17:36 -0400)] 
remove unhelpful warning

8 years agoexplicitly call dl_init()
Alan T. DeKok [Sun, 6 May 2018 21:32:42 +0000 (17:32 -0400)] 
explicitly call dl_init()

8 years agolet's just use VMPS
Alan T. DeKok [Sun, 6 May 2018 21:28:00 +0000 (17:28 -0400)] 
let's just use VMPS

8 years agonotes on autoloading proto_FOO dictionaries
Alan T. DeKok [Sun, 6 May 2018 12:17:00 +0000 (08:17 -0400)] 
notes on autoloading proto_FOO dictionaries

8 years agoadd boilerplate for autoload
Alan T. DeKok [Sun, 6 May 2018 12:14:13 +0000 (08:14 -0400)] 
add boilerplate for autoload

8 years agodecode VMPS packets using new method
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.

8 years agohack to load dictionary.vqp outselves
Alan T. DeKok [Sat, 5 May 2018 11:52:04 +0000 (07:52 -0400)] 
hack to load dictionary.vqp outselves

8 years agotry to autoload VMPS / VQP dict.
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_*?

8 years agouse correct names here, too
Alan T. DeKok [Sat, 5 May 2018 11:41:07 +0000 (07:41 -0400)] 
use correct names here, too

8 years agothis isn't needed any more
Alan T. DeKok [Sat, 5 May 2018 11:36:52 +0000 (07:36 -0400)] 
this isn't needed any more

8 years agonotes that VMPS doesn't have clients, and we likely want
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...

8 years agopreliminary updates for VMPS
Alan T. DeKok [Fri, 4 May 2018 18:23:57 +0000 (14:23 -0400)] 
preliminary updates for VMPS

8 years agoremove unused variable
Alan T. DeKok [Fri, 4 May 2018 17:13:16 +0000 (13:13 -0400)] 
remove unused variable

8 years agouse vqp_decode as-is
Alan T. DeKok [Fri, 4 May 2018 16:59:43 +0000 (12:59 -0400)] 
use vqp_decode as-is

8 years agoadded fr_vmps_encode()
Alan T. DeKok [Fri, 4 May 2018 16:54:56 +0000 (12:54 -0400)] 
added fr_vmps_encode()

8 years agomove to new method of handling listeners
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

8 years agomove to new methods
Alan T. DeKok [Fri, 4 May 2018 15:40:52 +0000 (11:40 -0400)] 
move to new methods

8 years agoadd fr_vmps_print_hex()
Alan T. DeKok [Fri, 4 May 2018 15:36:41 +0000 (11:36 -0400)] 
add fr_vmps_print_hex()

8 years ago8 hexits, not 4
Alan T. DeKok [Fri, 4 May 2018 15:31:42 +0000 (11:31 -0400)] 
8 hexits, not 4

8 years agodon't need secrets for some protocols
Alan T. DeKok [Fri, 4 May 2018 15:19:17 +0000 (11:19 -0400)] 
don't need secrets for some protocols

8 years agoVMPS packets are small.
Alan T. DeKok [Fri, 4 May 2018 15:18:23 +0000 (11:18 -0400)] 
VMPS packets are small.

8 years agoneed this, too...
Alan T. DeKok [Fri, 4 May 2018 15:18:09 +0000 (11:18 -0400)] 
need this, too...

8 years agoadded fr_vmps_codes
Alan T. DeKok [Fri, 4 May 2018 15:17:05 +0000 (11:17 -0400)] 
added fr_vmps_codes

8 years agoadded dynamic client handler
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...

8 years agosmash it all into new format
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

8 years agoMerge pull request #2224 from nchaigne/4.0.x-201805-dhcpv4-empty-value
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

8 years agoEncoding of empty DHCP options 2224/head
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.

8 years agoRemove fr_pair_list_copy_by_num, it's not actually used anywhere
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

8 years agotypos
Alan T. DeKok [Thu, 3 May 2018 22:36:23 +0000 (18:36 -0400)] 
typos

8 years agolisten on "*" for TCP
Alan T. DeKok [Thu, 3 May 2018 22:34:37 +0000 (18:34 -0400)] 
listen on "*" for TCP

8 years agodoxygen
Alan T. DeKok [Thu, 3 May 2018 21:45:46 +0000 (17:45 -0400)] 
doxygen

8 years agodon't enable dynamic clients in the default config
Alan T. DeKok [Thu, 3 May 2018 21:44:40 +0000 (17:44 -0400)] 
don't enable dynamic clients in the default config

8 years agoshut up stupid compiler
Alan T. DeKok [Thu, 3 May 2018 21:43:03 +0000 (17:43 -0400)] 
shut up stupid compiler

8 years agodoxygen
Alan T. DeKok [Thu, 3 May 2018 17:41:47 +0000 (13:41 -0400)] 
doxygen

8 years agohandle leftover
Alan T. DeKok [Thu, 3 May 2018 17:40:43 +0000 (13:40 -0400)] 
handle leftover

8 years agolet's default to UDP
Alan T. DeKok [Thu, 3 May 2018 17:20:02 +0000 (13:20 -0400)] 
let's default to UDP

8 years agopause reading only after reading one packet
Alan T. DeKok [Thu, 3 May 2018 17:17:43 +0000 (13:17 -0400)] 
pause reading only after reading one packet

8 years agodocument TCP transport
Alan T. DeKok [Thu, 3 May 2018 17:10:57 +0000 (13:10 -0400)] 
document TCP transport

8 years agotypo.
Alan T. DeKok [Thu, 3 May 2018 17:05:57 +0000 (13:05 -0400)] 
typo.

8 years agoalways call fr_network_error() on socket error
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

8 years agotypo
Alan T. DeKok [Thu, 3 May 2018 16:30:51 +0000 (12:30 -0400)] 
typo

8 years agostart of TCP
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

8 years agoprint actual error before assertion
Alan T. DeKok [Thu, 3 May 2018 16:25:47 +0000 (12:25 -0400)] 
print actual error before assertion

8 years agodefine and call fd_set() for TCP sockets
Alan T. DeKok [Thu, 3 May 2018 16:10:45 +0000 (12:10 -0400)] 
define and call fd_set() for TCP sockets

8 years agoplace-holders for TCP sockets
Alan T. DeKok [Thu, 3 May 2018 15:55:46 +0000 (11:55 -0400)] 
place-holders for TCP sockets

8 years agohandle leftover bytes properly for TCP
Alan T. DeKok [Thu, 3 May 2018 15:37:34 +0000 (11:37 -0400)] 
handle leftover bytes properly for TCP

8 years agoadd place-holder FD to connection_alloc
Alan T. DeKok [Thu, 3 May 2018 15:34:41 +0000 (11:34 -0400)] 
add place-holder FD to connection_alloc

8 years agomove enforcment / counting to connection_alloc
Alan T. DeKok [Thu, 3 May 2018 15:31:52 +0000 (11:31 -0400)] 
move enforcment / counting to connection_alloc

8 years agouse correct name
Alan T. DeKok [Thu, 3 May 2018 14:56:22 +0000 (10:56 -0400)] 
use correct name

8 years agoFix sign issue
Arran Cudbard-Bell [Wed, 2 May 2018 03:55:02 +0000 (07:55 +0400)] 
Fix sign issue

8 years agoAutoload rlm_eap_fast attrs
Arran Cudbard-Bell [Wed, 2 May 2018 00:39:52 +0000 (04:39 +0400)] 
Autoload rlm_eap_fast attrs

8 years agoChange autoload functions to iterate over an array of autoload structures
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

8 years agoAdd init functions to the eap base library
Arran Cudbard-Bell [Wed, 2 May 2018 00:33:46 +0000 (04:33 +0400)] 
Add init functions to the eap base library

8 years agoFix autoload definitions in rlm_wimax
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

8 years agoFormatting
Arran Cudbard-Bell [Wed, 2 May 2018 00:31:19 +0000 (04:31 +0400)] 
Formatting

8 years agoFix minor formatting issue
Arran Cudbard-Bell [Mon, 30 Apr 2018 10:26:35 +0000 (22:26 +1200)] 
Fix minor formatting issue

8 years agodon't point to 17 year-old documentation
Alan T. DeKok [Tue, 1 May 2018 14:29:52 +0000 (10:29 -0400)] 
don't point to 17 year-old documentation