Discussion:
how can i access tsval from tcp options?
Daniel H. Bahr
2014-02-15 14:43:40 UTC
Permalink
Hello everyone,

I'm in need of accessing the tsval value of the options field in the
tcp header... i've been checking the tcp.h and did not find anything
that helped me.

Does any body know how to do it?

Best regards
Denis Ovsienko
2014-02-15 19:28:40 UTC
Permalink
Post by Daniel H. Bahr
Hello everyone,
I'm in need of accessing the tsval value of the options field in the
tcp header... i've been checking the tcp.h and did not find anything
that helped me.
Does any body know how to do it?
Greetings.

TCP options are a particular case of TLV class of encodings. This most likely implies that TCP options are opaque to libpcap. To access one or more TCP options it is necessary to have some code like that in tcpdump, print-tcp.c around line 500.
--
Denis Ovsienko
Daniel H. Bahr
2014-02-17 13:42:19 UTC
Permalink
Thanks, Denis, I'll check that out.
Post by Denis Ovsienko
Post by Daniel H. Bahr
Hello everyone,
I'm in need of accessing the tsval value of the options field in the
tcp header... i've been checking the tcp.h and did not find anything
that helped me.
Does any body know how to do it?
Greetings.
TCP options are a particular case of TLV class of encodings. This most
likely implies that TCP options are opaque to libpcap. To access one or more
TCP options it is necessary to have some code like that in tcpdump,
print-tcp.c around line 500.
--
Denis Ovsienko
_______________________________________________
tcpdump-workers mailing list
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Loading...