summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/tables.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2014-01-21 03:07:50 +0000
committerkrw <krw@openbsd.org>2014-01-21 03:07:50 +0000
commit171f404ee8fdfb14927e71908b4ad3e576c30da5 (patch)
tree12bb534ff998697cbf3807c0884619dbc8c11afd /usr.sbin/dhcpd/tables.c
parentUpdate gcc-local(1) with recent changes to the toolchain: (diff)
downloadwireguard-openbsd-171f404ee8fdfb14927e71908b4ad3e576c30da5.tar.xz
wireguard-openbsd-171f404ee8fdfb14927e71908b4ad3e576c30da5.zip
Add parsing for options 121 (classless-static-routes) and 249
(classless-ms-static-routes). dhcpd can now specify and serve these options and dhclient can recognize and use supersede, etc. statements on them. Based on a diff from Stefan Rinke. Thanks!
Diffstat (limited to 'usr.sbin/dhcpd/tables.c')
-rw-r--r--usr.sbin/dhcpd/tables.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/tables.c b/usr.sbin/dhcpd/tables.c
index 3e5315bf90b..027af5d42c5 100644
--- a/usr.sbin/dhcpd/tables.c
+++ b/usr.sbin/dhcpd/tables.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tables.c,v 1.9 2009/09/01 08:42:31 reyk Exp $ */
+/* $OpenBSD: tables.c,v 1.10 2014/01/21 03:07:51 krw Exp $ */
/* Tables of information... */
@@ -183,7 +183,7 @@ struct option dhcp_options[256] = {
{ "option-118", "X", &dhcp_universe, 118 },
{ "option-119", "X", &dhcp_universe, 119 },
{ "option-120", "X", &dhcp_universe, 120 },
- { "option-121", "X", &dhcp_universe, 121 },
+ { "classless-static-routes", "CIA", &dhcp_universe, 121 },
{ "option-122", "X", &dhcp_universe, 122 },
{ "option-123", "X", &dhcp_universe, 123 },
{ "option-124", "X", &dhcp_universe, 124 },
@@ -311,7 +311,7 @@ struct option dhcp_options[256] = {
{ "option-246", "X", &dhcp_universe, 246 },
{ "option-247", "X", &dhcp_universe, 247 },
{ "option-248", "X", &dhcp_universe, 248 },
- { "option-249", "X", &dhcp_universe, 249 },
+ { "classless-ms-static-routes", "CIA", &dhcp_universe, 249 },
{ "option-250", "X", &dhcp_universe, 250 },
{ "option-251", "X", &dhcp_universe, 251 },
{ "autoproxy-script", "t", &dhcp_universe, 252 },