Module Name: src
Committed By: andvar
Date: Sun Sep 19 10:46:17 UTC 2021
Modified Files:
src/usr.bin/rump_dhcpclient: dhcp.c dhcp.h
Log Message:
fix typo in rump dhcpclient definition.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/rump_dhcpclient/dhcp.c
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/rump_dhcpclient/dhcp.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/rump_dhcpclient/dhcp.c
diff -u src/usr.bin/rump_dhcpclient/dhcp.c:1.2 src/usr.bin/rump_dhcpclient/dhcp.c:1.3
--- src/usr.bin/rump_dhcpclient/dhcp.c:1.2 Thu Sep 13 21:44:50 2012
+++ src/usr.bin/rump_dhcpclient/dhcp.c Sun Sep 19 10:46:17 2021
@@ -730,11 +730,11 @@ make_message(struct dhcp_message **messa
}
*p++ = DHO_END;
-#ifdef BOOTP_MESSAGE_LENTH_MIN
+#ifdef BOOTP_MESSAGE_LENGTH_MIN
/* Some crappy DHCP servers think they have to obey the BOOTP minimum
* message length.
* They are wrong, but we should still cater for them. */
- while (p - m < BOOTP_MESSAGE_LENTH_MIN)
+ while (p - m < BOOTP_MESSAGE_LENGTH_MIN)
*p++ = DHO_PAD;
#endif
Index: src/usr.bin/rump_dhcpclient/dhcp.h
diff -u src/usr.bin/rump_dhcpclient/dhcp.h:1.1 src/usr.bin/rump_dhcpclient/dhcp.h:1.2
--- src/usr.bin/rump_dhcpclient/dhcp.h:1.1 Thu Jan 20 18:47:20 2011
+++ src/usr.bin/rump_dhcpclient/dhcp.h Sun Sep 19 10:46:17 2021
@@ -133,7 +133,7 @@ enum FQDN {
#define DHCP_OPTION_LEN (MTU_MAX - DHCP_FIXED_LEN)
/* Some crappy DHCP servers require the BOOTP minimum length */
-#define BOOTP_MESSAGE_LENTH_MIN 300
+#define BOOTP_MESSAGE_LENGTH_MIN 300
struct dhcp_message {
uint8_t op; /* message type */