diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2016-01-28 16:57:18 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2016-01-28 16:57:18 +0100 |
commit | f92345ee435501eb64ce8995f91224bbb3e858ba (patch) | |
tree | f8d24edafa5f369ff2a6791bd804b76b54feba18 /CONTRIBUTING | |
parent | 436ced3bd83f6b3a5b4a206538c56189837add59 (diff) | |
download | tcpdump-f92345ee435501eb64ce8995f91224bbb3e858ba.tar.gz |
CONTRIBUTING: Update about invalid packets
Diffstat (limited to 'CONTRIBUTING')
-rw-r--r-- | CONTRIBUTING | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CONTRIBUTING b/CONTRIBUTING index 479940d5..152d5993 100644 --- a/CONTRIBUTING +++ b/CONTRIBUTING @@ -75,7 +75,9 @@ 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 - corrupted in transit or built by a fuzz tester). + - built malformed originally by the sender or by a fuzz tester, + - became corrupted in transit). + Print with: ND_PRINT((ndo, "%s", istr)); /* to print " (invalid)" */ f) Use 'struct tok' for indexed strings and print them with tok2str() or bittok2str() (for flags). |