Re: diff: class-static-route of dhcp-option

2014-07-05 Thread YASUOKA Masahiko
On Fri, 04 Jul 2014 22:25:32 +0900 (JST) YASUOKA Masahiko wrote: > On Fri, 4 Jul 2014 09:26:04 +0200 > Kenneth Westerback wrote: >> This check may be present to ensure our dhclient does not get >> confused, which I will check. > > As my reading the code, it seems to be ok. This is false. We ne

Re: diff: class-static-route of dhcp-option

2014-07-04 Thread YASUOKA Masahiko
On Fri, 4 Jul 2014 09:26:04 +0200 Kenneth Westerback wrote: >> @@ -847,7 +847,7 @@ parse_cidr(FILE *cfile, unsigned char *a >> if (token == TOK_NUMBER) >> convert_num(prefix, val, 10, 8); >> >> - if (token != TOK_NUMBER || *prefix < 1 || *prefix > 32) { >> + if

diff: class-static-route of dhcp-option

2014-07-03 Thread YASUOKA Masahiko
ok? Fix classless-{ms-,}static-routes to comply RFC 3442. Number of octets should be changed by corresponding to the prefix length. And 0 should be allowed for the prefix length. Also fix white spaces. Based on diff from Yuuichi Someya. Index: usr.sbin/dhcpd/confpars.c ==