From: Alan T. DeKok Date: Mon, 16 Aug 2021 01:19:58 +0000 (-0400) Subject: use dict_freeradius for Packet-* attributes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5f82b87abc3869a23ea9eaf385bba8429fdbea0;p=thirdparty%2Ffreeradius-server.git use dict_freeradius for Packet-* attributes --- diff --git a/src/modules/rlm_dhcpv4/rlm_dhcpv4.c b/src/modules/rlm_dhcpv4/rlm_dhcpv4.c index 86aebe6503b..6d593402d5a 100644 --- a/src/modules/rlm_dhcpv4/rlm_dhcpv4.c +++ b/src/modules/rlm_dhcpv4/rlm_dhcpv4.c @@ -33,10 +33,12 @@ RCSID("$Id$") #include static fr_dict_t const *dict_dhcpv4; +static fr_dict_t const *dict_freeradius; extern fr_dict_autoload_t rlm_dhcpv4_dict[]; fr_dict_autoload_t rlm_dhcpv4_dict[] = { { .out = &dict_dhcpv4, .proto = "dhcpv4" }, + { .out = &dict_freeradius, .proto = "freeradius" }, { NULL } }; @@ -53,8 +55,8 @@ fr_dict_attr_autoload_t rlm_dhcpv4_dict_attr[] = { { .out = &attr_gateway_ip_address, .name = "Gateway-IP-Address", .type = FR_TYPE_IPV4_ADDR, .dict = &dict_dhcpv4 }, { .out = &attr_message_type, .name = "Message-Type", .type = FR_TYPE_UINT8, .dict = &dict_dhcpv4 }, { .out = &attr_packet_type, .name = "Packet-Type", .type = FR_TYPE_UINT32, .dict = &dict_dhcpv4 }, - { .out = &attr_packet_dst_ip_address, .name = "Packet-Dst-IP-Address", .type = FR_TYPE_IPV4_ADDR, .dict = &dict_dhcpv4 }, - { .out = &attr_packet_dst_port, .name = "Packet-Dst-Port", .type = FR_TYPE_UINT16, .dict = &dict_dhcpv4 }, + { .out = &attr_packet_dst_ip_address, .name = "Packet-Dst-IP-Address", .type = FR_TYPE_IPV4_ADDR, .dict = &dict_freeradius }, + { .out = &attr_packet_dst_port, .name = "Packet-Dst-Port", .type = FR_TYPE_UINT16, .dict = &dict_freeradius }, { NULL } };