Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Search this Thread
Old 01-12-2005, 06:53 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
Getting gateway address in C/C++

Is there a generic command to get/set the gateway address in linux through C/C++?

Any help would be appreciated,
Old 01-12-2005, 03:21 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
system( "cat /proc/net/route" ) ?

Old 01-13-2005, 06:24 AM   #3
LQ Newbie
Registered: Jan 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Is there something better than performing a system call?

What about SIOADDRT and SIODELRT, how do I use those?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GATEWAY address emailssent Linux - Networking 2 09-30-2004 05:30 AM
gateway address amanjsingh Linux - Newbie 3 06-05-2004 05:42 AM
What is Gateway address and what is Network address? abefroman Linux - Networking 1 03-17-2004 08:25 PM
Gateway Address BittaBrotha Linux - Networking 3 10-13-2003 07:56 AM
Advice on Gateway and IP address bruce1271 Linux - Networking 10 06-18-2003 06:20 PM

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration