ReactOS  0.4.12-dev-75-g00dd17e
dhcp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dhcp_packet
 

Macros

#define DHCP_UDP_OVERHEAD
 
#define DHCP_SNAME_LEN   64
 
#define DHCP_FILE_LEN   128
 
#define DHCP_FIXED_NON_UDP   236
 
#define DHCP_FIXED_LEN   (DHCP_FIXED_NON_UDP + DHCP_UDP_OVERHEAD)
 
#define DHCP_MTU_MAX   1500
 
#define DHCP_OPTION_LEN   (DHCP_MTU_MAX - DHCP_FIXED_LEN)
 
#define BOOTP_MIN_LEN   300
 
#define DHCP_MIN_LEN   548
 
#define BOOTREQUEST   1
 
#define BOOTREPLY   2
 
#define BOOTP_BROADCAST   32768L
 
#define HTYPE_ETHER   1 /* Ethernet */
 
#define HTYPE_IEEE802   6 /* IEEE 802.2 Token Ring... */
 
#define HTYPE_FDDI   8 /* FDDI... */
 
#define DHCP_OPTIONS_COOKIE   "\143\202\123\143"
 
#define DHO_PAD   0
 
#define DHO_SUBNET_MASK   1
 
#define DHO_TIME_OFFSET   2
 
#define DHO_ROUTERS   3
 
#define DHO_TIME_SERVERS   4
 
#define DHO_NAME_SERVERS   5
 
#define DHO_DOMAIN_NAME_SERVERS   6
 
#define DHO_LOG_SERVERS   7
 
#define DHO_COOKIE_SERVERS   8
 
#define DHO_LPR_SERVERS   9
 
#define DHO_IMPRESS_SERVERS   10
 
#define DHO_RESOURCE_LOCATION_SERVERS   11
 
#define DHO_HOST_NAME   12
 
#define DHO_BOOT_SIZE   13
 
#define DHO_MERIT_DUMP   14
 
#define DHO_DOMAIN_NAME   15
 
#define DHO_SWAP_SERVER   16
 
#define DHO_ROOT_PATH   17
 
#define DHO_EXTENSIONS_PATH   18
 
#define DHO_IP_FORWARDING   19
 
#define DHO_NON_LOCAL_SOURCE_ROUTING   20
 
#define DHO_POLICY_FILTER   21
 
#define DHO_MAX_DGRAM_REASSEMBLY   22
 
#define DHO_DEFAULT_IP_TTL   23
 
#define DHO_PATH_MTU_AGING_TIMEOUT   24
 
#define DHO_PATH_MTU_PLATEAU_TABLE   25
 
#define DHO_INTERFACE_MTU   26
 
#define DHO_ALL_SUBNETS_LOCAL   27
 
#define DHO_BROADCAST_ADDRESS   28
 
#define DHO_PERFORM_MASK_DISCOVERY   29
 
#define DHO_MASK_SUPPLIER   30
 
#define DHO_ROUTER_DISCOVERY   31
 
#define DHO_ROUTER_SOLICITATION_ADDRESS   32
 
#define DHO_STATIC_ROUTES   33
 
#define DHO_TRAILER_ENCAPSULATION   34
 
#define DHO_ARP_CACHE_TIMEOUT   35
 
#define DHO_IEEE802_3_ENCAPSULATION   36
 
#define DHO_DEFAULT_TCP_TTL   37
 
#define DHO_TCP_KEEPALIVE_INTERVAL   38
 
#define DHO_TCP_KEEPALIVE_GARBAGE   39
 
#define DHO_NIS_DOMAIN   40
 
#define DHO_NIS_SERVERS   41
 
#define DHO_NTP_SERVERS   42
 
#define DHO_VENDOR_ENCAPSULATED_OPTIONS   43
 
#define DHO_NETBIOS_NAME_SERVERS   44
 
#define DHO_NETBIOS_DD_SERVER   45
 
#define DHO_NETBIOS_NODE_TYPE   46
 
#define DHO_NETBIOS_SCOPE   47
 
#define DHO_FONT_SERVERS   48
 
#define DHO_X_DISPLAY_MANAGER   49
 
#define DHO_DHCP_REQUESTED_ADDRESS   50
 
#define DHO_DHCP_LEASE_TIME   51
 
#define DHO_DHCP_OPTION_OVERLOAD   52
 
#define DHO_DHCP_MESSAGE_TYPE   53
 
