How to write custom data to the TCP packet header options field with Java?
Posted
by snarkov
on Stack Overflow
See other posts from Stack Overflow
or by snarkov
Published on 2010-04-16T13:35:35Z
Indexed on
2010/04/23
1:33 UTC
Read the original article
Hit count: 266
As it is defined (see: http://www.freesoft.org/CIE/Course/Section4/8.htm) the TCP header has an 'Options' field. There are a couple of options already defined (see: www.iana.org/assignments/tcp-parameters/) but I want to come up with my very own. (For experimenting/research.)
How can I get Java to write (and then read) some custom data to the options field?
Bonus question: if it cannot be done with Java. what kind of application can do this? (No, I don't really feel like messing with some kernel-level TCP/IP stack implementation, I want to keep it app level.)
Thanks!
© Stack Overflow or respective owner