diff options
| author | Roy Marples <roy@marples.name> | 2016-05-16 15:19:28 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-05-16 15:19:28 +0000 |
| commit | f346c6f99e49e4c80963f27044d5b39ba42dd529 (patch) | |
| tree | 76ea03543b8b48f1bc04859310e3731536f00703 | |
| parent | 29b0fc9128c041ae5ed4eddc720232028bfa1eb9 (diff) | |
| download | dhcpcd-f346c6f99e49e4c80963f27044d5b39ba42dd529.tar.xz | |
More DHCP -> BOOTP.
| -rw-r--r-- | dhcp.c | 2 | ||||
| -rw-r--r-- | dhcp.h | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -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: @@ -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 |
