Netdev List
 help / color / mirror / Atom feed
From: "Yurij M. Plotnikov" <Yurij.Plotnikov@oktetlabs.ru>
To: netdev@vger.kernel.org
Cc: "Alexandra N. Kossovsky" <Alexandra.Kossovsky@oktetlabs.ru>
Subject: TCP socket receives strange packet
Date: Tue, 14 Oct 2014 18:09:54 +0400	[thread overview]
Message-ID: <543D2EB2.4000009@oktetlabs.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

Connected TCP socket receives packet without timestamps option which 
exists in SYN, SYNACK and ACK. It is packet 4 in attached tcpdump output.

tcpdump output description: The host has address 10.208.10.1 (server) 
and the peer host has address 10.208.10.2 (client).

Establishing connection: Timestamps option exists in SYN, SYNACK and ACK 
(packets 1, 2 and 3 in attached file), so accepted socket should receive 
packets only with timestamps option.

Sending packet: the socket receives the packet without timestamps option 
(packet 4 in attached file), i.e. recv() function called on the socket 
receives the data from the packet. The "strange" packet is generated 
using PCAP.

I see this behaviour on 2.6.26 and on 3.14 kernels.

[-- Attachment #2: pcap_with_bad_packet --]
[-- Type: application/octet-stream, Size: 866 bytes --]

             reply	other threads:[~2014-10-14 14:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 14:09 Yurij M. Plotnikov [this message]
2014-10-14 15:00 ` TCP socket receives strange packet Eric Dumazet
2014-10-14 15:40   ` John Heffner
2014-10-14 16:41     ` Christoph Paasch
2014-10-14 16:50       ` David Miller
2014-10-14 16:54         ` Christoph Paasch
2014-10-14 16:32   ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=543D2EB2.4000009@oktetlabs.ru \
    --to=yurij.plotnikov@oktetlabs.ru \
    --cc=Alexandra.Kossovsky@oktetlabs.ru \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox