diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-02 17:15:04 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-04 13:47:49 +0200 |
commit | ba8936b39b0ce2ff02f3aeb307df4c27657652d8 (patch) | |
tree | 71f8f3b775d7adfb7b2be374c634f749525c10eb /print-radius.c | |
parent | c45392de183543487bfebf52a5d2ccbeb9cef462 (diff) | |
download | tcpdump-ba8936b39b0ce2ff02f3aeb307df4c27657652d8.tar.gz |
Print truncations with nd_print_trunc() instead of tstr[] strings
Remove the tstr[] strings.
Update the output of some tests accordingly.
Moreover:
Add or update some ndo_protocol fields.
Diffstat (limited to 'print-radius.c')
-rw-r--r-- | print-radius.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/print-radius.c b/print-radius.c index 62f61f0c..7f9ea5f2 100644 --- a/print-radius.c +++ b/print-radius.c @@ -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); } |