Skip to contentSkip to conversation

reading the tcp headers within the write queue

DISCUSSION David Miller 2 participants 3 messages Dec 13, 2007 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

David Miller

author maintainer
#1 lore raw

From: Gavin McCullagh <[email protected]>
Date: Thu, 13 Dec 2007 18:56:26 +0000

Quoted 2 lines

I'm trying to hack together something which will run through the retransmit queue looking at the tcp headers.

The packets in the retransmit queue are headerless, the header only gets added to clones of the retransmit queue frames during the actual transmit.

And this question belongs on netdev not linux-net.

#2 lore raw

Hi,

thanks for the swift reply.

Quoted 6 lines · David Miller
Quoted 2 lines

I'm trying to hack together something which will run through the retransmit queue looking at the tcp headers.

The packets in the retransmit queue are headerless, the header only gets added to clones of the retransmit queue frames during the actual transmit.

Thought that might be it. I presume there isn't any other residue of the tcp options elsewhere, that one could look at when the packet gets acknowledged? I'm particularly interested in the timestamp.

Quoted 1 line

And this question belongs on netdev not linux-net.

Oops, sorry.

Gavin

author maintainer
#3 lore raw

From: Gavin McCullagh <[email protected]>
Date: Thu, 13 Dec 2007 19:08:59 +0000

Quoted 3 lines

Thought that might be it. I presume there isn't any other residue of the tcp options elsewhere, that one could look at when the packet gets acknowledged? I'm particularly interested in the timestamp.

Every time we transmit, the timestamp will be different.

We store the jiffies at transmit time in TCP_SKB_CB(skb)->when, so you can use that. This is the value we use to compute the timestamp.