]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out what we received
authorAlan T. DeKok <aland@freeradius.org>
Wed, 25 Apr 2018 16:52:00 +0000 (12:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 25 Apr 2018 16:53:46 +0000 (12:53 -0400)
src/modules/proto_radius/proto_radius_udp.c

index 168fd877a2f941d7ecce43cc269e7fec0a50a846..2346cfc01961582be485f3cfead253801c4f966e 100644 (file)
@@ -180,6 +180,13 @@ static ssize_t mod_read(void *instance, void **packet_ctx, fr_time_t **recv_time
         *      proto_radius sets the priority
         */
 
+       /*
+        *      Print out what we received.
+        */
+       DEBUG2("proto_radius_udp - Received %s ID %d length %d %s",
+              fr_packet_codes[buffer[0]], buffer[1],
+              (int) packet_len, inst->name);
+
        return packet_len;
 }