Re: How to obtain process ID that created connection or owns one packet

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

Bye.

Mikado wrote:
> Hi,
> 
> I need to know a packet or a connection related to what process ID. In
> Netfilter there is a match called 'owner' but I dont know how it
> actually works. Can somebody tell me these informations?
> 
> Thank you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDrCY+mS/zF9V69ugRAobiAJ9lv0ohom3ALFrDM0Thcuq3xI8RbACfZ6Fp
eLnw35D1WRgJkA19nh77GsA=
=wKst
-----END PGP SIGNATURE-----


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux