#include <stdio.h>
#include <string.h>
#include "uip.h"
#include "dhcpc.h"
#include "timer.h"
#include "pt.h"
Go to the source code of this file.
Data Structures | |
struct | dhcp_msg |
Defines | |
#define | STATE_INITIAL 0 |
#define | STATE_SENDING 1 |
#define | STATE_OFFER_RECEIVED 2 |
#define | STATE_CONFIG_RECEIVED 3 |
#define | BOOTP_BROADCAST 0x8000 |
#define | DHCP_REQUEST 1 |
#define | DHCP_REPLY 2 |
#define | DHCP_HTYPE_ETHERNET 1 |
#define | DHCP_HLEN_ETHERNET 6 |
#define | DHCP_MSG_LEN 236 |
#define | DHCPC_SERVER_PORT 67 |
#define | DHCPC_CLIENT_PORT 68 |
#define | DHCPDISCOVER 1 |
#define | DHCPOFFER 2 |
#define | DHCPREQUEST 3 |
#define | DHCPDECLINE 4 |
#define | DHCPACK 5 |
#define | DHCPNAK 6 |
#define | DHCPRELEASE 7 |
#define | DHCP_OPTION_SUBNET_MASK 1 |
#define | DHCP_OPTION_ROUTER 3 |
#define | DHCP_OPTION_DNS_SERVER 6 |
#define | DHCP_OPTION_REQ_IPADDR 50 |
#define | DHCP_OPTION_LEASE_TIME 51 |
#define | DHCP_OPTION_MSG_TYPE 53 |
#define | DHCP_OPTION_SERVER_ID 54 |
#define | DHCP_OPTION_REQ_LIST 55 |
#define | DHCP_OPTION_END 255 |