From: Alan T. DeKok Date: Thu, 5 Feb 2026 13:13:48 +0000 (-0500) Subject: add more errors with URLs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd942a4750cf53fd3ef9b36d9815780c925ab10b;p=thirdparty%2Ffreeradius-server.git add more errors with URLs --- diff --git a/src/listen/radius/proto_radius.c b/src/listen/radius/proto_radius.c index 6c6f0079f84..e89b180bbe6 100644 --- a/src/listen/radius/proto_radius.c +++ b/src/listen/radius/proto_radius.c @@ -326,7 +326,15 @@ static int mod_decode(void const *instance, request_t *request, uint8_t *const d if (fr_radius_decode(request->request_ctx, &request->request_pairs, data, data_len, &decode_ctx) < 0) { talloc_free(decode_ctx.tmp_ctx); - RPEDEBUG("Failed decoding packet"); + + /* + * @todo - print out socket name, too. + */ + DEBUG2("proto_%s - discarding packet - failed decode (%s)", + inst->io.app_io->common.name, fr_radius_decode_fail_reason[decode_ctx.reason]); + DEBUG2("For more information, please see " DOC_ROOT_URL "/troubleshooting/network/%s.html", + url[decode_ctx.reason]); + return -1; } talloc_free(decode_ctx.tmp_ctx);