RE: accessing TCP socket hash tables from user space or kernel mo dule

From: Brandeburg, Jesse (jesse.brandeburg@intel.com)
Date: Thu Feb 06 2003 - 14:33:51 EST


Hi, this might be too basic an answer, but did you try using
netstat -lp

shows the socket and port and listening process name/id

maybe you can copy what netstat does?

-----Original Message-----
From: Kah Hwee Chua [mailto:chuakahhwee@hotmail.com]
Sent: Thursday, February 06, 2003 10:23 AM
To: linux-net@vger.kernel.org
Subject: accessing TCP socket hash tables from user space or kernel module

Hi,

I am trying to come up with a network monitor (both as kernel module or as a

user program) that is able to recognize TCP packets streaming into a
particular socket.

I would thereupon want to obtain the PID of the process listening to the
particular socket so that I can set higher scheduling priority for it.

Currently, I've setup my network monitoring from the network device driver
to tap the destination address of the incoming packet but I've yet to be
able to access or read the TCP socket hash table.

Any advice on how to carry this out?

Thanks and best regards,
KahHwee, Chua

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri Feb 07 2003 - 22:00:00 EST