[lkml]   [2005]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How to obtain process ID that created a packet
>Is there any way to catch REAL pid that generated a packet from 'struct sk_buff', 'struct sock',
>'struct socket',
>'struct file' or etc... ? direct/indirect ways are accepted.

The question is: when do you test for the PID? You would have to do it
within send(), because anywhere else, you do not know. A socket may be
shared among multiple processes (most simple way: fork()).

Jan Engelhardt
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-12-26 23:39    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean