Re: Knowing different network interfaces of the system

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

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux