Skip to contentSkip to conversation

proc interface to netstat

LARTC [email protected] 2 participants 2 messages Mar 10, 2003

lore
Share & tools
lore
#1 lore raw

Hmmm,

If you feel like decoding it, try:

/proc/net/{udp,unix,tcp}

At least on my RH 7.2 machine with a RedHat 2.4.18 kernel, that's where it is.

Those will tell you about udp/unix/tcp respectively. Not sure all the information is there for tcp/udp, but it looks like it is for unix.

You might try and see where netstat gets the information from, I wouldn't be shocked to find out it's from /proc/net/*.

Kirby

Quoted 10 lines · On Sun, 2003-03-09 at 21:59, [email protected] wrote:

If i would like to gather information based on 'netstat -an' or something similar, can I get it from proc file system ?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Signature · 5 lines
Real Programmers view electronic multimedia files with a hex editor.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/