From: "Alan Stead" Subject: getting PID and task name from sk_buff Date: Wed, 23 Feb 2005 22:17:01 -0800 Message-ID: Reply-To: alan@stead.com Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Hello, I am trying to get the PID and Task Name from the sk_buff and am having a hard time doing this. I have tried the following: sk_buff->sk->sk_socket->file->fowner.pid but that always seems to return 0. I was then planning on using the pid to get the specific task and get the task->comm to get the name...but I am only getting PID(0): swapper. Any suggestions on a better way to do this? I am trying to track network traffic based on the process name and the process ID. Thanks! Alan Stead