]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Packet-Type is in the DHCPv4 dict, not in the RADIUS dict
authorAlan T. DeKok <aland@freeradius.org>
Tue, 5 Nov 2019 14:07:08 +0000 (09:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 5 Nov 2019 14:35:27 +0000 (09:35 -0500)
src/modules/proto_dhcpv4/dhcpclient.c

index 8a7d6613910a38f82d460b3ee64ea7befb93bb9c..a95561bd9fd002a2040146215f8c41f022c898c0 100644 (file)
@@ -76,13 +76,11 @@ typedef struct {
 } dc_offer_t;
 
 static fr_dict_t *dict_freeradius;
-static fr_dict_t *dict_radius;
 static fr_dict_t *dict_dhcpv4;
 
 extern fr_dict_autoload_t dhcpclient_dict[];
 fr_dict_autoload_t dhcpclient_dict[] = {
        { .out = &dict_freeradius, .proto = "freeradius" },
-       { .out = &dict_radius, .proto = "radius" },
        { .out = &dict_dhcpv4, .proto = "dhcpv4" },
        { NULL }
 };
@@ -106,7 +104,7 @@ fr_dict_attr_autoload_t dhcpclient_dict_attr[] = {
        { .out = &attr_packet_src_ip_address, .name = "Packet-Src-IP-Address", .type = FR_TYPE_IPV4_ADDR, .dict = &dict_freeradius },
        { .out = &attr_packet_src_ipv6_address, .name = "Packet-Src-IPv6-Address", .type = FR_TYPE_IPV6_ADDR, .dict = &dict_freeradius },
        { .out = &attr_packet_src_port, .name = "Packet-Src-Port", .type = FR_TYPE_UINT16, .dict = &dict_freeradius },
-       { .out = &attr_packet_type, .name = "Packet-Type", .type = FR_TYPE_UINT32, .dict = &dict_radius },
+       { .out = &attr_packet_type, .name = "Packet-Type", .type = FR_TYPE_UINT32, .dict = &dict_dhcpv4 },
        { .out = &attr_dhcp_message_type, .name = "DHCP-Message-Type", .type = FR_TYPE_UINT8, .dict = &dict_dhcpv4},
        { .out = &attr_dhcp_dhcp_server_identifier, .name = "DHCP-DHCP-Server-Identifier", .type = FR_TYPE_IPV4_ADDR, .dict = &dict_dhcpv4 },
        { .out = &attr_dhcp_your_ip_address, .name = "DHCP-Your-IP-Address", .type = FR_TYPE_IPV4_ADDR, .dict = &dict_dhcpv4 },