[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha
Subject:    Re: [Linux-ha-dev] Re: Issues with heartbeat and iproute
From:       Kevin Dwyer <kevin () pheared ! net>
Date:       2002-07-31 21:14:38
[Download RAW message or body]

On Wed, 31 Jul 2002, Alan Robertson grunted something like:

> There is a well-known API for determining the broadcast address of an
> interface through an ioctl.

The well-known API doesn't appear to work in this case.  Or at least
heartbeat isn't yet employing it.  The following line doesn't work:

   /* Fetch the broadcast address of this interface by calling ioctl() */
   return_val = ioctl(fd,SIOCGIFBRDADDR, &ifr);

It works everywhere that you haven't mucked with your IP setup via
iproute.  For instance, on my internal interface, that works just fine.
My external returns 0.0.0.0 even though it has most definitely been set to
the correct value.  iproute is able to find the information, but it is not
nearly as straightforward as calling an ioctl.

> Don't add complexity to the configuration without a VERY good reason.

I agree, however, in the absence of some new broadcast address locating
foo heartbeat ceases to work for me.


-[ kevin@pheared.net                 devel.pheared.net ]-
-[ Rather be forgotten, than remembered for giving in. ]-
-[ ZZ = g ^ (xb * xa) mod p      g = h^{(p-1)/q} mod p ]-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic