From cd40ba0cfbb9c6b94e74502c33c17184853e769f Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 15 Oct 2010 09:51:16 +0000 Subject: Add and ignore DHCP option 66/0x42 TFTP server name. ok krw@ phessler@ --- sbin/dhclient/dhclient.c | 3 ++- sbin/dhclient/dhcp.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 950ab08de95..b2abea4e9f3 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.136 2010/09/24 13:44:14 claudio Exp $ */ +/* $OpenBSD: dhclient.c,v 1.137 2010/10/15 09:51:15 jsg Exp $ */ /* * Copyright 2004 Henning Brauer @@ -2059,6 +2059,7 @@ check_option(struct client_lease *l, int option) case DHO_DHCP_CLASS_IDENTIFIER: case DHO_DHCP_CLIENT_IDENTIFIER: case DHO_DHCP_USER_CLASS_ID: + case DHO_TFTP_SERVER: case DHO_END: return (1); default: diff --git a/sbin/dhclient/dhcp.h b/sbin/dhclient/dhcp.h index f5ac79ad8ad..e1394283972 100644 --- a/sbin/dhclient/dhcp.h +++ b/sbin/dhclient/dhcp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcp.h,v 1.7 2007/02/01 22:39:43 krw Exp $ */ +/* $OpenBSD: dhcp.h,v 1.8 2010/10/15 09:51:15 jsg Exp $ */ /* Protocol structures... */ @@ -152,6 +152,7 @@ struct dhcp_packet { #define DHO_DHCP_REBINDING_TIME 59 #define DHO_DHCP_CLASS_IDENTIFIER 60 #define DHO_DHCP_CLIENT_IDENTIFIER 61 +#define DHO_TFTP_SERVER 66 #define DHO_DHCP_USER_CLASS_ID 77 #define DHO_END 255 -- cgit v1.2.3