netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libnetfilter_queue: extracting TCP options.
@ 2010-11-14  4:13 Igor 'Lo' (И.L.)
  2010-11-14  5:05 ` Yechiel Levi
  0 siblings, 1 reply; 4+ messages in thread
From: Igor 'Lo' (И.L.) @ 2010-11-14  4:13 UTC (permalink / raw)
  To: netfilter-devel

Hi all,

How one can get TCP packet's options (especially timestamp and MD5)
using only libnetfilter_queue in userspace?
Having a callback routine(struct nfq_q_handle *qh, struct nfgenmsg
*nfmsg, struct nfq_data *nfa, void *data) - which structure may
contain the desired options set?

Most adequate Netfilter-based code to solve this problem was found in
linux/net/netfilter/nf_conntrack_proto_tcp.c - not a best kind of
documentation, but provided a nice method of reading a structure. Now
just need to get a bytes to read.

cheers,
Igor

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-14 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-14  4:13 libnetfilter_queue: extracting TCP options Igor 'Lo' (И.L.)
2010-11-14  5:05 ` Yechiel Levi
2010-11-14 15:45   ` Igor 'Lo' (И.L.)
2010-11-14 18:11     ` Yechiel Levi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).