]> The Tcpdump Group git mirrors - tcpdump/commit
DCCP: Modernize packet parsing
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 1 Jan 2022 11:40:59 +0000 (12:40 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 14 Jan 2022 20:51:48 +0000 (21:51 +0100)
commitccc83a4e2e5231b603034f60a65b7f59da541c64
treef78436f34f0084bb500baa9be8e127cd16bf304c
parent96fe19242f9d4cf1e74231dd4945d0798a96fb27
DCCP: Modernize packet parsing

Enable ND_LONGJMP_FROM_TCHECK.
Use ND_ICHECK*() for length checks.
Fix some length checks.
Add and use standard "invalid" sections.
Remove the redundant ND_TCHECK*() instances.
Add a ND_TCHECK_1().
Factorize some codes.
Update default format for tok2str() calls.
Indicate better invalid packet types, invalid option types,
invalid reset codes and invalid features.
Fix process for DCCP_OPTION_CHANGE_L/DCCP_OPTION_CHANGE_R, not the
same that DCCP_OPTION_CONFIRM_L/DCCP_OPTION_CONFIRM_R process.
Remove spaces in some dccp_feature_num_str[] strings.
Update the output of a test accordingly.
print-dccp.c
tests/dccp_options-oobr.out