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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
: 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
-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux