Go to the documentation of this file.
31 #ifndef _DHCP_COMMON_H
32 #define _DHCP_COMMON_H
40 #define DHCP_SERVER_PORT 67
41 #define DHCP_CLIENT_PORT 68
44 #define DHCP_MIN_MSG_SIZE 300
46 #define DHCP_MAX_MSG_SIZE 548
49 #define DHCP_HARDWARE_TYPE_ETH 1
51 #define DHCP_MAGIC_COOKIE 0x63825363
53 #define DHCP_INFINITE_TIME 0xFFFFFFFF
196 #if defined(__CCRX__)
198 #elif defined(__CWCC__) || defined(_WIN32)
199 #pragma pack(push, 1)
242 #if defined(__CCRX__)
244 #elif defined(__CWCC__) || defined(_WIN32)
250 uint8_t optionCode,
const void *optionValue,
size_t optionLen);
@ DHCP_OPT_TCP_KEEPALIVE_GARBAGE
error_t dhcpAddOption(DhcpMessage *message, size_t *messageLen, uint8_t optionCode, const void *optionValue, size_t optionLen)
Append an option to a DHCP message.
@ DHCP_OPT_MOBILE_IP_HOME_AGENT
@ DHCP_OPT_NETBIOS_NBNS_SERVER
@ DHCP_OPT_IMPRESS_SERVER
typedef __packed_struct
DHCP message.
DhcpMessageType
DHCP message types.
@ DHCP_OPT_BOOT_FILE_SIZE
@ DHCP_OPT_TCP_KEEPALIVE_INTERVAL
@ DHCP_OPT_DEFAULT_WWW_SERVER
@ DHCP_OPT_REQUESTED_IP_ADDR
@ DHCP_OPT_NETBIOS_NODE_TYPE
@ DHCP_OPT_TFTP_SERVER_NAME
@ DHCP_OPT_CLASSLESS_STATIC_ROUTE
@ DHCP_OPT_TRAILER_ENCAPSULATION
uint32_t Ipv4Addr
IPv4 network address.
DhcpOptionCode
DHCP option codes.
@ DHCP_OPT_DEFAULT_IP_TTL
@ DHCP_OPT_CAPTIVE_PORTAL
@ DHCP_OPT_MERIT_DUMP_FILE
@ DHCP_OPT_TCP_DEFAULT_TTL
@ DHCP_OPT_X11_DISPLAY_MANAGER
@ DHCP_OPT_OPTION_OVERLOAD
@ DHCP_OPT_ARP_CACHE_TIMEOUT
@ DHCP_OPT_VENDOR_CLASS_ID
@ DHCP_OPT_ALL_SUBNETS_ARE_LOCAL
@ DHCP_OPT_RELAY_AGENT_INFO
@ DHCP_OPT_MAX_DATAGRAM_REASSEMBLY_SIZE
@ DHCP_OPT_NETBIOS_NBDD_SERVER
DhcpOption * dhcpGetOption(const DhcpMessage *message, size_t length, uint8_t optionCode)
Search a DHCP message for a given option.
@ DHCP_OPT_X11_FONT_SERVER
@ DHCP_OPT_STREET_TALK_SERVER
@ DHCP_OPT_RESOURCE_LOCATION_SERVER
@ DHCP_OPT_IP_ADDRESS_LEASE_TIME
@ DHCP_OPT_NON_LOCAL_SOURCE_ROUTING
@ DHCP_OPT_DHCP_MESSAGE_TYPE
@ DHCP_OPT_EXTENSIONS_PATH
@ DHCP_OPT_BROADCAST_ADDR
@ DHCP_OPT_MAX_DHCP_MESSAGE_SIZE
@ DHCP_OPT_DEFAULT_IRC_SERVER
@ DHCP_OPT_PERFORM_MASK_DISCOVERY
@ DHCP_OPCODE_BOOTREQUEST
@ DHCP_OPT_NAME_SERVICE_SEARCH
@ DHCP_OPT_PATH_MTU_AGING_TIMEOUT
@ DHCP_OPT_REBINDING_TIME_VALUE
@ DHCP_OPT_ROUTER_SOLICITATION_ADDR
@ DHCP_OPT_PATH_MTU_PLATEAU_TABLE
@ DHCP_OPT_SUBNET_SELECTION
@ DHCP_OPT_PERFORM_ROUTER_DISCOVERY
@ DHCP_OPT_ETHERNET_ENCAPSULATION
@ DHCP_OPT_VENDOR_SPECIFIC_INFO
IPv4 (Internet Protocol Version 4)
@ DHCP_OPT_PARAM_REQUEST_LIST
@ DHCP_OPT_RENEWAL_TIME_VALUE
@ DHCP_OPT_DEFAULT_FINGER_SERVER