summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/dhcpd.h
diff options
context:
space:
mode:
authorphilip <philip@FreeBSD.org>2009-10-21 23:50:35 +0000
committerphilip <philip@FreeBSD.org>2009-10-21 23:50:35 +0000
commita72663b23bf3cf6b649e0ef3794c893c317ed0bd (patch)
tree4932df0222a83ed26798bc6e55796c6d07fa1066 /sbin/dhclient/dhcpd.h
parentec50bd2dc073063cd6fdb77344b2850072ce342c (diff)
downloadFreeBSD-src-a72663b23bf3cf6b649e0ef3794c893c317ed0bd.zip
FreeBSD-src-a72663b23bf3cf6b649e0ef3794c893c317ed0bd.tar.gz
Make dhclient use bootpc (68) as the source port for unicast DHCPREQUEST
packets instead of allowing the protocol stack to pick a random source port. This fixes the behaviour where dhclient would never transition from RENEWING to BOUND without going through REBINDING in networks which are paranoid about DHCP spoofing, such as most mainstream cable-broadband ISP networks. Reviewed by: brooks Obtained from: OpenBSD (partly - I'm not convinced their solution can work) MFC after: 1 week (pending re approval)
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r--sbin/dhclient/dhcpd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h
index 8097f14..bd4c9c0 100644
--- a/sbin/dhclient/dhcpd.h
+++ b/sbin/dhclient/dhcpd.h
@@ -37,6 +37,8 @@
* Enterprises. To learn more about the Internet Software Consortium,
* see ``http://www.vix.com/isc''. To learn more about Vixie
* Enterprises, see ``http://www.vix.com''.
+ *
+ * $FreeBSD$
*/
#include <sys/types.h>
@@ -194,6 +196,7 @@ struct interface_info {
char name[IFNAMSIZ];
int rfdesc;
int wfdesc;
+ int ufdesc;
unsigned char *rbuf;
size_t rbuf_max;
size_t rbuf_offset;
OpenPOWER on IntegriCloud