#define DHO_DHCP_SERVER_IDENTIFIER   54
 
#define DHO_DHCP_PARAMETER_REQUEST_LIST   55
 
#define DHO_DHCP_MESSAGE   56
 
#define DHO_DHCP_MAX_MESSAGE_SIZE   57
 
#define DHO_DHCP_RENEWAL_TIME   58
 
#define DHO_DHCP_REBINDING_TIME   59
 
#define DHO_DHCP_CLASS_IDENTIFIER   60
 
#define DHO_DHCP_CLIENT_IDENTIFIER   61
 
#define DHO_DHCP_USER_CLASS_ID   77
 
#define DHO_END   255
 
#define DHCPDISCOVER   1
 
#define DHCPOFFER   2
 
#define DHCPREQUEST   3
 
#define DHCPDECLINE   4
 
#define DHCPACK   5
 
#define DHCPNAK   6
 
#define DHCPRELEASE   7
 
#define DHCPINFORM   8
 

Macro Definition Documentation

◆ BOOTP_BROADCAST

#define BOOTP_BROADCAST   32768L

Definition at line 82 of file dhcp.h.

◆ BOOTP_MIN_LEN

#define BOOTP_MIN_LEN   300

Definition at line 54 of file dhcp.h.

Referenced by make_decline(), make_discover(), and make_request().

◆ BOOTREPLY

#define BOOTREPLY   2

Definition at line 79 of file dhcp.h.

Referenced by bootp(), and process_dhcp_packet().

◆ BOOTREQUEST

#define BOOTREQUEST   1

Definition at line 78 of file dhcp.h.

Referenced by make_decline(), make_discover(), and make_request().

◆ DHCP_FILE_LEN

#define DHCP_FILE_LEN   128

Definition at line 47 of file dhcp.h.

Referenced by cons_options(), and packet_to_lease().

◆ DHCP_FIXED_LEN

#define DHCP_FIXED_LEN   (DHCP_FIXED_NON_UDP + DHCP_UDP_OVERHEAD)

Definition at line 49 of file dhcp.h.

Referenced by cons_options().

◆ DHCP_FIXED_NON_UDP

#define DHCP_FIXED_NON_UDP   236

Definition at line 48 of file dhcp.h.

Referenced by cons_options(), and parse_options().

◆ DHCP_MIN_LEN

#define DHCP_MIN_LEN   548

Definition at line 55 of file dhcp.h.

◆ DHCP_MTU_MAX

#define DHCP_MTU_MAX   1500

Definition at line 51 of file dhcp.h.

◆ DHCP_OPTION_LEN

#define DHCP_OPTION_LEN   (DHCP_MTU_MAX - DHCP_FIXED_LEN)

Definition at line 52 of file dhcp.h.

◆ DHCP_OPTIONS_COOKIE

#define DHCP_OPTIONS_COOKIE   "\143\202\123\143"

Definition at line 91 of file dhcp.h.

Referenced by cons_options(), and parse_options().

◆ DHCP_SNAME_LEN

#define DHCP_SNAME_LEN   64

Definition at line 46 of file dhcp.h.

Referenced by cons_options(), and packet_to_lease().

◆ DHCP_UDP_OVERHEAD

#define DHCP_UDP_OVERHEAD
Value:
(14 + /* Ethernet header */ \
20 + /* IP header */ \
8) /* UDP header */

Definition at line 43 of file dhcp.h.

◆ DHCPACK

#define DHCPACK   5

Definition at line 166 of file dhcp.h.

Referenced by dhcp(), display_dhcp_packet(), and process_dhcp_packet().

◆ DHCPDECLINE

#define DHCPDECLINE   4

Definition at line 165 of file dhcp.h.

Referenced by display_dhcp_packet(), and make_decline().

◆ DHCPDISCOVER

#define DHCPDISCOVER   1

Definition at line 162 of file dhcp.h.

Referenced by display_dhcp_packet(), make_discover(), and process_dhcp_packet().

◆ DHCPINFORM

#define DHCPINFORM   8

Definition at line 169 of file dhcp.h.

◆ DHCPNAK

#define DHCPNAK   6

Definition at line 167 of file dhcp.h.

Referenced by dhcp(), display_dhcp_packet(), and process_dhcp_packet().

◆ DHCPOFFER

#define DHCPOFFER   2

Definition at line 163 of file dhcp.h.

