ReactOS 0.4.16-dev-297-gc569aee
tftp_opts.h
Go to the documentation of this file.
1
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
56#if !defined TFTP_DEBUG || defined __DOXYGEN__
57#define TFTP_DEBUG LWIP_DBG_OFF
58#endif
59
63#if !defined TFTP_PORT || defined __DOXYGEN__
64#define TFTP_PORT LWIP_IANA_PORT_TFTP
65#endif
66
70#if !defined TFTP_TIMEOUT_MSECS || defined __DOXYGEN__
71#define TFTP_TIMEOUT_MSECS 10000
72#endif
73
77#if !defined TFTP_MAX_RETRIES || defined __DOXYGEN__
78#define TFTP_MAX_RETRIES 5
79#endif
80
84#if !defined TFTP_TIMER_MSECS || defined __DOXYGEN__
85#define TFTP_TIMER_MSECS (TFTP_TIMEOUT_MSECS / 10)
86#endif
87
91#if !defined TFTP_MAX_FILENAME_LEN || defined __DOXYGEN__
92#define TFTP_MAX_FILENAME_LEN 20
93#endif
94
98#if !defined TFTP_MAX_MODE_LEN || defined __DOXYGEN__
99#define TFTP_MAX_MODE_LEN 10
100#endif
101
106#endif /* LWIP_HDR_APPS_TFTP_OPTS_H */