Mistake on this page?
Report an issue in GitHub or email us
tftp_opts.h
Go to the documentation of this file.
1 /**
2  *
3  * @file tftp_opts.h
4  *
5  * @author Logan Gunthorpe <logang@deltatee.com>
6  *
7  * @brief Trivial File Transfer Protocol (RFC 1350) implementation options
8  *
9  * Copyright (c) Deltatee Enterprises Ltd. 2013
10  * All rights reserved.
11  *
12  */
13 
14 /*
15  * Redistribution and use in source and binary forms, with or without
16  * modification,are permitted provided that the following conditions are met:
17  *
18  * 1. Redistributions of source code must retain the above copyright notice,
19  * this list of conditions and the following disclaimer.
20  * 2. Redistributions in binary form must reproduce the above copyright notice,
21  * this list of conditions and the following disclaimer in the documentation
22  * and/or other materials provided with the distribution.
23  * 3. The name of the author may not be used to endorse or promote products
24  * derived from this software without specific prior written permission.
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
27  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
29  * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
31  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37  * Author: Logan Gunthorpe <logang@deltatee.com>
38  *
39  */
40 
41 #ifndef LWIP_HDR_APPS_TFTP_OPTS_H
42 #define LWIP_HDR_APPS_TFTP_OPTS_H
43 
44 #include "lwip/opt.h"
45 #include "lwip/prot/iana.h"
46 
47 /**
48  * @defgroup tftp_opts Options
49  * @ingroup tftp
50  * @{
51  */
52 
53 /**
54  * Enable TFTP debug messages
55  */
56 #if !defined TFTP_DEBUG || defined __DOXYGEN__
57 #define TFTP_DEBUG LWIP_DBG_OFF
58 #endif
59 
60 /**
61  * TFTP server port
62  */
63 #if !defined TFTP_PORT || defined __DOXYGEN__
64 #define TFTP_PORT LWIP_IANA_PORT_TFTP
65 #endif
66 
67 /**
68  * TFTP timeout
69  */
70 #if !defined TFTP_TIMEOUT_MSECS || defined __DOXYGEN__
71 #define TFTP_TIMEOUT_MSECS 10000
72 #endif
73 
74 /**
75  * Max. number of retries when a file is read from server
76  */
77 #if !defined TFTP_MAX_RETRIES || defined __DOXYGEN__
78 #define TFTP_MAX_RETRIES 5
79 #endif
80 
81 /**
82  * TFTP timer cyclic interval
83  */
84 #if !defined TFTP_TIMER_MSECS || defined __DOXYGEN__
85 #define TFTP_TIMER_MSECS (TFTP_TIMEOUT_MSECS / 10)
86 #endif
87 
88 /**
89  * Max. length of TFTP filename
90  */
91 #if !defined TFTP_MAX_FILENAME_LEN || defined __DOXYGEN__
92 #define TFTP_MAX_FILENAME_LEN 20
93 #endif
94 
95 /**
96  * Max. length of TFTP mode
97  */
98 #if !defined TFTP_MAX_MODE_LEN || defined __DOXYGEN__
99 #define TFTP_MAX_MODE_LEN 7
100 #endif
101 
102 /**
103  * @}
104  */
105 
106 #endif /* LWIP_HDR_APPS_TFTP_OPTS_H */
lwIP Options Configuration
IANA assigned numbers (RFC 1700 and successors)
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.