From 77a49fcb6ee80c8a107dd179e445c4eb9aab48e7 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 11 Sep 2018 12:27:55 +0200 Subject: Add the nd_print_invalid() function It prints " (invalid)", used for malformed or corrupted packets. Moreover: Update CONTRIBUTING. --- print-openflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print-openflow.c') diff --git a/print-openflow.c b/print-openflow.c index f3c1a832..8a912063 100644 --- a/print-openflow.c +++ b/print-openflow.c @@ -120,7 +120,7 @@ of_header_body_print(netdissect_options *ndo, const u_char *cp, const u_char *ep } invalid: /* fail current packet */ - ND_PRINT("%s", istr); + nd_print_invalid(ndo); ND_TCHECK_LEN(cp, ep - cp); return ep; trunc: -- cgit v1.2.1