Embedded TCP/IP stack: fnet_tftp_config.h Source File

FNET

fnet_tftp_config.h
1 /**************************************************************************
2 *
3 * Copyright 2011-2016 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 * TFTP service configuration file.
23 *
24 ***************************************************************************/
25 
26 /**************************************************************************
27  * !!!DO NOT MODIFY THIS FILE!!!
28  **************************************************************************/
29 
30 #ifndef _FNET_TFTP_CONFIG_H_
31 
32 #define _FNET_TFTP_CONFIG_H_
33 
37 /**************************************************************************/
43 #ifndef FNET_CFG_TFTP_CLN
44  #define FNET_CFG_TFTP_CLN (0)
45 #endif
46 
47 /**************************************************************************/
54 #ifndef FNET_CFG_TFTP_SRV
55  #define FNET_CFG_TFTP_SRV (0)
56 #endif
57 
58 /******************************************************************************
59  * TFTP-client service config parameters
60  ******************************************************************************/
61 
62 /**************************************************************************/
69 #ifndef FNET_CFG_TFTP_CLN_PORT
70  #define FNET_CFG_TFTP_CLN_PORT (FNET_HTONS(69u))
71 #endif
72 
73 /**************************************************************************/
81 #ifndef FNET_CFG_TFTP_CLN_TIMEOUT
82  #define FNET_CFG_TFTP_CLN_TIMEOUT (10u) /*sec*/
83 #endif
84 
85 /******************************************************************************
86  * TFTP-server service config parameters
87  ******************************************************************************/
88 
89 /**************************************************************************/
97 #ifndef FNET_CFG_TFTP_SRV_PORT
98  #define FNET_CFG_TFTP_SRV_PORT (FNET_HTONS(69u))
99 #endif
100 
101 /**************************************************************************/
111 #ifndef FNET_CFG_TFTP_SRV_TIMEOUT
112  #define FNET_CFG_TFTP_SRV_TIMEOUT (3u) /*sec*/
113 #endif
114 
115 /**************************************************************************/
126 #ifndef FNET_CFG_TFTP_SRV_RETRANSMIT_MAX
127  #define FNET_CFG_TFTP_SRV_RETRANSMIT_MAX (4u)
128 #endif
129 
132 #ifdef FNET_CFG_TFTP_SRV_MAX
133  #error "FNET_CFG_TFTP_SRV_MAX parameter is obsolete. Use FNET_CFG_TFTP_SRV."
134 #endif
135 
136 #endif /* _FNET_TFTP_CONFIG_H_ */

© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net