tcpdump icon indicating copy to clipboard operation
tcpdump copied to clipboard

Parse ICMP Extended Echo (PROBE) (RFC8335)

Open fenner opened this issue 1 year ago • 5 comments

This adds parsing of ICMP extended echo request/reply, printing ID and seq without -v, and additional information with -v.

I've made two changes here; the first one is just moving the existing parsing of extended icmp objects to a separate function, and the second one adds the extended echo functionality, to make reviewing easier. I can squash them before merge if that's preferable.

fenner avatar Jan 05 '24 14:01 fenner

To make review easier, please put the first commit ("Move multipart extension object printing to its own function") in its own pull request. This step should be straightforward.

fxlb avatar Jan 16 '24 18:01 fxlb

To make review easier, please put the first commit ("Move multipart extension object printing to its own function") in its own pull request. This step should be straightforward.

Ok, I've opened #1119 and will rebase this after that's merged.

fenner avatar Jan 16 '24 18:01 fenner

Fuzzing found an unchecked call to in_cksum(), so I've made this into a draft so that it's not merge eligible until we decide what to do.

Should in_cksum() itself check for enough bytes, or, should all of its callers check before calling it?

fenner avatar Jan 22 '24 18:01 fenner

As discussed, I've added a length check around the call to in_cksum(), and added a pcap that contains a sample truncated packet.

fenner avatar Jan 25 '24 17:01 fenner

[I've updated the test outputs to match the timestamping change]

fenner avatar Mar 17 '24 21:03 fenner

[Rebased. The build errors don't seem to be related to this PR. More tests needed].

fxlb avatar Jul 06 '24 11:07 fxlb

netbsd-mips64 CI is now OK.

fxlb avatar Jul 07 '24 09:07 fxlb

Thanks!

fxlb avatar Jul 17 '24 07:07 fxlb

Thanks!

Thank you too!

fenner avatar Jul 20 '24 21:07 fenner