From: Marcus Sundberg <marcus@ingate.com>
To: Pablo Neira Ayuso <pablo@eurodev.net>
Cc: netfilter@lists.netfilter.org, netfilter-devel@lists.netfilter.org
Subject: Re: How to obtain process ID that created connection or owns one packet
Date: Tue, 27 Dec 2005 18:58:34 +0100 [thread overview]
Message-ID: <43B180CA.7060808@ingate.com> (raw)
In-Reply-To: <43AD5934.3050700@eurodev.net>
Pablo Neira Ayuso wrote:
> Mikado wrote:
>
>>Thanks all! Finally I found the answer in 'struct sk_buff':
>>
>>struct sk_buff ( #include <linux/skbuff.h> )
>>|_struct sock ( #include <net/sock.h> )
>> |_struct socket ( #include <linux/net.h> )
>> |_struct file ( #include <linux/fs.h> )
>> |_struct fown_struct ( #include <linux/fs.h> )
>> |_int pid
>
>
> Yes, but AFAIK you can only use that in the OUTPUT hook, not in the
> INPUT path.
...and if using SMP you can't use it at all in netfilter context.
//Marcus
--
---------------------------------------+--------------------------
Marcus Sundberg <marcus@ingate.com> | Firewalls with SIP & NAT
Software Developer, Ingate Systems AB | http://www.ingate.com/
next prev parent reply other threads:[~2005-12-27 17:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-19 4:54 Conntrack + Connection owner Mikado 4VN
2005-12-19 17:14 ` Pablo Neira Ayuso
2005-12-19 17:21 ` Pablo Neira Ayuso
2005-12-20 2:49 ` Mikado
2005-12-23 12:27 ` How to obtain process ID that created connection or owns one packet Mikado
2005-12-23 13:36 ` Edmundo Carmona
2005-12-23 14:32 ` Mikado
2005-12-23 16:30 ` Mikado
2005-12-24 14:20 ` Pablo Neira Ayuso
2005-12-26 15:46 ` Mikado
2005-12-27 17:58 ` Marcus Sundberg [this message]
2005-12-27 19:28 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43B180CA.7060808@ingate.com \
--to=marcus@ingate.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=netfilter@lists.netfilter.org \
--cc=pablo@eurodev.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.