[PATCH] net-tools 1.60: deferred ifconfig netmask

Pekka Savola pekkas at netcore.fi
Thu Sep 2 05:32:33 UTC 2004


On Wed, 1 Sep 2004, Malita, Florin wrote:
> OTOH: 
>         [root at scox root]# ifconfig eth0:1 192.168.120.12 netmask
>         255.255.252.0
>         [root at scox root]#
> 
> succeeds the first time since the actions are executed in the right
> order: SIOCSIFADDR _then_ SIOCSIFNETMASK.
> 
> This patch against net-tools-1.60 defers the netmask ioctl when using
> implicit/CIDR notation till after the address has been assigned. IOW, it
> makes the 2 commands equivalent (as some of us might expect ;).

Shouldn't we rather be removing ifconfig or making it ready-only
instead, as /sbin/ip seems to be vastly superior ?

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings





More information about the fedora-devel-list mailing list