All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about NFLOG and conntrack glue
@ 2016-10-26 15:27 Richard Peeters
  2016-10-27 19:40 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Peeters @ 2016-10-26 15:27 UTC (permalink / raw)
  To: netfilter

Hi,

I am referring to commit :
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a29a9a585b2840a205f085a34dfd65c75e86f7c3
which was pulled in with 4.4, I am running kernel 4.8, and wondering
how I would be able to access the attached conntrack info in user
space.

My application runs in user space and retrieves packets that match a
specific criteria from iptables using NFLOG, I would like to get
conntrack information for said packet.

I use libnetfilter_log but I do not see any API exposed that will give
me this information, even if I was able to extract information using
libnfnnetlink apis,
( nfnl_get_pointer_to_data(nfad->nfa, NFULA_CT, struct nf_conn);)
the best I could get in this app would be a struct nf_conn pointer.

My question is : since struct nf_conn is not exposed to userspace, how
is one supposed to use the attached information in userspace? It would
be great to see some example code.

Thanks,
Rich

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

end of thread, other threads:[~2016-10-27 19:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26 15:27 Question about NFLOG and conntrack glue Richard Peeters
2016-10-27 19:40 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.