Arnaud LACOMBE
2007-01-18 00:40:01 UTC
Hi,
Is it OK to force the user to specify an address when (s)he wants to change
the netmask (or broadcast) of a given interface ?
Currently, if no address is specified, ifconfig(8) silently fails (in
fact... not really as it does nothing :/). On FreeBSD, if no address are
specified, the netmask of the default address is updated.
The attached patch fix bin/10911 and part of bin/31940 by making the
address mandatory when changing netmask/broadcast address (tested for
INET, not INET6 or ISO).
any comments ?
- Arnaud
Is it OK to force the user to specify an address when (s)he wants to change
the netmask (or broadcast) of a given interface ?
Currently, if no address is specified, ifconfig(8) silently fails (in
fact... not really as it does nothing :/). On FreeBSD, if no address are
specified, the netmask of the default address is updated.
The attached patch fix bin/10911 and part of bin/31940 by making the
address mandatory when changing netmask/broadcast address (tested for
INET, not INET6 or ISO).
any comments ?
- Arnaud