Embedded TCP/IP stack  4.7.0
fnet_dhcp_config.h
1 /**************************************************************************
2 *
3 * Copyright 2008-2017 by Andrey Butok. FNET Community.
4 *
5 ***************************************************************************
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ***************************************************************************/
20 
21 /**************************************************************************
22  * !!!DO NOT MODIFY THIS FILE!!!
23  **************************************************************************/
24 
25 #ifndef _FNET_DHCP_CONFIG_H_
26 
27 #define _FNET_DHCP_CONFIG_H_
28 
32 /**************************************************************************/
39 #ifndef FNET_CFG_DHCP_CLN
40  #define FNET_CFG_DHCP_CLN (0)
41 #endif
42 
43 /**************************************************************************/
59 #ifndef FNET_CFG_DHCP_CLN_BOOTP
60  #define FNET_CFG_DHCP_CLN_BOOTP (0)
61 #endif
62 
63 /**************************************************************************/
70 #ifndef FNET_CFG_DHCP_CLN_PORT
71  #define FNET_CFG_DHCP_CLN_PORT (FNET_HTONS(68U))
72 #endif
73 
74 /**************************************************************************/
84 #ifndef FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT_MS
85  #define FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT_MS (4000U)
86 #endif
87 
88 /**************************************************************************/
98 #ifndef FNET_CFG_DHCP_CLN_BROADCAST
99  #define FNET_CFG_DHCP_CLN_BROADCAST (0)
100 #endif
101 
107 /**************************************************************************/
114 #ifndef FNET_CFG_DHCP_SRV
115  #define FNET_CFG_DHCP_SRV (0)
116 #endif
117 
118 /**************************************************************************/
125 #ifndef FNET_CFG_DHCP_SRV_PORT
126  #define FNET_CFG_DHCP_SRV_PORT (FNET_HTONS(67U))
127 #endif
128 
129 /**************************************************************************/
135 #ifndef FNET_CFG_DHCP_SRV_ADDR_POOL_SIZE
136  #define FNET_CFG_DHCP_SRV_ADDR_POOL_SIZE (5)
137 #endif
138 
139 /**************************************************************************/
145 #ifndef FNET_CFG_DHCP_SRV_LEASE_TIME
146  #define FNET_CFG_DHCP_SRV_LEASE_TIME (60*5)
147 #endif
148 
152 #ifdef FNET_CFG_DHCP_MAX
153  #error "FNET_CFG_DHCP_MAX parameter is obsolete. Use FNET_CFG_DHCP_CLN."
154 #endif
155 
156 #endif /* _FNET_DHCP_CONFIG_H_ */

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net