Referenced by dhcp(), display_dhcp_packet(), and process_dhcp_packet().

◆ DHCPRELEASE

#define DHCPRELEASE   7

Definition at line 168 of file dhcp.h.

Referenced by display_dhcp_packet().

◆ DHCPREQUEST

#define DHCPREQUEST   3

Definition at line 164 of file dhcp.h.

Referenced by display_dhcp_packet(), make_request(), and process_dhcp_packet().

◆ DHO_ALL_SUBNETS_LOCAL

#define DHO_ALL_SUBNETS_LOCAL   27

Definition at line 123 of file dhcp.h.

Referenced by check_option().

◆ DHO_ARP_CACHE_TIMEOUT

#define DHO_ARP_CACHE_TIMEOUT   35

Definition at line 131 of file dhcp.h.

Referenced by check_option().

◆ DHO_BOOT_SIZE

#define DHO_BOOT_SIZE   13

Definition at line 109 of file dhcp.h.

Referenced by check_option().

◆ DHO_BROADCAST_ADDRESS

#define DHO_BROADCAST_ADDRESS   28

Definition at line 124 of file dhcp.h.

Referenced by check_option(), priv_script_write_params(), and read_client_conf().

◆ DHO_COOKIE_SERVERS

#define DHO_COOKIE_SERVERS   8

Definition at line 104 of file dhcp.h.

Referenced by check_option().

◆ DHO_DEFAULT_IP_TTL

#define DHO_DEFAULT_IP_TTL   23

Definition at line 119 of file dhcp.h.

Referenced by check_option().

◆ DHO_DEFAULT_TCP_TTL

#define DHO_DEFAULT_TCP_TTL   37

Definition at line 133 of file dhcp.h.

Referenced by check_option().

◆ DHO_DHCP_CLASS_IDENTIFIER

#define DHO_DHCP_CLASS_IDENTIFIER   60

Definition at line 156 of file dhcp.h.

Referenced by check_option().

◆ DHO_DHCP_CLIENT_IDENTIFIER

#define DHO_DHCP_CLIENT_IDENTIFIER   61

Definition at line 157 of file dhcp.h.

Referenced by check_option(), make_decline(), and read_client_conf().

◆ DHO_DHCP_LEASE_TIME

#define DHO_DHCP_LEASE_TIME   51

Definition at line 147 of file dhcp.h.

Referenced by check_option(), cons_options(), and dhcpack().

◆ DHO_DHCP_MAX_MESSAGE_SIZE

#define DHO_DHCP_MAX_MESSAGE_SIZE   57

Definition at line 153 of file dhcp.h.

Referenced by check_option(), and cons_options().

◆ DHO_DHCP_MESSAGE

#define DHO_DHCP_MESSAGE   56

Definition at line 152 of file dhcp.h.

Referenced by check_option(), and cons_options().

◆ DHO_DHCP_MESSAGE_TYPE

#define DHO_DHCP_MESSAGE_TYPE   53

◆ DHO_DHCP_OPTION_OVERLOAD

#define DHO_DHCP_OPTION_OVERLOAD   52

Definition at line 148 of file dhcp.h.

Referenced by check_option(), cons_options(), packet_to_lease(), and parse_options().

◆ DHO_DHCP_PARAMETER_REQUEST_LIST

#define DHO_DHCP_PARAMETER_REQUEST_LIST   55

Definition at line 151 of file dhcp.h.

Referenced by check_option(), cons_options(), make_discover(), and make_request().

◆ DHO_DHCP_REBINDING_TIME

#define DHO_DHCP_REBINDING_TIME   59

Definition at line 155 of file dhcp.h.

Referenced by check_option(), and dhcpack().

◆ DHO_DHCP_RENEWAL_TIME

#define DHO_DHCP_RENEWAL_TIME   58

Definition at line 154 of file dhcp.h.

Referenced by check_option(), and dhcpack().

◆ DHO_DHCP_REQUESTED_ADDRESS

#define DHO_DHCP_REQUESTED_ADDRESS   50

Definition at line 146 of file dhcp.h.

Referenced by check_option(), make_decline(), make_discover(), and make_request().

◆ DHO_DHCP_SERVER_IDENTIFIER

#define DHO_DHCP_SERVER_IDENTIFIER   54

Definition at line 150 of file dhcp.h.

Referenced by check_option(), cons_options(), make_decline(), make_request(), and state_bound().

