On Fri, 17 Sep 2004 12:21:40 +0530, vijay kalkoti <vijayck@gmail.com> wrote: > Hi all, > > I have 2 queries ; > > 1. How to find out the different network interfaces on the system in a > C program. ( assuming more than 1 network interfaces are present in > the system.) i.e, are there any system calls or any mechanism of > knowing this in a program. > (NOT BY SHELL COMMAND ifconfig or so.. ) > > 2. How to know the Layer 3 protocol running on the netowork interface. > > Waiting for u r response > > Thanks & Regards > vijayck I believe ioctrl with request=SIOGIFINDEX can find that info out. -- -Tony -- Having a lot of fun with Xilinx Virtex Pro II reconfigurable HW + ppc + Linux - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html