summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/clparse.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2007-02-09 17:50:26 +0000
committeremaste <emaste@FreeBSD.org>2007-02-09 17:50:26 +0000
commit4d18a6391e0641145ae2bba5e54e5bf9e763eb57 (patch)
tree5a719d3797670e80a657e26189df5834f2199ca2 /sbin/dhclient/clparse.c
parent73c99587923d911647ba0ffc401352f2a4e22219 (diff)
downloadFreeBSD-src-4d18a6391e0641145ae2bba5e54e5bf9e763eb57.zip
FreeBSD-src-4d18a6391e0641145ae2bba5e54e5bf9e763eb57.tar.gz
Implement RFC3442, the Classless Static Route option.
The original DHCP specification includes a route option but it supports only class-based routes. RFC3442 adds support for specifying the netmask width for each static route. A variable length encoding is used to minimize the size of this option. PR: bin/99534 Submitted by: Andrey V. Elsukov <bu7cher@yandex.ru> Reviewed by: brooks
Diffstat (limited to 'sbin/dhclient/clparse.c')
-rw-r--r--sbin/dhclient/clparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c
index e43a876..5d7084e 100644
--- a/sbin/dhclient/clparse.c
+++ b/sbin/dhclient/clparse.c
@@ -90,6 +90,8 @@ read_client_conf(void)
top_level_config.requested_options
[top_level_config.requested_option_count++] = DHO_TIME_OFFSET;
top_level_config.requested_options
+ [top_level_config.requested_option_count++] = DHO_CLASSLESS_ROUTES;
+ top_level_config.requested_options
[top_level_config.requested_option_count++] = DHO_ROUTERS;
top_level_config.requested_options
[top_level_config.requested_option_count++] = DHO_DOMAIN_NAME;
OpenPOWER on IntegriCloud