◆ DHO_DHCP_USER_CLASS_ID

#define DHO_DHCP_USER_CLASS_ID   77

Definition at line 158 of file dhcp.h.

Referenced by check_option().

◆ DHO_DOMAIN_NAME

#define DHO_DOMAIN_NAME   15

Definition at line 111 of file dhcp.h.

Referenced by check_option(), read_client_conf(), and set_domain().

◆ DHO_DOMAIN_NAME_SERVERS

#define DHO_DOMAIN_NAME_SERVERS   6

Definition at line 102 of file dhcp.h.

Referenced by check_option(), read_client_conf(), and set_name_servers().

◆ DHO_END

#define DHO_END   255

Definition at line 159 of file dhcp.h.

Referenced by check_option(), cons_options(), and parse_option_buffer().

◆ DHO_EXTENSIONS_PATH

#define DHO_EXTENSIONS_PATH   18

Definition at line 114 of file dhcp.h.

Referenced by check_option().

◆ DHO_FONT_SERVERS

#define DHO_FONT_SERVERS   48

Definition at line 144 of file dhcp.h.

Referenced by check_option().

◆ DHO_HOST_NAME

#define DHO_HOST_NAME   12

Definition at line 108 of file dhcp.h.

Referenced by check_option(), and read_client_conf().

◆ DHO_IEEE802_3_ENCAPSULATION

#define DHO_IEEE802_3_ENCAPSULATION   36

Definition at line 132 of file dhcp.h.

Referenced by check_option().

◆ DHO_IMPRESS_SERVERS

#define DHO_IMPRESS_SERVERS   10

Definition at line 106 of file dhcp.h.

Referenced by check_option().

◆ DHO_INTERFACE_MTU

#define DHO_INTERFACE_MTU   26

Definition at line 122 of file dhcp.h.

Referenced by check_option().

◆ DHO_IP_FORWARDING

#define DHO_IP_FORWARDING   19

Definition at line 115 of file dhcp.h.

Referenced by check_option().

◆ DHO_LOG_SERVERS

#define DHO_LOG_SERVERS   7

Definition at line 103 of file dhcp.h.

Referenced by check_option().

◆ DHO_LPR_SERVERS

#define DHO_LPR_SERVERS   9

Definition at line 105 of file dhcp.h.

Referenced by check_option().

◆ DHO_MASK_SUPPLIER

#define DHO_MASK_SUPPLIER   30

Definition at line 126 of file dhcp.h.

Referenced by check_option().

◆ DHO_MAX_DGRAM_REASSEMBLY

#define DHO_MAX_DGRAM_REASSEMBLY   22

Definition at line 118 of file dhcp.h.

Referenced by check_option().

◆ DHO_MERIT_DUMP

#define DHO_MERIT_DUMP   14

Definition at line 110 of file dhcp.h.

Referenced by check_option().

◆ DHO_NAME_SERVERS

#define DHO_NAME_SERVERS   5

Definition at line 101 of file dhcp.h.

Referenced by check_option().

◆ DHO_NETBIOS_DD_SERVER

#define DHO_NETBIOS_DD_SERVER   45

Definition at line 141 of file dhcp.h.

Referenced by check_option().

◆ DHO_NETBIOS_NAME_SERVERS

#define DHO_NETBIOS_NAME_SERVERS   44

Definition at line 140 of file dhcp.h.

Referenced by check_option().

◆ DHO_NETBIOS_NODE_TYPE

#define DHO_NETBIOS_NODE_TYPE   46

Definition at line 142 of file dhcp.h.

Referenced by check_option().

◆ DHO_NETBIOS_SCOPE

#define DHO_NETBIOS_SCOPE   47

Definition at line 143 of file dhcp.h.

Referenced by check_option().

◆ DHO_NIS_DOMAIN

#define DHO_NIS_DOMAIN   40

Definition at line 136 of file dhcp.h.

Referenced by check_option().

◆ DHO_NIS_SERVERS

#define DHO_NIS_SERVERS   41

Definition at line 137 of file dhcp.h.

Referenced by check_option().

◆ DHO_NON_LOCAL_SOURCE_ROUTING

#define DHO_NON_LOCAL_SOURCE_ROUTING   20

Definition at line 116 of file dhcp.h.

Referenced by check_option().

◆ DHO_NTP_SERVERS

#define DHO_NTP_SERVERS   42

