Find the answer to your Linux question:
Results 1 to 2 of 2
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. ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    3

    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

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,391
    You only need to read information from here in two situations:

    1. You're an expert and are writing some whizzer new tool for inclusion with the linux networking stack code.

    2. You're doing homework.

    I'll assume that you're not an expert on this (if you were why would you come and ask us this here - you'd already know the answer), so you must be doing homework.

    Asking for answers to your homework questions isn't allowed on this forum.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •