netdev
[Top] [All Lists]

Resend: SIOCGIFBRDADDR?

To: netdev@xxxxxxxxxxx
Subject: Resend: SIOCGIFBRDADDR?
From: Alan Robertson <alanr@xxxxxxx>
Date: Thu, 15 Aug 2002 09:03:09 -0600
Cc: Kevin Dwyer <kevin@xxxxxxxxxxx>
Organization: IBM Linux Technology Center
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
I sent this earlier, but I got no reply, and can't seem to find it in the archives. If you reply to this, could you please copy both Kevin Dwyer and myself on the reply? Many thanks!

Hi,

Some folks using the linux-ha (heartbeat) software have been running into
some network-related problems, and Alan Cox suggested that you folks could
help us out.

One of the ways you can configure linux-ha protocols is to send broadcast
packets.  In this case, our software needs to get the broadcast address from
the OS, so we can proceed.  We currently use the SIOCGIFBRDADDR ioctl to do
this for us.  This has worked pretty well for us for quite some time, but
recently some users have run into some problems.

It appears that if one configures an interface using ifconfig, then the
SIOCGIFBRDADDR ioctl works quite nicely to determine the broadcast address
of an interface.

However, if one uses the iproute2 tools to configure the interface, then it
appears that the SIOCGIFBRDADDR ioctl returns bogus results on that interface.

Is this supposed to be the case?

Is there a different method we're supposed to use instead of SIOCGIFBRDADDR?


        Thanks!

        -- Alan Robertson
           alanr@xxxxxxx
           http://linux-ha.org/




<Prev in Thread] Current Thread [Next in Thread>