DHCP Radius proxy (IPv4 and IPv6)
Ľudovít Mikula
ludovit.mikula at mikori.sk
Mon May 29 14:43:34 UTC 2023
> I've got this error:
> freeradius | Mon May 29 13:51:10 2023: Debug : Loaded module
> proto_dhcpv6_udp
> freeradius | Mon May 29 13:51:10 2023: Debug : udp {
> freeradius | Mon May 29 13:51:10 2023: Debug : ipaddr = FF02::1:2
> freeradius | Mon May 29 13:51:10 2023: Debug : interface = eth0
> freeradius | Mon May 29 13:51:10 2023: Debug : port = 547
> freeradius | Mon May 29 13:51:10 2023: Debug : networks {
> freeradius | Mon May 29 13:51:10 2023: Debug : }
> freeradius | Mon May 29 13:51:10 2023: Debug : max_packet_size
> = 8192
> freeradius | Mon May 29 13:51:10 2023: Debug : max_attributes =
> DHCPV6_MAX_ATTRIBUTES
> freeradius | Mon May 29 13:51:10 2023: Error :
> /opt/freeradius/etc/raddb/sites-enabled/dhcpv6[93]: Invalid value
> "DHCPV6_MAX_ATTRIBUTES" for config item max_attributes: Failed parsing
> string as type 'uint32'
> freeradius | Mon May 29 13:51:10 2023: Error :
> /opt/freeradius/etc/raddb/sites-enabled/dhcpv6[93]: Failed evaluating
> configuration for module "proto_dhcpv6_udp"
> freeradius | Mon May 29 13:51:10 2023: Error :
> /opt/freeradius/etc/raddb/sites-enabled/dhcpv6[65]: Failed evaluating
> configuration for module "proto_dhcpv6"
> freeradius | Mon May 29 13:51:10 2023: Error :
> /opt/freeradius/etc/raddb/sites-enabled/dhcpv6[65]: Failed parsing
> config for listener
Looks like a #define is missing in the header files:
vagrant at radius:~/freeradius4$ grep DHCPV6_MAX_ATTRIBUTES src/* -R
src/listen/dhcpv6/proto_dhcpv6_udp.c: { FR_CONF_OFFSET("max_attributes",
FR_TYPE_UINT32, proto_dhcpv6_udp_t, max_attributes), .dflt =
STRINGIFY(DHCPV6_MAX_ATTRIBUTES) } ,
compared to:
vagrant at radius:~/freeradius4$ grep DHCPV4_MAX_ATTRIBUTES src/* -R
src/freeradius-devel/dhcpv4/dhcpv4.h:#define DHCPV4_MAX_ATTRIBUTES 255
src/include/dhcpv4/dhcpv4.h:#define DHCPV4_MAX_ATTRIBUTES 255
src/listen/dhcpv4/proto_dhcpv4_udp.c: {
FR_CONF_OFFSET("max_attributes", FR_TYPE_UINT32, proto_dhcpv4_udp_t,
max_attributes), .dflt = STRINGIFY(DHCPV4_MAX_ATTRIBUTES) } ,
src/protocols/dhcpv4/dhcpv4.h:#define DHCPV4_MAX_ATTRIBUTES 255
Ludo
More information about the Freeradius-Users
mailing list