Re: How to get creatior PID information for the local tcp connection

2016-04-07 Thread Eric Dumazet
On Thu, 2016-04-07 at 11:26 -0700, Eric Dumazet wrote: > On Thu, 2016-04-07 at 23:01 +0530, Vishnu Pratap Singh wrote: > > Hi, > > > > > > Issue - How to get PID information for the local tcp connection > > > > > > > > i want to get the creator PID for each socket in user space for local > >

Re: How to get creatior PID information for the local tcp connection

2016-04-07 Thread Eric Dumazet
On Thu, 2016-04-07 at 11:26 -0700, Eric Dumazet wrote: > On Thu, 2016-04-07 at 23:01 +0530, Vishnu Pratap Singh wrote: > > Hi, > > > > > > Issue - How to get PID information for the local tcp connection > > > > > > > > i want to get the creator PID for each socket in user space for local > >

Re: How to get creatior PID information for the local tcp connection

2016-04-07 Thread Eric Dumazet
On Thu, 2016-04-07 at 23:01 +0530, Vishnu Pratap Singh wrote: > Hi, > > > Issue - How to get PID information for the local tcp connection > > > > i want to get the creator PID for each socket in user space for local > tcp connection, i see in kernel there is support for returing PID with >

Re: How to get creatior PID information for the local tcp connection

2016-04-07 Thread Eric Dumazet
On Thu, 2016-04-07 at 23:01 +0530, Vishnu Pratap Singh wrote: > Hi, > > > Issue - How to get PID information for the local tcp connection > > > > i want to get the creator PID for each socket in user space for local > tcp connection, i see in kernel there is support for returing PID with >

How to get creatior PID information for the local tcp connection

2016-04-07 Thread Vishnu Pratap Singh
Hi, Issue - How to get PID information for the local tcp connection i want to get the creator PID for each socket in user space for local tcp connection, i see in kernel there is support for returing PID with "SO_PEERCRED" ioctl to work across namespaces. it uses struct pid and struct cred

How to get creatior PID information for the local tcp connection

2016-04-07 Thread Vishnu Pratap Singh
Hi, Issue - How to get PID information for the local tcp connection i want to get the creator PID for each socket in user space for local tcp connection, i see in kernel there is support for returing PID with "SO_PEERCRED" ioctl to work across namespaces. it uses struct pid and struct cred