]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
and another fr_packet_codes reference
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 5 Nov 2017 15:45:45 +0000 (15:45 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 5 Nov 2017 15:45:45 +0000 (15:45 +0000)
src/modules/rlm_detail/rlm_detail.c

index ba6b01e0cfd402113f73aedf2a77f1850fa4fae0..30f8b9798b5a6bb450da9ee6ffd373242af89194 100644 (file)
@@ -242,7 +242,13 @@ static int detail_write(FILE *out, rlm_detail_t const *inst, REQUEST *request, R
                 *      Numbers, if not.
                 */
                if (is_radius_code(packet->code)) {
-                       WRITE("\tPacket-Type = %s\n", fr_packet_codes[packet->code]);
+                       fr_dict_attr_t const    *da;
+
+                       da = fr_dict_attr_by_num(NULL, 0, FR_PACKET_TYPE);
+                       rad_assert(da != NULL);
+
+                       WRITE("\tPacket-Type = %s\n",
+                             fr_dict_enum_alias_by_value(NULL, da, fr_box_uint32(packet->code)));
                } else {
                        WRITE("\tPacket-Type = %u\n", packet->code);
                }