RE: Information abt rotuing and interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* For getting the Interface List use SIOCGIFCONF cmd in ioctl.
* Then use the SIOCGIFFLAGS ioctl cmd for each of the above found interface
  and check for ifr.ifr_flags to be IFF_UP. This would tell you whether the
interface is
  Up or not.
* Go thru the list of ioctl commands in linux/sockios.h & use them
appropriately
  as per your requirement.

* Reg routing it should be in the /proc, but not sure about the exact
loaction.

-Mani


-----Original Message-----
From: kernelnewbies-bounce@nl.linux.org
[mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of paridhi bansal
Sent: Monday, November 18, 2002 2:40 PM
To: kernelnewbies@nl.linux.org
Subject: Information abt rotuing and interfaces


Hi!!

Can somebody tell me how can i get the all information
abt the interfaces that r up on my machine using ioctl
call???

Where is the kernel file that stores the routing
information??

Paridhi 

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/

<<attachment: winmail.dat>>


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux