summaryrefslogtreecommitdiff
path: root/print-babel.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-11 12:27:55 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-11 13:09:05 +0200
commit77a49fcb6ee80c8a107dd179e445c4eb9aab48e7 (patch)
tree923eeb78551c4a17bda5409ab0f9ce78e6b1fb73 /print-babel.c
parente2293be847464567fb59a532759e61c712893549 (diff)
downloadtcpdump-77a49fcb6ee80c8a107dd179e445c4eb9aab48e7.tar.gz
Add the nd_print_invalid() function
It prints " (invalid)", used for malformed or corrupted packets. Moreover: Update CONTRIBUTING.
Diffstat (limited to 'print-babel.c')
-rw-r--r--print-babel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-babel.c b/print-babel.c
index cb4e90b2..84acf863 100644
--- a/print-babel.c
+++ b/print-babel.c
@@ -336,7 +336,7 @@ subtlvs_print(netdissect_options *ndo,
return;
invalid:
- ND_PRINT("%s", istr);
+ nd_print_invalid(ndo);
}
#define ICHECK(i, l) \
@@ -732,6 +732,6 @@ babel_print_v2(netdissect_options *ndo,
return;
invalid:
- ND_PRINT("%s", istr);
+ nd_print_invalid(ndo);
return;
}