From 1433720f401c99d71732e5a5f87260fd95e68eb9 Mon Sep 17 00:00:00 2001 From: Herwin Weststrate Date: Fri, 11 May 2018 14:30:52 +0200 Subject: Fix truncation checks in CONTRIBUTING --- CONTRIBUTING | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CONTRIBUTING') diff --git a/CONTRIBUTING b/CONTRIBUTING index 8dabecd4..e9cca575 100644 --- a/CONTRIBUTING +++ b/CONTRIBUTING @@ -126,7 +126,7 @@ d) The printer may receive incomplete packet in the buffer, truncated at any For ND_TCHECK_LEN: Define : static const char tstr[] = " [|protocol]"; Define a label: trunc - Print with: ND_PRINT("%s", tstr); + Print with: nd_print_trunc(ndo); You can test the code via: sudo ./tcpdump -s snaplen [-v][v][...] -i lo # in a terminal sudo tcpreplay -i lo sample.pcap # in another terminal -- cgit v1.2.1