LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-13-2005, 10:34 AM   #1
executive
LQ Newbie
 
Registered: Oct 2004
Posts: 10

Rep: Reputation: 0
Obtaining IP LAN gateway in C under Linux


hi
can any body tell me how to get the IP address of LAN gateway and the
netmask in C under linux.
and other information such as packets sent and recieved...

regards
 
Old 04-13-2005, 11:17 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Re: Obtaining IP LAN gateway in C under Linux

Quote:
Originally posted by executive
hi
can any body tell me how to get the IP address of LAN gateway and the
netmask in C under linux.
and other information such as packets sent and recieved...

regards
Google, and the Linux Documentation Project http://www.ibiblio.org/pub/Linux/doc...-formats/html/
 
Old 04-13-2005, 11:21 AM   #3
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
man route(4)
 
  


Reply



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
Using a Linux box as a residential gateway on my LAN LordFett Linux - Newbie 9 12-21-2005 05:20 PM
Control over IP adress in LAN via Linux Gateway pin_bk Linux - Networking 3 10-15-2004 03:41 AM
Linux as Gateway in a LAN out of 20 PCs stormblast Linux - Newbie 2 04-30-2004 12:22 AM
Obtaining a default gateway IP address from a Win2K workstation Linh Programming 1 02-20-2004 02:55 AM
help in obtaining all ips in LAN Rex_chaos Linux - Networking 2 07-22-2003 12:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:27 AM.

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