summaryrefslogtreecommitdiff
path: root/print-lwapp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-02 17:15:04 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-04 13:47:49 +0200
commitba8936b39b0ce2ff02f3aeb307df4c27657652d8 (patch)
tree71f8f3b775d7adfb7b2be374c634f749525c10eb /print-lwapp.c
parentc45392de183543487bfebf52a5d2ccbeb9cef462 (diff)
downloadtcpdump-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-lwapp.c')
-rw-r--r--print-lwapp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/print-lwapp.c b/print-lwapp.c
index d53d8e98..f8ca6657 100644
--- a/print-lwapp.c
+++ b/print-lwapp.c
@@ -29,8 +29,6 @@
#include "extract.h"
#include "addrtoname.h"
-static const char control_tstr[] = " [|lwapp_control]";
-static const char data_tstr[] = " [|lwapp_data]";
/*
* LWAPP transport (common) header
@@ -296,7 +294,7 @@ lwapp_control_print(netdissect_options *ndo,
return;
trunc:
- ND_PRINT("%s", control_tstr);
+ nd_print_trunc(ndo);
}
void
@@ -365,5 +363,5 @@ lwapp_data_print(netdissect_options *ndo,
return;
trunc:
- ND_PRINT("%s", data_tstr);
+ nd_print_trunc(ndo);
}