Embedded TCP/IP stack: fnet_dhcp_config.h Source File From FNET previous page next page Embedded TCP/IP stack 4.1.0 FNET Overview FNET Quick Start FNET API fnet_stackservicedhcp fnet_dhcp_config.h 1 /************************************************************************** 2 * 3 * Copyright 2011-2017 by Andrey Butok. FNET Community. 4 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc. 5 * 6 *************************************************************************** 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); you may 9 * not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 * 20 ***************************************************************************/ 21 22 /************************************************************************** 23 * !!!DO NOT MODIFY THIS FILE!!! 24 **************************************************************************/ 25 26 #ifndef _FNET_DHCP_CONFIG_H_ 27 28 #define _FNET_DHCP_CONFIG_H_ 29 33 /**************************************************************************/ 40 #ifndef FNET_CFG_DHCP_CLN 41 #define FNET_CFG_DHCP_CLN (0) 42 #endif 43 44 /**************************************************************************/ 60 #ifndef FNET_CFG_DHCP_CLN_BOOTP 61 #define FNET_CFG_DHCP_CLN_BOOTP (0) 62 #endif 63 64 /**************************************************************************/ 71 #ifndef FNET_CFG_DHCP_CLN_PORT 72 #define FNET_CFG_DHCP_CLN_PORT (FNET_HTONS(68U)) 73 #endif 74 75 /**************************************************************************/ 85 #ifndef FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT 86 #define FNET_CFG_DHCP_CLN_RESPONSE_TIMEOUT (4U) 87 #endif 88 89 /**************************************************************************/ 99 #ifndef FNET_CFG_DHCP_CLN_BROADCAST 100 #define FNET_CFG_DHCP_CLN_BROADCAST (0) 101 #endif 102 108 /**************************************************************************/ 115 #ifndef FNET_CFG_DHCP_SRV 116 #define FNET_CFG_DHCP_SRV (0) 117 #endif 118 119 /**************************************************************************/ 126 #ifndef FNET_CFG_DHCP_SRV_PORT 127 #define FNET_CFG_DHCP_SRV_PORT (FNET_HTONS(67U)) 128 #endif 129 130 /**************************************************************************/ 136 #ifndef FNET_CFG_DHCP_SRV_ADDR_POOL_SIZE 137 #define FNET_CFG_DHCP_SRV_ADDR_POOL_SIZE (5) 138 #endif 139 140 /**************************************************************************/ 146 #ifndef FNET_CFG_DHCP_SRV_LEASE_TIME 147 #define FNET_CFG_DHCP_SRV_LEASE_TIME (60*5) 148 #endif 149 153 #ifdef FNET_CFG_DHCP_MAX 154 #error "FNET_CFG_DHCP_MAX parameter is obsolete. Use FNET_CFG_DHCP_CLN." 155 #endif 156 157 #endif /* _FNET_DHCP_CONFIG_H_ */ © 2005-2018 by Andrey Butok. http://fnet.sourceforge.net previous page start next page