]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix relay message type
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Oct 2020 15:38:04 +0000 (10:38 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Oct 2020 15:38:04 +0000 (10:38 -0500)
src/modules/proto_dhcpv6/proto_dhcpv6_udp.c
src/protocols/dhcpv6/base.c

index 88be74c0f1a48f85c84fe6bb8e3968013efef98b..27de9df354568a160b3c7d3c2f5f7ede2670d623 100644 (file)
@@ -127,7 +127,7 @@ extern fr_dict_attr_autoload_t proto_dhcpv6_udp_dict_attr[];
 fr_dict_attr_autoload_t proto_dhcpv6_udp_dict_attr[] = {
        { .out = &attr_packet_type, .name = "Packet-Type", .type = FR_TYPE_UINT32, .dict = &dict_dhcpv6},
        { .out = &attr_client_id, .name = "Client-ID", .type = FR_TYPE_STRUCT, .dict = &dict_dhcpv6},
-       { .out = &attr_relay_message, .name = "Relay-Message", .type = FR_TYPE_OCTETS, .dict = &dict_dhcpv6 },
+       { .out = &attr_relay_message, .name = "Relay-Message", .type = FR_TYPE_GROUP, .dict = &dict_dhcpv6 },
        { NULL }
 };
 
index 7cf25cc0f5ff179675f24c87c8bb0e74aae8e89d..6897931b5494342b5315e14f4ab60ba6f5f960cf 100644 (file)
@@ -66,7 +66,7 @@ fr_dict_attr_autoload_t libfreeradius_dhcpv6_dict_attr[] = {
        { .out = &attr_hop_count, .name = "Hop-Count", .type = FR_TYPE_UINT8, .dict = &dict_dhcpv6 },
        { .out = &attr_relay_link_address, .name = "Relay-Link-Address", .type = FR_TYPE_IPV6_ADDR, .dict = &dict_dhcpv6 },
        { .out = &attr_relay_peer_address, .name = "Relay-Peer-Address", .type = FR_TYPE_IPV6_ADDR, .dict = &dict_dhcpv6 },
-       { .out = &attr_relay_message, .name = "Relay-Message", .type = FR_TYPE_OCTETS, .dict = &dict_dhcpv6 },
+       { .out = &attr_relay_message, .name = "Relay-Message", .type = FR_TYPE_GROUP, .dict = &dict_dhcpv6 },
        { .out = &attr_option_request, .name = "Option-Request", .type = FR_TYPE_UINT16, .dict = &dict_dhcpv6 },
        { NULL }
 };