Skip to contentSkip to conversation

Question on TCP_INFO and retransmits.

DISCUSSION Ben Greear 1 participant 1 message Jul 29, 2004

Subsystems (2)
lore
Share & tools
lore

Ben Greear

author
#0 lore raw

The tcp_info structure that is available with getsockopt(...TCP_INFO) has a tcpi_retransmits field and a tcpi_retrans field.

I was hoping that one of these would be monatomically incrementing and keep track of all of the retransmits for the socket since it was opened...

However, it appears that these counters are reset to zero fairly often, making it difficult or impossible to use them to detect actual TCP retransmits.

Is there some other way to detect the number of retransmitted packets?

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com