[Linux-ha-dev] IPaddr in CVS
Andrew Beekhof
beekhof at gmail.com
Thu Aug 24 10:24:42 MDT 2006
IPaddr should now be functional again.
As an added improvement, findif will now happily take either netmask notation.
The change has been made in http://hg.beekhof.net/lha/crm-stable (and
backported to CVS)
Please let me know if problems persist.
On 8/24/06, Andrew Beekhof <beekhof at gmail.com> wrote:
> On 8/24/06, Alan Robertson <alanr at unix.sh> wrote:
> > Andrew Beekhof wrote:
> > > What I dont understand if why we have a tool that only accepts CIDR
> > > when ifconfig on Linux will only accept the other form.
> >
> > How are the two related?
>
> Just that it makes maintaining the RA more "interesting".
>
> My latest cleanup almost certainly broke this because I removed the
> second call to findif which IIRC recalculated the netmask using the
> value we calculated in the first call.
>
> Also from a configuration view, someone administrating a linux box is
> (I imagine) likely to see [.*]netmask and try to stick in the old form
> - because thats what they're used to supplying ifconfig.
>
> How about a 10 line patch to allow findif to accept both?
>
> >
> > We use the more modern and convenient form -- and we always have. CIDR
> > format also makes impossible certain kinds of errors. Old style
> > netmasks allow you to create nonsensical netmasks that are impossible in
> > CIDR notation.
> >
> > So, 7 years ago, we decided to not use the antiquated 255.255.255.0
> > format, but opted for the more convenient and modern, and less
> > error-prone CIDR notation that people in networking uses in their daily
> > lives. When talking, people say 'it's a /24 subnet', not it's a
> > "255.255.255.0" subnet.
> >
> > There are other historical reasons as well relating to the early
> > versions of heartbeat. If you want to hear 7-8 year old stories about
> > how this was also related to the first code for heartbeat, let me know.
> > But, the main reason was CIDR was more convenient and easier to use.
> >
> > Everyone seems to be constantly telling me how much they hate ipaddr
> > anyway. Maybe that didn't include you, though...
> >
> >
> > --
> > Alan Robertson <alanr at unix.sh>
> >
> > "Openness is the foundation and preservative of friendship... Let me
> > claim from you at all times your undisguised opinions." - William
> > Wilberforce
> > _______________________________________________________
> > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
> >
>
More information about the Linux-HA-Dev
mailing list