LinuxQuestions.org
Visit Jeremy's Blog.
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, 11: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, 12:17 PM   #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, 12:21 PM   #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: 46
man route(4)
 
  


Reply


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

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

All times are GMT -5. The time now is 01:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration