diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2021-01-17 21:22:34 +0000 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2021-01-17 21:22:34 +0000 |
commit | 0a5824b49bedcc218b58684a7413242377c88ae0 (patch) | |
tree | 32d129bcd671f9fada4912dbad0053431460ff4a /print-udp.c | |
parent | 3ebae8948826d18e00e7e25a5c32a6ecda38e96a (diff) | |
download | tcpdump-0a5824b49bedcc218b58684a7413242377c88ae0.tar.gz |
TCP: Modernize packet parsing style.
Enable ND_LONGJMP_FROM_TCHECK. Report invalid packets as invalid. Remove
most ND_TCHECK*() instances as they were redundant. Update a custom
snapend guard to use nd_trunc_longjmp(). Reduce arity of
print_tcp_fastopen_option(). Use ND_TTEST_LEN() in
tcp_verify_signature() and nd_printn() in print_tcp_rst_data(). For
NFS_PORT remove ND_TTEST_4() from the test condition as it is not a
valid factor, there is the subsequent GET_BE_U_4() to check bounds.
Diffstat (limited to 'print-udp.c')
0 files changed, 0 insertions, 0 deletions