Hi, You should use the nfq_handle_packet method, and in the callback it activates use a casting of tcp struct on the payload (nfq_get_payload method) timestamp can be achieved from netfilter using the : nfq_get_timestamp (struct nfq_data *nfad, struct timeval *tv) 2010/11/14 Igor 'Lo' (И.L.) <bombsiteunrested@xxxxxxxxx>: > 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 > -- Kind Regards, Yechiel Levi -- 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