From: Alan T. DeKok Date: Tue, 5 Nov 2019 14:07:08 +0000 (-0500) Subject: Packet-Type is in the DHCPv4 dict, not in the RADIUS dict X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cbadae2cd75c9b377b3a948dfefd7ce49b28c90;p=thirdparty%2Ffreeradius-server.git Packet-Type is in the DHCPv4 dict, not in the RADIUS dict --- diff --git a/src/modules/proto_dhcpv4/dhcpclient.c b/src/modules/proto_dhcpv4/dhcpclient.c index 8a7d6613910..a95561bd9fd 100644 --- a/src/modules/proto_dhcpv4/dhcpclient.c +++ b/src/modules/proto_dhcpv4/dhcpclient.c @@ -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 },