Reading TCP Sequence Number Before Sending a Packet
Posted
by
Sadeq Dousti
on Stack Overflow
See other posts from Stack Overflow
or by Sadeq Dousti
Published on 2010-12-31T04:49:02Z
Indexed on
2010/12/31
4:54 UTC
Read the original article
Hit count: 215
I'm writing a C/C++ client-server program under Linux. Assume a message m is to be sent from the client to the server.
Is it possible for the client to read the TCP sequence number of the packet which will carry m, before sending m?
In fact, I'd like to append this sequence number to m, and send the resulting packet. (Well, things are more complicated, but let's keep it that simple. In fact, I'd like to apply authentication info to this sequence number, and then append it to m.)
Moreover,
is it possible for the server to read the TCP sequence number of the packet carrying m?
© Stack Overflow or respective owner