Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-08-2010, 02:42 PM   #1
LQ Newbie
Registered: Dec 2009
Posts: 5

Rep: Reputation: 0
ioctl(SIOCGIFCONF) returns only loopback interface info


I wrote a program to get the list of registered network interfaces. This uses a struct ifconf and the ioctl(SIOCGIFCONF) to get that list. This program runs during 'init' scripts. First I installed the ethernet and wifi drivers and then the program ran. I also tried to ifup the network interfaces before the program execute. But only the loopback interface was gotten. Why is it occurring? How can I solve it?


ioctl, networking, program

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
"Inappropriate ioctl for device" on loopback after rebuild mk27 Linux - Kernel 2 12-02-2009 07:11 PM
ioctl call returns error. HarryBoy Programming 6 09-10-2008 11:08 AM
(ioctl(ts->fd, EVIOCGVERSION, &version) returns me -1, why?? webquinty Linux - Newbie 3 07-07-2008 08:54 AM
Cooked IOCTL() interface: WTF??? kopikat Linux - General 1 01-05-2005 06:47 AM
Cooked IOCTL() interface: WTF??? kopikat Linux - Newbie 0 01-03-2005 04:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration