summaryrefslogtreecommitdiff
path: root/print-rsvp.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-rsvp.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-rsvp.c')
-rw-r--r--print-rsvp.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/print-rsvp.c b/print-rsvp.c
index ae16d681..abc6b242 100644
--- a/print-rsvp.c
+++ b/print-rsvp.c
@@ -33,7 +33,6 @@
#include "af.h"
#include "signature.h"
-static const char tstr[] = " [|rsvp]";
/*
* RFC 2205 common header
@@ -643,7 +642,7 @@ rsvp_intserv_print(netdissect_options *ndo,
return (parameter_length+4); /* header length 4 bytes */
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return 0;
}
@@ -1866,8 +1865,7 @@ invalid:
ND_PRINT("%s", istr);
return -1;
trunc:
- ND_PRINT("\n\t\t");
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return -1;
}
@@ -2020,6 +2018,5 @@ rsvp_print(netdissect_options *ndo,
return;
trunc:
- ND_PRINT("\n\t\t");
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}