nanog mailing list archives
Re: Anyone seeing ping corruption?
From: Masataka Ohta <mohta () necom830 hpcl titech ac jp>
Date: Wed, 22 Dec 2021 09:24:22 +0900
Bjorn Mork wrote:
No, an ICMP echo reply does not include the entire request packetsRFC792: The data received in the echo message must be returned in the echo reply message.
RFC792: Echo or Echo Reply Message 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Code | Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Identifier | Sequence Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Data ... +-+-+-+-+- The data excludes IP and ICMP header and is not "the entire request packets". Once an echo request packet is reassembled, which may cause buffer overflow with poor implementations, you only have to rewrite type, checksum and IP header to construct echo reply without copying data, which is what BSD kernel is doing. Masataka Ohta
Current thread:
- Anyone seeing ping corruption? Deepak Jain (Dec 09)
- Re: Anyone seeing ping corruption? Lukas Tribus (Dec 09)
- Re: Anyone seeing ping corruption? J Doe (Dec 20)
- Re: Anyone seeing ping corruption? Sean Donelan (Dec 20)
- Re: Anyone seeing ping corruption? Steven Champeon (Dec 20)
- Re: Anyone seeing ping corruption? Sean Donelan (Dec 20)
- Re: Anyone seeing ping corruption? Valdis Klētnieks (Dec 20)
- Re: Anyone seeing ping corruption? Masataka Ohta (Dec 21)
- Re: Anyone seeing ping corruption? Bjørn Mork (Dec 21)
- Re: Anyone seeing ping corruption? Masataka Ohta (Dec 21)
- Re: Anyone seeing ping corruption? J Doe (Dec 20)
- Re: Anyone seeing ping corruption? Lukas Tribus (Dec 09)
- Re: Anyone seeing ping corruption? Jon Lewis (Dec 20)
- Re: Anyone seeing ping corruption? Hank Nussbacher (Dec 20)
- Re: Anyone seeing ping corruption? Mark Tinka (Dec 21)
- Re: Anyone seeing ping corruption? Sean Donelan (Dec 21)
- Re: Anyone seeing ping corruption? Lukas Tribus (Dec 21)