#include "lwip/opt.h"
#include "lwip/netif.h"
#include "lwip/udp.h"
Go to the source code of this file.
◆ DHCP_ACK
◆ DHCP_BACKING_OFF
#define DHCP_BACKING_OFF 12 |
not yet implemented #define DHCP_RELEASING 11
◆ DHCP_BOOTREPLY
◆ DHCP_BOOTREQUEST
#define DHCP_BOOTREQUEST 1 |
◆ DHCP_BOUND
◆ DHCP_BROADCAST_FLAG
#define DHCP_BROADCAST_FLAG 15 |
◆ DHCP_BROADCAST_MASK
#define DHCP_BROADCAST_MASK (1 << DHCP_FLAG_BROADCAST) |
◆ DHCP_CHADDR_LEN
#define DHCP_CHADDR_LEN 16U |
◆ DHCP_CHADDR_OFS
◆ DHCP_CHECKING
◆ DHCP_CIADDR_OFS
◆ DHCP_CLIENT_PORT
#define DHCP_CLIENT_PORT 68 |
◆ DHCP_COARSE_TIMER_SECS
#define DHCP_COARSE_TIMER_SECS 60 |
◆ DHCP_COOKIE_OFS
◆ DHCP_DECLINE
◆ DHCP_DISCOVER
◆ DHCP_FILE_LEN
#define DHCP_FILE_LEN 128U |
◆ DHCP_FILE_OFS
◆ DHCP_FINE_TIMER_MSECS
#define DHCP_FINE_TIMER_MSECS 500 |
◆ DHCP_FLAGS_OFS
◆ DHCP_GIADDR_OFS
◆ DHCP_HLEN_ETH
◆ DHCP_HLEN_OFS
◆ DHCP_HOPS_OFS
◆ DHCP_HTYPE_ETH
◆ DHCP_HTYPE_OFS
◆ DHCP_INFORM
◆ DHCP_INFORMING
◆ DHCP_INIT
◆ DHCP_MAX_DNS
◆ DHCP_MIN_OPTIONS_LEN
#define DHCP_MIN_OPTIONS_LEN 68U |
◆ DHCP_MSG_LEN
◆ DHCP_MSG_OFS
#define DHCP_MSG_OFS (UDP_DATA_OFS) |
DHCP message item offsets and length
◆ DHCP_NAK
◆ DHCP_OFF
◆ DHCP_OFFER
◆ DHCP_OP_OFS
◆ DHCP_OPTION_BOOTFILE
#define DHCP_OPTION_BOOTFILE 67 |
◆ DHCP_OPTION_BROADCAST
#define DHCP_OPTION_BROADCAST 28 |
◆ DHCP_OPTION_CLIENT_ID
#define DHCP_OPTION_CLIENT_ID 61 |
◆ DHCP_OPTION_DNS_SERVER
#define DHCP_OPTION_DNS_SERVER 6 |
◆ DHCP_OPTION_END
#define DHCP_OPTION_END 255 |
◆ DHCP_OPTION_HOSTNAME
#define DHCP_OPTION_HOSTNAME 12 |
◆ DHCP_OPTION_IP_TTL
#define DHCP_OPTION_IP_TTL 23 |
◆ DHCP_OPTION_LEASE_TIME
#define DHCP_OPTION_LEASE_TIME 51 /* RFC 2132 9.2, time in seconds, in 4 bytes */ |
◆ DHCP_OPTION_MAX_MSG_SIZE
#define DHCP_OPTION_MAX_MSG_SIZE 57 /* RFC 2132 9.10, message size accepted >= 576 */ |
◆ DHCP_OPTION_MAX_MSG_SIZE_LEN
#define DHCP_OPTION_MAX_MSG_SIZE_LEN 2 |
◆ DHCP_OPTION_MESSAGE_TYPE
#define DHCP_OPTION_MESSAGE_TYPE 53 /* RFC 2132 9.6, important for DHCP */ |
◆ DHCP_OPTION_MESSAGE_TYPE_LEN
#define DHCP_OPTION_MESSAGE_TYPE_LEN 1 |
◆ DHCP_OPTION_MTU
#define DHCP_OPTION_MTU 26 |
◆ DHCP_OPTION_OVERLOAD
#define DHCP_OPTION_OVERLOAD 52 /* RFC2132 9.3, use file and/or sname field for options */ |
◆ DHCP_OPTION_PAD
#define DHCP_OPTION_PAD 0 |
◆ DHCP_OPTION_PARAMETER_REQUEST_LIST
#define DHCP_OPTION_PARAMETER_REQUEST_LIST 55 /* RFC 2132 9.8, requested option types */ |
◆ DHCP_OPTION_REQUESTED_IP
#define DHCP_OPTION_REQUESTED_IP 50 /* RFC 2132 9.1, requested IP address */ |
◆ DHCP_OPTION_ROUTER
#define DHCP_OPTION_ROUTER 3 |
◆ DHCP_OPTION_SERVER_ID
#define DHCP_OPTION_SERVER_ID 54 /* RFC 2132 9.7, server IP address */ |
◆ DHCP_OPTION_SUBNET_MASK
#define DHCP_OPTION_SUBNET_MASK 1 /* RFC 2132 3.3 */ |
◆ DHCP_OPTION_T1
#define DHCP_OPTION_T1 58 /* T1 renewal time */ |
◆ DHCP_OPTION_T2
#define DHCP_OPTION_T2 59 /* T2 rebinding time */ |
◆ DHCP_OPTION_TCP_TTL
#define DHCP_OPTION_TCP_TTL 37 |
◆ DHCP_OPTION_TFTP_SERVERNAME
#define DHCP_OPTION_TFTP_SERVERNAME 66 |
◆ DHCP_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
◆ DHCP_OPTIONS_OFS
◆ DHCP_OVERLOAD_FILE
#define DHCP_OVERLOAD_FILE 1 |
◆ DHCP_OVERLOAD_NONE
#define DHCP_OVERLOAD_NONE 0 |
possible combinations of overloading the file and sname fields with options
◆ DHCP_OVERLOAD_SNAME
#define DHCP_OVERLOAD_SNAME 2 |
◆ DHCP_OVERLOAD_SNAME_FILE
#define DHCP_OVERLOAD_SNAME_FILE 3 |
◆ DHCP_PERMANENT
◆ DHCP_REBINDING
◆ DHCP_REBOOTING
◆ DHCP_RELEASE
◆ DHCP_RENEWING
◆ DHCP_REQUEST
◆ DHCP_REQUESTING
#define DHCP_REQUESTING 1 |
◆ DHCP_SECS_OFS
◆ DHCP_SELECTING
◆ DHCP_SERVER_PORT
#define DHCP_SERVER_PORT 67 |
◆ DHCP_SIADDR_OFS
◆ DHCP_SNAME_LEN
#define DHCP_SNAME_LEN 64U |
◆ DHCP_SNAME_OFS
◆ DHCP_XID_OFS
◆ DHCP_YIADDR_OFS
◆ dhcp_coarse_tmr()
if enabled, check whether the offered IP address is not in use, using ARP to be called every minute
◆ dhcp_fine_tmr()
to be called every half second
◆ dhcp_inform()
inform server of our manual IP address
◆ dhcp_release()
release the DHCP lease, usually called before dhcp_stop()
◆ dhcp_renew()
enforce early lease renewal (not needed normally)
◆ dhcp_start()
◆ dhcp_stop()
◆ PACK_STRUCT_STRUCT