diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-11 12:27:55 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-11 13:09:05 +0200 |
commit | 77a49fcb6ee80c8a107dd179e445c4eb9aab48e7 (patch) | |
tree | 923eeb78551c4a17bda5409ab0f9ce78e6b1fb73 /CONTRIBUTING | |
parent | e2293be847464567fb59a532759e61c712893549 (diff) | |
download | tcpdump-77a49fcb6ee80c8a107dd179e445c4eb9aab48e7.tar.gz |
Add the nd_print_invalid() function
It prints " (invalid)", used for malformed or corrupted packets.
Moreover:
Update CONTRIBUTING.
Diffstat (limited to 'CONTRIBUTING')
-rw-r--r-- | CONTRIBUTING | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CONTRIBUTING b/CONTRIBUTING index fae4c739..4e94d645 100644 --- a/CONTRIBUTING +++ b/CONTRIBUTING @@ -148,8 +148,8 @@ d) The printer may receive incomplete packet in the buffer, truncated at any e) Do invalid packet checks in code: Think that your code can receive in input not only a valid packet but any arbitrary random sequence of octets (packet - built malformed originally by the sender or by a fuzz tester, - - became corrupted in transit). - Print with: ND_PRINT("%s", istr); /* to print " (invalid)" */ + - became corrupted in transit or for some other reason). + Print with: nd_print_invalid(ndo); /* to print " (invalid)" */ f) Use 'struct tok' for indexed strings and print them with tok2str() or bittok2str() (for flags). |