Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2004 10:58:39 EDT
From:      TM4525@aol.com
To:        JohnsoBS@vicksburg.navy.mil
Cc:        questions@freebsd.org
Subject:   Re: ifconfig alias: File Exists
Message-ID:  <29.64b6a44f.2eae6e9f@aol.com>

next in thread | raw e-mail | index | archive | help
In a message dated 10/24/04 11:18:14 AM Eastern Daylight Time, 
JohnsoBS@vicksburg.navy.mil writes:
> >Is that new?  You are right, that fixed it, but didn't think 
> I had to do 
> >that before :(
> You get it because the guy who maintains ifconfig didn't have 
> the foresight
> to realize the "alias" should imply a host mask, and also 
> that the guy who
> coded the kernel code didn't think that assuming a host mask was 
> reasonable.
> 
> Welcome to open source. Love it and live with it.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
> 

>To assume makes an ass out of u and me. Ok, that out of the way, the config
>you assume should be coded into ifconfig and kernel is not 100% going to be
>used all the time. In fact I have multiple nets and have multiple netmask
>assigned on the one machine. If you actually READ "man ifconfig" it states
>that this should be set to what you assume it should be. It helps when
>people don't attack things they don't fully understand cause for many it
>might be a person's first view at what you are bashing. Unfortunately also,
>many people aren't smart enough to get a second opinion or to try beyond
>there first try or someone person's like yourselfs comments.
As for the "assume" thing, speak for yourself. Your implication that there 
should
be no defaults is quite asinine. 

If it doesn't work with no netmask specified, then its broken. Its not 
unreasonable
to assume that if no netmask is provided, then a host mask (for an alias) is 
intended. 
In the absence of a netmask, the only "assumption" thats reasonable is a 
host mask. 

There are lots of "assumptions" made by ifconfig. It "assumes" that you only
want the interface to have one address (as if you submit an address to 
an interface that already has one it explicitly deletes the other). Its not 
unreasonable to assume that, nor would it be unreasonable to assume that
the intention was to add an alias. It would certainly be safer.

And I "understand" it a lot better than you do. In today's world, "assuming" 
the natural mask (which is what ifconfig has done since the beginning of time)
is wrong most of the time. Just because someone back in the 1970s decided 
to do it that way doesn't make it correct. One of the basic properties of a
default setting is that it should work.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29.64b6a44f.2eae6e9f>