Kacheong Poon wrote:
Dave Miner wrote:
What's missing here is relating this to the OFFER_WAIT parameter in
/etc/default/dhcpagent. Is it governed by that or not (if not we have a
lot more to explore...)?
Yes, it has the same behavior as is today. So the time to
wait for multiple offers is the same.
And if no offers are received, what does the
discover request return?
DHCP_IPC_E_TIMEOUT.
What if there were multiple offers? Can I say "dhcpinfo -o 2" to get
the second offer?
The -o option is translated to the DHCP_GET_ALL_TAG request
of DHCPOFFER messages. So it will print out all the offers.
Why should it be that way? What if I'd like to just get a particular
parameter from a particular offer, e.g.:
dhcpinfo -i bge0 -o 2 Router
To me, the "get all" operation is orthogonal to the "get it from a
particular offer instead of an ack" selection.
Based on the description, I don't see why these need to be mutually
exclusive. "dhcpinfo -o -a" seems perfectly reasonable.
The option -o is used to get info from DHCPOFFER and the -a
is used to get info from DHCPACK.
That seems to be an unnecessary change. Why do I now need to use "-a"
to get it from the ack? That will break any existing scripts, which
already expect to use the existing syntax.
Dave
_______________________________________________
networking-discuss mailing list
[email protected]