Netdev List
 help / color / mirror / Atom feed
* TCP socket receives strange packet
@ 2014-10-14 14:09 Yurij M. Plotnikov
  2014-10-14 15:00 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Yurij M. Plotnikov @ 2014-10-14 14:09 UTC (permalink / raw)
  To: netdev; +Cc: Alexandra N. Kossovsky

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-10-14 16:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-14 14:09 TCP socket receives strange packet Yurij M. Plotnikov
2014-10-14 15:00 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox