LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hi,

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?
 
  


Reply

Tags
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 06:11 PM
ioctl call returns error. HarryBoy Programming 6 09-10-2008 10:08 AM
(ioctl(ts->fd, EVIOCGVERSION, &version) returns me -1, why?? webquinty Linux - Newbie 3 07-07-2008 07:54 AM
Cooked IOCTL() interface: WTF??? kopikat Linux - General 1 01-05-2005 05:47 AM
Cooked IOCTL() interface: WTF??? kopikat Linux - Newbie 0 01-03-2005 03:55 PM


All times are GMT -5. The time now is 07:28 AM.

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