• Bug#262288: heartbeat: Ipaddr2 fails if we provide broadcast as command

    From Emmanuel Lacour@1:229/2 to Horms on Mon Aug 16 14:50:08 2004
    From: [email protected]

    On Sat, Jul 31, 2004 at 03:15:06PM +0900, Horms wrote:
    I think there is also a lack of doc/help for this "-C" findif option...

    I think lack of documentation is an understatement.
    Patches for that are more than welcome.


    Here is a little patch ;-)

    --
    Emmanuel Lacour ------------------------------------ Easter-eggs
    44-46 rue de l'Ouest - 75014 Paris - France - M�tro Gait�
    Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76 mailto:[email protected] - http://www.easter-eggs.com

    --- heartbeat-1.2.2/heartbeat/findif.c.orig 2004-04-29 03:28:07.000000000 +0200
    +++ heartbeat-1.2.2/heartbeat/findif.c 2004-08-16 14:17:47.000000000 +0200
    @@ -29,8 +29,8 @@
    *
    ***********************************************************
    *
    - * Our single argument is of the form:
    - * address[/netmask[/interface][/broadcast]]
    + * Arguments:
    + * [-C] address[/netmask[/interface][/broadcast]]
    *
    * So, the following forms are legal:
    * address
    @@ -53,9 +53,11 @@
    * If the broadcast address was omitted, we assume the highest address
    * in the subnet.
    *
    - * If the interfaceis omitted, we choose the interface associated with
    + * If the interface is omitted, we choose the interface associated with
    * the route