getting ports (tcp, udp) from /proc
Hi all,
How to get the list of TCP , UDP ports running in the linux machine from /proc/net/tcp ,/proc/net/udp through C program. Anyone have this program pls send me. Thanks, Barani |
Quote:
http://www.tazenda.demon.co.uk/phil/net-tools/ It's a matter of sscanf() I guess. Code:
num = sscanf(line, -Bob- |
All times are GMT -5. The time now is 01:43 AM. |