atish bhowmick(deleted)
|
process identification inside io-pkt pfil hook
|
atish bhowmick(deleted)
04/08/2014 4:47 AM
post109839
|
process identification inside io-pkt pfil hook
I have a packet filter implemented using the pfil interface which I am mounting into the io-pkt . In both the input and
output hooks , how do I extract information with regards to process identification whoever is making this connection
request ?
the hooks have signature : hook(void *arg, struct mbuf **m, struct ifnet *ifp, int dir)
how can i get the pid or any relevant process information about the process who is making the network calls which
results in transmission of packet ?
Any information / sample code would be useful .
TIA
Atish
|
|
|