On 8/24/06, Alan Robertson <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>

"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@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to