]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-radius.c
Don't print timestamps to a buffer and then print the buffer.
[tcpdump] / print-radius.c
index 62f61f0c09cd220fdb0e4cdf71971ce019da1ba1..7f9ea5f2d99711a35f61c9e19e18897797d4d19b 100644 (file)
@@ -89,7 +89,6 @@
 #include "extract.h"
 #include "oui.h"
 
-static const char tstr[] = " [|radius]";
 
 #define TAM_SIZE(x) (sizeof(x)/sizeof(x[0]) )
 
@@ -638,7 +637,7 @@ print_attr_string(netdissect_options *ndo,
    return;
 
    trunc:
-      ND_PRINT("%s", tstr);
+      nd_print_trunc(ndo);
 }
 
 /*
@@ -699,7 +698,7 @@ print_vendor_attr(netdissect_options *ndo,
     return;
 
    trunc:
-     ND_PRINT("%s", tstr);
+     nd_print_trunc(ndo);
 }
 
 /******************************/
@@ -822,7 +821,7 @@ print_attr_num(netdissect_options *ndo,
    return;
 
    trunc:
-     ND_PRINT("%s", tstr);
+     nd_print_trunc(ndo);
 }
 
 /*****************************/
@@ -865,7 +864,7 @@ print_attr_address(netdissect_options *ndo,
    return;
 
    trunc:
-     ND_PRINT("%s", tstr);
+     nd_print_trunc(ndo);
 }
 
 /*****************************/
@@ -892,7 +891,7 @@ print_attr_address6(netdissect_options *ndo,
    return;
 
    trunc:
-     ND_PRINT("%s", tstr);
+     nd_print_trunc(ndo);
 }
 
 static void
@@ -925,7 +924,7 @@ print_attr_netmask6(netdissect_options *ndo,
    return;
 
    trunc:
-     ND_PRINT("%s", tstr);
+     nd_print_trunc(ndo);
 }
 
 /*************************************/
@@ -959,7 +958,7 @@ print_attr_time(netdissect_options *ndo,
    return;
 
    trunc:
-     ND_PRINT("%s", tstr);
+     nd_print_trunc(ndo);
 }
 
 /***********************************/
@@ -1050,7 +1049,7 @@ print_attr_strange(netdissect_options *ndo,
    return;
 
    trunc:
-     ND_PRINT("%s", tstr);
+     nd_print_trunc(ndo);
 }
 
 static void
@@ -1114,7 +1113,7 @@ radius_attrs_print(netdissect_options *ndo,
    return;
 
 trunc:
-   ND_PRINT("%s", tstr);
+   nd_print_trunc(ndo);
 }
 
 void
@@ -1131,7 +1130,7 @@ radius_print(netdissect_options *ndo,
 
    if (len < MIN_RADIUS_LEN)
    {
-         ND_PRINT("%s", tstr);
+         nd_print_trunc(ndo);
          return;
    }
 
@@ -1162,5 +1161,5 @@ radius_print(netdissect_options *ndo,
    return;
 
 trunc:
-   ND_PRINT("%s", tstr);
+   nd_print_trunc(ndo);
 }