]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use dict_freeradius for Packet-* attributes
authorAlan T. DeKok <aland@freeradius.org>
Mon, 16 Aug 2021 01:19:58 +0000 (21:19 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 16 Aug 2021 01:19:58 +0000 (21:19 -0400)
src/modules/rlm_dhcpv4/rlm_dhcpv4.c

index 86aebe6503ba2c7def916711a6b21df6e61d1f77..6d593402d5ad84b0c203bdc05304154c83cb2129 100644 (file)
@@ -33,10 +33,12 @@ RCSID("$Id$")
 #include <ctype.h>
 
 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 }
 };