]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rename fr_radius_print_hex to fr_radius_packet_print_hex
authorAlan T. DeKok <aland@freeradius.org>
Fri, 11 Aug 2017 12:41:48 +0000 (14:41 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 11 Aug 2017 12:41:48 +0000 (14:41 +0200)
src/main/radsniff.c
src/main/radsnmp.c
src/protocols/radius/packet.c
src/protocols/radius/radius.h

index f6881cb2439ac2f5fde7e904fecc71f902309b88..73be0469ebfb459f0044d0bb5cc7c24656f4fb45 100644 (file)
@@ -455,7 +455,7 @@ static void rs_packet_print_fancy(uint64_t count, rs_status_t status, fr_pcap_t
                 *      Print out verbose HEX output
                 */
                if (conf->print_packet && (fr_debug_lvl > 3)) {
-                       fr_radius_print_hex(packet);
+                       fr_radius_packet_print_hex(packet);
                }
 
                if (conf->print_packet && (fr_debug_lvl > 1)) {
index 3f2300419d347148cbd366a78d5dbc7940dadeb1..d627ea396b144cd10f06eb3f55bc2cf88862e364 100644 (file)
@@ -769,7 +769,7 @@ static int radsnmp_send_recv(radsnmp_conf_t *conf, int fd)
                        if (fr_log_fp) fr_packet_header_print(fr_log_fp, request, false);
                        if (fr_debug_lvl > 0) fr_pair_list_fprint(fr_log_fp, request->vps);
 #ifndef NDEBUG
-                       if (fr_log_fp && (fr_debug_lvl > 3)) fr_radius_print_hex(request);
+                       if (fr_log_fp && (fr_debug_lvl > 3)) fr_radius_packet_print_hex(request);
 #endif
 
                        FD_ZERO(&set); /* clear the set */
@@ -830,7 +830,7 @@ static int radsnmp_send_recv(radsnmp_conf_t *conf, int fd)
                        if (fr_log_fp) fr_packet_header_print(fr_log_fp, reply, true);
                        if (fr_debug_lvl > 0) fr_pair_list_fprint(fr_log_fp, reply->vps);
 #ifndef NDEBUG
-                       if (fr_log_fp && (fr_debug_lvl > 3)) fr_radius_print_hex(reply);
+                       if (fr_log_fp && (fr_debug_lvl > 3)) fr_radius_packet_print_hex(reply);
 #endif
 
                        switch (command) {
index f9636fe67610323835c9d41697a0037f0427dce5..27f736f730a708a2b5d1bedda01fa22dcadb572f 100644 (file)
@@ -448,7 +448,7 @@ RADIUS_PACKET *fr_radius_packet_recv(TALLOC_CTX *ctx, int fd, int flags, bool re
        packet->vps = NULL;
 
 #ifndef NDEBUG
-       if ((fr_debug_lvl > 3) && fr_log_fp) fr_radius_print_hex(packet);
+       if ((fr_debug_lvl > 3) && fr_log_fp) fr_radius_packet_print_hex(packet);
 #endif
 
        return packet;
@@ -494,7 +494,7 @@ int fr_radius_packet_send(RADIUS_PACKET *packet, RADIUS_PACKET const *original,
        }
 
 #ifndef NDEBUG
-       if ((fr_debug_lvl > 3) && fr_log_fp) fr_radius_print_hex(packet);
+       if ((fr_debug_lvl > 3) && fr_log_fp) fr_radius_packet_print_hex(packet);
 #endif
 
 #ifdef WITH_TCP
@@ -538,7 +538,7 @@ static void print_hex_data(uint8_t const *ptr, int attrlen, int depth)
 }
 
 
-void fr_radius_print_hex(RADIUS_PACKET const *packet)
+void fr_radius_packet_print_hex(RADIUS_PACKET const *packet)
 {
        int i;
 
index e4991e9a8e3eb6600946952933f87dc6ea63961e..a468b8240df835a81b2daa1edc07cdb8b499149c 100644 (file)
@@ -115,7 +115,7 @@ RADIUS_PACKET       *fr_radius_packet_recv(TALLOC_CTX *ctx, int fd, int flags, bool re
 int            fr_radius_packet_send(RADIUS_PACKET *packet, RADIUS_PACKET const *original,
                                      char const *secret) CC_HINT(nonnull (1,3));
 
-void           fr_radius_print_hex(RADIUS_PACKET const *packet) CC_HINT(nonnull);
+void           fr_radius_packet_print_hex(RADIUS_PACKET const *packet) CC_HINT(nonnull);
 
 
 typedef struct fr_radius_ctx {