Definition at line 138 of file dhcp.h.

Referenced by check_option(), and read_client_conf().

◆ DHO_PAD

#define DHO_PAD   0

Definition at line 96 of file dhcp.h.

Referenced by check_option(), cons_options(), and parse_option_buffer().

◆ DHO_PATH_MTU_AGING_TIMEOUT

#define DHO_PATH_MTU_AGING_TIMEOUT   24

Definition at line 120 of file dhcp.h.

Referenced by check_option().

◆ DHO_PATH_MTU_PLATEAU_TABLE

#define DHO_PATH_MTU_PLATEAU_TABLE   25

Definition at line 121 of file dhcp.h.

Referenced by check_option().

◆ DHO_PERFORM_MASK_DISCOVERY

#define DHO_PERFORM_MASK_DISCOVERY   29

Definition at line 125 of file dhcp.h.

Referenced by check_option().

◆ DHO_POLICY_FILTER

#define DHO_POLICY_FILTER   21

Definition at line 117 of file dhcp.h.

Referenced by check_option().

◆ DHO_RESOURCE_LOCATION_SERVERS

#define DHO_RESOURCE_LOCATION_SERVERS   11

Definition at line 107 of file dhcp.h.

Referenced by check_option().

◆ DHO_ROOT_PATH

#define DHO_ROOT_PATH   17

Definition at line 113 of file dhcp.h.

Referenced by check_option().

◆ DHO_ROUTER_DISCOVERY

#define DHO_ROUTER_DISCOVERY   31

Definition at line 127 of file dhcp.h.

Referenced by check_option().

◆ DHO_ROUTER_SOLICITATION_ADDRESS

#define DHO_ROUTER_SOLICITATION_ADDRESS   32

Definition at line 128 of file dhcp.h.

Referenced by check_option().

◆ DHO_ROUTERS

#define DHO_ROUTERS   3

Definition at line 99 of file dhcp.h.

Referenced by check_option(), read_client_conf(), and setup_adapter().

◆ DHO_STATIC_ROUTES

#define DHO_STATIC_ROUTES   33

Definition at line 129 of file dhcp.h.

Referenced by check_option().

◆ DHO_SUBNET_MASK

#define DHO_SUBNET_MASK   1

Definition at line 97 of file dhcp.h.

Referenced by check_option(), priv_script_write_params(), read_client_conf(), and setup_adapter().

◆ DHO_SWAP_SERVER

#define DHO_SWAP_SERVER   16

Definition at line 112 of file dhcp.h.

Referenced by check_option().

◆ DHO_TCP_KEEPALIVE_GARBAGE

#define DHO_TCP_KEEPALIVE_GARBAGE   39

Definition at line 135 of file dhcp.h.

Referenced by check_option().

◆ DHO_TCP_KEEPALIVE_INTERVAL

#define DHO_TCP_KEEPALIVE_INTERVAL   38

Definition at line 134 of file dhcp.h.

Referenced by check_option().

◆ DHO_TIME_OFFSET

#define DHO_TIME_OFFSET   2

Definition at line 98 of file dhcp.h.

Referenced by check_option(), and read_client_conf().

◆ DHO_TIME_SERVERS

#define DHO_TIME_SERVERS   4

Definition at line 100 of file dhcp.h.

Referenced by check_option().

◆ DHO_TRAILER_ENCAPSULATION

#define DHO_TRAILER_ENCAPSULATION   34

Definition at line 130 of file dhcp.h.

Referenced by check_option().

◆ DHO_VENDOR_ENCAPSULATED_OPTIONS

#define DHO_VENDOR_ENCAPSULATED_OPTIONS   43

Definition at line 139 of file dhcp.h.

Referenced by check_option().

◆ DHO_X_DISPLAY_MANAGER

#define DHO_X_DISPLAY_MANAGER   49

Definition at line 145 of file dhcp.h.

Referenced by check_option().

◆ HTYPE_ETHER

#define HTYPE_ETHER   1 /* Ethernet */

Definition at line 85 of file dhcp.h.

Referenced by AdapterDiscoveryThread().

◆ HTYPE_FDDI

#define HTYPE_FDDI   8 /* FDDI... */

Definition at line 87 of file dhcp.h.

◆ HTYPE_IEEE802

#define HTYPE_IEEE802   6 /* IEEE 802.2 Token Ring... */

Definition at line 86 of file dhcp.h.