|
The Pedigree Project 0.1
|
#include "lwip/opt.h"
Include dependency graph for prot/dhcp.h:Go to the source code of this file.
Classes | |
| struct | dhcp_msg |
Macros | |
| #define | DHCP_CLIENT_PORT 68 |
| #define | DHCP_SERVER_PORT 67 |
| #define | DHCP_CHADDR_LEN 16U |
| #define | DHCP_SNAME_OFS 44U |
| #define | DHCP_SNAME_LEN 64U |
| #define | DHCP_FILE_OFS 108U |
| #define | DHCP_FILE_LEN 128U |
| #define | DHCP_MSG_LEN 236U |
| #define | DHCP_OPTIONS_OFS (DHCP_MSG_LEN + 4U) /* 4 byte: cookie */ |
| #define | DHCP_MIN_OPTIONS_LEN 68U |
| #define | DHCP_OPTIONS_LEN DHCP_MIN_OPTIONS_LEN |
| #define | DHCP_BOOTREQUEST 1 |
| #define | DHCP_BOOTREPLY 2 |
| #define | DHCP_DISCOVER 1 |
| #define | DHCP_OFFER 2 |
| #define | DHCP_REQUEST 3 |
| #define | DHCP_DECLINE 4 |
| #define | DHCP_ACK 5 |
| #define | DHCP_NAK 6 |
| #define | DHCP_RELEASE 7 |
| #define | DHCP_INFORM 8 |
| #define | DHCP_HTYPE_ETH 1 |
| #define | DHCP_MAGIC_COOKIE 0x63825363UL |
| #define | DHCP_OPTION_PAD 0 |
| #define | DHCP_OPTION_SUBNET_MASK 1 /* RFC 2132 3.3 */ |
| #define | DHCP_OPTION_ROUTER 3 |
| #define | DHCP_OPTION_DNS_SERVER 6 |
| #define | DHCP_OPTION_HOSTNAME 12 |
| #define | DHCP_OPTION_IP_TTL 23 |
| #define | DHCP_OPTION_MTU 26 |
| #define | DHCP_OPTION_BROADCAST 28 |
| #define | DHCP_OPTION_TCP_TTL 37 |
| #define | DHCP_OPTION_NTP 42 |
| #define | DHCP_OPTION_END 255 |
| #define | DHCP_OPTION_REQUESTED_IP 50 /* RFC 2132 9.1, requested IP address */ |
| #define | DHCP_OPTION_LEASE_TIME 51 /* RFC 2132 9.2, time in seconds, in 4 bytes */ |
| #define | DHCP_OPTION_OVERLOAD 52 /* RFC2132 9.3, use file and/or sname field for options */ |
| #define | DHCP_OPTION_MESSAGE_TYPE 53 /* RFC 2132 9.6, important for DHCP */ |
| #define | DHCP_OPTION_MESSAGE_TYPE_LEN 1 |
| #define | DHCP_OPTION_SERVER_ID 54 /* RFC 2132 9.7, server IP address */ |
| #define | DHCP_OPTION_PARAMETER_REQUEST_LIST 55 /* RFC 2132 9.8, requested option types */ |
| #define | DHCP_OPTION_MAX_MSG_SIZE 57 /* RFC 2132 9.10, message size accepted >= 576 */ |
| #define | DHCP_OPTION_MAX_MSG_SIZE_LEN 2 |
| #define | DHCP_OPTION_T1 58 /* T1 renewal time */ |
| #define | DHCP_OPTION_T2 59 /* T2 rebinding time */ |
| #define | DHCP_OPTION_US 60 |
| #define | DHCP_OPTION_CLIENT_ID 61 |
| #define | DHCP_OPTION_TFTP_SERVERNAME 66 |
| #define | DHCP_OPTION_BOOTFILE 67 |
| #define | DHCP_OVERLOAD_NONE 0 |
| #define | DHCP_OVERLOAD_FILE 1 |
| #define | DHCP_OVERLOAD_SNAME 2 |
| #define | DHCP_OVERLOAD_SNAME_FILE 3 |
Variables | |
| PACK_STRUCT_BEGIN struct dhcp_msg | PACK_STRUCT_STRUCT |
DHCP protocol definitions
Definition in file prot/dhcp.h.
| #define DHCP_ACK 5 |
Definition at line 145 of file prot/dhcp.h.
| #define DHCP_BOOTREPLY 2 |
Definition at line 138 of file prot/dhcp.h.
| #define DHCP_BOOTREQUEST 1 |
Definition at line 137 of file prot/dhcp.h.
| #define DHCP_CHADDR_LEN 16U |
Definition at line 71 of file prot/dhcp.h.
| #define DHCP_CLIENT_PORT 68 |
Definition at line 66 of file prot/dhcp.h.
| #define DHCP_DECLINE 4 |
Definition at line 144 of file prot/dhcp.h.
| #define DHCP_DISCOVER 1 |
Definition at line 141 of file prot/dhcp.h.
| #define DHCP_FILE_LEN 128U |
Definition at line 75 of file prot/dhcp.h.
| #define DHCP_FILE_OFS 108U |
Definition at line 74 of file prot/dhcp.h.
| #define DHCP_HTYPE_ETH 1 |
DHCP hardware type, currently only ethernet is supported
Definition at line 151 of file prot/dhcp.h.
| #define DHCP_INFORM 8 |
Definition at line 148 of file prot/dhcp.h.
| #define DHCP_MAGIC_COOKIE 0x63825363UL |
Definition at line 153 of file prot/dhcp.h.
| #define DHCP_MIN_OPTIONS_LEN 68U |
Definition at line 101 of file prot/dhcp.h.
| #define DHCP_MSG_LEN 236U |
Definition at line 76 of file prot/dhcp.h.
| #define DHCP_NAK 6 |
Definition at line 146 of file prot/dhcp.h.
| #define DHCP_OFFER 2 |
Definition at line 142 of file prot/dhcp.h.
| #define DHCP_OPTION_BOOTFILE 67 |
Definition at line 189 of file prot/dhcp.h.
| #define DHCP_OPTION_BROADCAST 28 |
Definition at line 165 of file prot/dhcp.h.
| #define DHCP_OPTION_CLIENT_ID 61 |
Definition at line 187 of file prot/dhcp.h.
| #define DHCP_OPTION_DNS_SERVER 6 |
Definition at line 161 of file prot/dhcp.h.
| #define DHCP_OPTION_END 255 |
Definition at line 168 of file prot/dhcp.h.
| #define DHCP_OPTION_HOSTNAME 12 |
Definition at line 162 of file prot/dhcp.h.
| #define DHCP_OPTION_IP_TTL 23 |
Definition at line 163 of file prot/dhcp.h.
| #define DHCP_OPTION_LEASE_TIME 51 /* RFC 2132 9.2, time in seconds, in 4 bytes */ |
Definition at line 172 of file prot/dhcp.h.
| #define DHCP_OPTION_MAX_MSG_SIZE 57 /* RFC 2132 9.10, message size accepted >= 576 */ |
Definition at line 181 of file prot/dhcp.h.
| #define DHCP_OPTION_MAX_MSG_SIZE_LEN 2 |
Definition at line 182 of file prot/dhcp.h.
| #define DHCP_OPTION_MESSAGE_TYPE 53 /* RFC 2132 9.6, important for DHCP */ |
Definition at line 175 of file prot/dhcp.h.
| #define DHCP_OPTION_MESSAGE_TYPE_LEN 1 |
Definition at line 176 of file prot/dhcp.h.
| #define DHCP_OPTION_MTU 26 |
Definition at line 164 of file prot/dhcp.h.
| #define DHCP_OPTION_NTP 42 |
Definition at line 167 of file prot/dhcp.h.
| #define DHCP_OPTION_OVERLOAD 52 /* RFC2132 9.3, use file and/or sname field for options */ |
Definition at line 173 of file prot/dhcp.h.
| #define DHCP_OPTION_PAD 0 |
Definition at line 158 of file prot/dhcp.h.
| #define DHCP_OPTION_PARAMETER_REQUEST_LIST 55 /* RFC 2132 9.8, requested option types */ |
Definition at line 179 of file prot/dhcp.h.
| #define DHCP_OPTION_REQUESTED_IP 50 /* RFC 2132 9.1, requested IP address */ |
Definition at line 171 of file prot/dhcp.h.
| #define DHCP_OPTION_ROUTER 3 |
Definition at line 160 of file prot/dhcp.h.
| #define DHCP_OPTION_SERVER_ID 54 /* RFC 2132 9.7, server IP address */ |
Definition at line 178 of file prot/dhcp.h.
| #define DHCP_OPTION_SUBNET_MASK 1 /* RFC 2132 3.3 */ |
Definition at line 159 of file prot/dhcp.h.
| #define DHCP_OPTION_T1 58 /* T1 renewal time */ |
Definition at line 184 of file prot/dhcp.h.
| #define DHCP_OPTION_T2 59 /* T2 rebinding time */ |
Definition at line 185 of file prot/dhcp.h.
| #define DHCP_OPTION_TCP_TTL 37 |
Definition at line 166 of file prot/dhcp.h.
| #define DHCP_OPTION_TFTP_SERVERNAME 66 |
Definition at line 188 of file prot/dhcp.h.
| #define DHCP_OPTION_US 60 |
Definition at line 186 of file prot/dhcp.h.
| #define DHCP_OPTIONS_LEN DHCP_MIN_OPTIONS_LEN |
make sure user does not configure this too small allow this to be configured in lwipopts.h, but not too small set this to be sufficient for your options in outgoing DHCP msgs
Definition at line 109 of file prot/dhcp.h.
| #define DHCP_OPTIONS_OFS (DHCP_MSG_LEN + 4U) /* 4 byte: cookie */ |
Definition at line 77 of file prot/dhcp.h.
| #define DHCP_OVERLOAD_FILE 1 |
Definition at line 193 of file prot/dhcp.h.
| #define DHCP_OVERLOAD_NONE 0 |
Definition at line 192 of file prot/dhcp.h.
| #define DHCP_OVERLOAD_SNAME 2 |
Definition at line 194 of file prot/dhcp.h.
| #define DHCP_OVERLOAD_SNAME_FILE 3 |
Definition at line 195 of file prot/dhcp.h.
| #define DHCP_RELEASE 7 |
Definition at line 147 of file prot/dhcp.h.
| #define DHCP_REQUEST 3 |
Definition at line 143 of file prot/dhcp.h.
| #define DHCP_SERVER_PORT 67 |
Definition at line 67 of file prot/dhcp.h.
| #define DHCP_SNAME_LEN 64U |
Definition at line 73 of file prot/dhcp.h.
| #define DHCP_SNAME_OFS 44U |
Definition at line 72 of file prot/dhcp.h.
| enum dhcp_state_enum_t |
Definition at line 120 of file prot/dhcp.h.