On Fri, 2007-10-26 at 06:16 -0400, Richard Freeman wrote:
> If there is some problem with this suggestion feel free to shoot it full
> of holes, but how about something like:
> 
> address_eth0="1.2.3.4"
> netmask_eth0="255.255.255.0"
> broadcast_eth0="1.2.3.255"
> gateway_eth0="1.2.3.1"
> network_eth0="1.2.3.0"
> hostname_eth0="mypc"
> options_eth0="bells and whistles"

How would you construct that if you wanted to add 5 addresses to the
interface?

> Without digging through the original source I'm not sure what everything
> else in that array is, but I think you get the picture.  Instead of
> sticking all these parameters into a big array why not break them down
> into what they actually are used for?  This should also make the code
> that actually reads back these variables a lot more readable - instead
> of wondering what the 5th field in the array is you would see something
> meaningful like "netmask".

We don't care what the actual options or values are, they are merely
passed to ifconfig. Basically we need the equivalent of doing this

ifconfig eth0 1.2.3.4 netmask 5.6.7.8 broadcast 1.2.3.4
ifconfig eth0 5.6.7.8 netmask 1.2.3.4 broadcast 5.6.7.8
ifconfig eth0 maybe some undocumented command

And we do this with a few other tools as well. Lets take a list of
preferred wireless AP's to connect to. How would you have that? As the
only invalid character in an SSID is a NULL (daft, but I didn't write
the specification)

Thanks

Roy

-- 
[EMAIL PROTECTED] mailing list

Reply via email to