Networking Forums

Networking Forums > Computer Networking > Linux Networking > SIOCGIFFLAGS fails loopback interface

Reply
Thread Tools Display Modes

SIOCGIFFLAGS fails loopback interface

 
 
Alexandros Karypidis
Guest
Posts: n/a

 
      07-14-2004, 01:25 PM
When I call ioctl() with SIOCGIFFLAGS for interface "lo" (loopback) it
fails.

strerror() says: No such device

The same code works for normal intefaces (ethX). Any ideas why this is so?

The reason I need this is to test whether the interface is multicast-capable
(flag IFF_MULTICAST).

 
Reply With Quote
 
 
 
 
Floyd L. Davidson
Guest
Posts: n/a

 
      07-14-2004, 04:57 PM
Alexandros Karypidis <(E-Mail Removed)> wrote:
>When I call ioctl() with SIOCGIFFLAGS for interface "lo" (loopback) it
>fails.
>
>strerror() says: No such device
>
>The same code works for normal intefaces (ethX). Any ideas why this is so?


Your code has a bug.

>The reason I need this is to test whether the interface is multicast-capable
>(flag IFF_MULTICAST).


--
FloydL. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
loopback interface mbm Linux Networking 0 02-06-2008 09:21 AM
Changing the Source IP on a Loopback Interface Jason Timmins Windows Networking 0 02-23-2007 02:57 PM
MS TCP Loopback Interface Jag Windows Networking 2 05-25-2006 09:50 PM
Problem with TCP connection over loopback interface Prasanna Krishnamoorthy Linux Networking 0 05-17-2005 11:33 AM
Freeswan and loopback interface Paolo Linux Networking 2 05-09-2004 01:30 PM



1 2 3 4 5 6 7 8 9 10 11