lkml.org 
[lkml]   [2000]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Broadcast
On Wed, 1 Nov 2000, Dennis Bjorklund wrote:

> > ioctl(5, SIOCGIFFLAGS, 0xbffff620) = 0
> > ioctl(5, SIOCSIFFLAGS, 0xbffff620) = 0
> >
> > In this case the flags were gotten with SIOCGIFFLAGS, then the
> > exact same stuff was written back with SIOCSIFFLAGS.
>
> IFF_BROADCAST is bit number 1 (that is 0x2). So in this case it indicates
> that the broadcast bit is not set before and not set after. But why do I
> see BROADCAST listed when i do "ifconfig eth1" then. This bit should be
> set.
>
> Right now I'm a bit confused. There is something strange going on here
> that I don't understand.

Forget this comment.

The 0xbffff620 is an adress and nothing else. It should be the same. The
flag is toggled in the struct that the adress points to.

It explains the strace but not why I can't clear the flag..

/Dennis

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.060 / U:6.248 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site