[Linux-ha-dev] IPaddr2 gives a spurious warning on stop

Andrew Beekhof beekhof at gmail.com
Thu Mar 8 08:26:44 MST 2007


On 3/7/07, Alan Robertson <alanr at unix.sh> wrote:
> Lars Marowsky-Bree wrote:
> > On 2007-03-06T20:19:54, Alan Robertson <alanr at unix.sh> wrote:
> >
> >> I'm currently rewriting IPaddr* and their interface to findif.  Someone
> >> really broke it in converting them to R2.  Don't know why no one has
> >> complained about them before.
> >
> > What's broken? Any critical issues?
>
> The parsing of options only works if you always specify the options in a
> sort of undocumented hierarchy order.  In R1, this might have existed,
> but it was more obvious.
>
> And, in the process of trying but failing to fix this, the parsing in
> findif was made more complicated (and incorrect).
>
> Describing exactly what the broken code will do in various circumstances
> is hard - but trust me it's broken.
>
> A simple example:
> If I specify an IP address and an interface ONLY, it won't work - even
> though findif is designed to work nicely in that case.

i saw your change (a nice improvement)... would it be a good idea to
pass those values in as options (ie. -b bcast, -m mask, -n nic)?

that way its still flexible, but also usable from the command-line...


More information about the Linux-HA-Dev mailing list