*** From dhcp-server -- To unsubscribe, see the end of this message. ***

Guess I should just play with things more before I post: I've figured
out my question (mostly): to get the option sent, I have to request the
option code in my dhclient.conf (request option-200, option-201;).

The funky thing is that it doesn't matter what type I declare my
variables, they all come through in the form xx:xx:xx where x is a hex
number.  I.e., if I define a few options as

option boo-lean code 201 = boolean;
option int-eger code 202 = unsigned integer 8;
option ipad-dress code 203 = ip-address;
option t-ext code 204 = text;
option foo-static-routes code 200 = array of {
    ip-address, ip-address, ip-address };

and send them as

option boo-lean on;
option int-eger 55;
option ipad-dress 192.168.62.1;
option t-ext "PRODZA";
option foo-static-routes 10.0.1.0 10.0.1.2 255.255.255.0;

I receive them as

(boo-lean) $new_option_201 = 1
(int-eger) $new_option_202 = 37
(ipad-dress) $new_option_203 = c0:a8:3e:1
(t-ext) $new_option_204 = 50:52:4f:44:5a:41
(foo-static-routes) $new_option_200 = a:0:1:0:a:0:1:2:ff:ff:ff:0

They're correct, just in an inconvient form.

Oh, I did notice a typo in SOURCE_DIR/client/clparse.c line 536. 
parse_warn is called expecting a second string argument but isn't given
one (I hit this condition while playing around and it threw out some
nasty garbage.)

Thanks,

--
Jason Holmes


Jason Holmes wrote:

*snip*
 
> So, are declaring your own options supported yet?  And if so, am I just
> doing something wrong?  My syntax follows what's in the dhcp-options
> manpage fairly exactly...  Oh, and to state again, this in on the
> 1999-0507 alpha (both client and server.)
> 
> Thanks,
> 
> --
> Jason Holmes


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED]   Please try to use the web
page first - it will take a long time for your request to be processed by hand.

Archives for this mailing list are available at 
http://www.webnology.com/list-archives/dhcp/dhcp-server

------------------------------------------------------------------------------

Reply via email to