summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-05-16 15:19:28 +0000
committerRoy Marples <roy@marples.name>2016-05-16 15:19:28 +0000
commitf346c6f99e49e4c80963f27044d5b39ba42dd529 (patch)
tree76ea03543b8b48f1bc04859310e3731536f00703
parent29b0fc9128c041ae5ed4eddc720232028bfa1eb9 (diff)
downloaddhcpcd-f346c6f99e49e4c80963f27044d5b39ba42dd529.tar.xz
More DHCP -> BOOTP.
-rw-r--r--dhcp.c2
-rw-r--r--dhcp.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/dhcp.c b/dhcp.c
index 2579495d..cdfbc941 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -771,7 +771,7 @@ make_message(struct bootp **bootpm, const struct interface *ifp, uint8_t type)
bootp->ciaddr = state->addr.s_addr;
}
- bootp->op = DHCP_BOOTREQUEST;
+ bootp->op = BOOTREQUEST;
bootp->htype = (uint8_t)ifp->family;
switch (ifp->family) {
case ARPHRD_ETHER:
diff --git a/dhcp.h b/dhcp.h
index 5d4ccf47..388fcec4 100644
--- a/dhcp.h
+++ b/dhcp.h
@@ -38,16 +38,16 @@
#include "auth.h"
#include "dhcp-common.h"
-/* UDP port numbers for DHCP */
+/* UDP port numbers for BOOTP */
#define BOOTPS 67
#define BOOTPC 68
#define MAGIC_COOKIE 0x63825363
#define BROADCAST_FLAG 0x8000
-/* DHCP message OP code */
-#define DHCP_BOOTREQUEST 1
-#define DHCP_BOOTREPLY 2
+/* BOOTP message OP code */
+#define BOOTREQUEST 1
+#define BOOTREPLY 2
/* DHCP message type */
#define DHCP_DISCOVER 1