Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all I am pretty new in network programming, I want to write C program to delete routing entry in linux machine. Can anyone give me some examples for this ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2

    Unhappy Rmeove routing entry by C programming


    Hi all
    I am pretty new in network programming, I want to write C program to delete routing entry in linux machine. Can anyone give me some examples for this problem please.

    Thank you very much in advance.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Why do you want to do this via a C program? There are system commands that can be used from the shell to do this, or you can invoke them from your C program.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2
    Thank you very much for your suggestion,It seem works. But, I want to pass the string of IP address that I want to delete to a function. In my application I got a string of IP address from socket and I want to pass this value to some function to remove from routing table. Is it possible to do that in C and how? Thank you again for your kindness.

Posting Permissions

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