reading the tcp headers within the write queue
Subsystems (2)
David Miller
maintainerFrom: 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.
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
David Miller
maintainerFrom: 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.