Embedded TCP/IP stack  4.7.0
fnet_tftp_config.h
1 /**************************************************************************
2 *
3 * Copyright 2008-2018 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 * TFTP service configuration file.
22 *
23 ***************************************************************************/
24 
25 /**************************************************************************
26  * !!!DO NOT MODIFY THIS FILE!!!
27  **************************************************************************/
28 
29 #ifndef _FNET_TFTP_CONFIG_H_
30 
31 #define _FNET_TFTP_CONFIG_H_
32 
36 /**************************************************************************/
42 #ifndef FNET_CFG_TFTP_CLN
43  #define FNET_CFG_TFTP_CLN (0)
44 #endif
45 
46 /**************************************************************************/
53 #ifndef FNET_CFG_TFTP_SRV
54  #define FNET_CFG_TFTP_SRV (0)
55 #endif
56 
57 /******************************************************************************
58  * TFTP-client service config parameters
59  ******************************************************************************/
60 
61 /**************************************************************************/
68 #ifndef FNET_CFG_TFTP_CLN_PORT
69  #define FNET_CFG_TFTP_CLN_PORT (FNET_HTONS(69u))
70 #endif
71 
72 /**************************************************************************/
80 #ifndef FNET_CFG_TFTP_CLN_TIMEOUT
81  #define FNET_CFG_TFTP_CLN_TIMEOUT (10u) /*sec*/
82 #endif
83 
84 /******************************************************************************
85  * TFTP-server service config parameters
86  ******************************************************************************/
87 
88 /**************************************************************************/
96 #ifndef FNET_CFG_TFTP_SRV_PORT
97  #define FNET_CFG_TFTP_SRV_PORT (FNET_HTONS(69u))
98 #endif
99 
100 /**************************************************************************/
110 #ifndef FNET_CFG_TFTP_SRV_TIMEOUT
111  #define FNET_CFG_TFTP_SRV_TIMEOUT (3u) /*sec*/
112 #endif
113 
114 /**************************************************************************/
125 #ifndef FNET_CFG_TFTP_SRV_RETRANSMIT_MAX
126  #define FNET_CFG_TFTP_SRV_RETRANSMIT_MAX (4u)
127 #endif
128 
131 #ifdef FNET_CFG_TFTP_SRV_MAX
132  #error "FNET_CFG_TFTP_SRV_MAX parameter is obsolete. Use FNET_CFG_TFTP_SRV."
133 #endif
134 
135 #endif /* _FNET_TFTP_CONFIG_H_ */

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