routing info can be found in /etc/gateways --- Mani Mahadevan <mrsmani@cisco.com> wrote: > * 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 part 2 application/ms-tnef name=winmail.dat __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/