netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Connection pid
@ 2009-01-25 23:32 ilninno
  0 siblings, 0 replies; only message in thread
From: ilninno @ 2009-01-25 23:32 UTC (permalink / raw)
  To: netfilter-devel

Hello again!

I have some problems with libnetfilter_queue, I need connections pid.
My program captures outgoings connections(only new connections)

1- I tried with netstat but its too low.  (each netstat call changes
process context)
2- I tried with netstat code, but its too low because all the info is
in different files. The first problem is get connection inode
(/proc/net/tcp or /proc/net/udp), with inode then i must search in fd
(inodes) of each process (/proc/pid/fd/). This is too low, Im not
using cache because i only capture new connections.

There is any reference to process id or process name in struct
nfq_data *pkt or similar struct?


Thanks for your time and sorry for my english.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-25 23:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-25 23:32 Connection pid ilninno

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).