summaryrefslogtreecommitdiff
path: root/print-loopback.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-loopback.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-loopback.c')
-rw-r--r--print-loopback.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/print-loopback.c b/print-loopback.c
index e0df6f26..e47e404d 100644
--- a/print-loopback.c
+++ b/print-loopback.c
@@ -42,7 +42,6 @@
#include "extract.h"
#include "addrtoname.h"
-static const char tstr[] = " [|loopback]";
#define LOOPBACK_REPLY 1
#define LOOPBACK_FWDDATA 2
@@ -101,7 +100,7 @@ invalid:
ND_TCHECK_LEN(cp, ep - cp);
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}
void
@@ -131,6 +130,6 @@ invalid:
ND_TCHECK_LEN(cp, ep - cp);
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}