Click to See Complete Forum and Search --> : How can i extract “TCP options field ” from TCP packet .


imran123
June 2nd, 2004, 05:48 AM
Hi all,
I am receiving TCP packet of size 74 in which, 14 bytes of Ethernet header 20 for IP ,20
for TCP header and the remaining 20 byte are options bytes.

Correct me if i am wrong .
“TCP header structure not has field which contain option bytes” .
Guide me how i can extract TCP options bytes from TCP Packet , Is there any structure already available for “options bytes “ or i have to create my own structure for this.

Mathew Joy
June 2nd, 2004, 08:17 AM
I think the tcp options struct is the same as that for ip. This is reflected in the DataOffset header field which is 5 when the options is not included. As for IP options the tcp options field is optional.