libnetfilter_queue: extracting TCP options.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux