Embedded TCP/IP stack
4.7.0
fnet_dns_config.h
1
/**************************************************************************
2
*
3
* Copyright 2011-2020 by Andrej 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
* DNS client/resolver configuration file.
22
*
23
***************************************************************************/
24
25
/**************************************************************************
26
* !!!DO NOT MODIFY THIS FILE!!!
27
**************************************************************************/
28
29
#ifndef _FNET_DNS_CONFIG_H_
30
31
#define _FNET_DNS_CONFIG_H_
32
36
/**************************************************************************/
42
#ifndef FNET_CFG_DNS
43
#define FNET_CFG_DNS (0)
44
#endif
45
46
/**************************************************************************/
56
#ifndef FNET_CFG_DNS_PORT
57
#define FNET_CFG_DNS_PORT (FNET_HTONS(53U))
58
#endif
59
60
/**************************************************************************/
67
#ifndef FNET_CFG_DNS_RETRANSMISSION_MAX
68
#define FNET_CFG_DNS_RETRANSMISSION_MAX (5U)
69
#endif
70
71
/**************************************************************************/
81
#ifndef FNET_CFG_DNS_RETRANSMISSION_TIMEOUT
82
#define FNET_CFG_DNS_RETRANSMISSION_TIMEOUT (1U)
/* seconds */
83
#endif
84
85
/**************************************************************************/
91
#ifndef FNET_CFG_DNS_RESOLVED_ADDR_MAX
92
#define FNET_CFG_DNS_RESOLVED_ADDR_MAX (4U)
93
#endif
94
97
#ifdef FNET_CFG_DNS_MAX
98
#error "FNET_CFG_DNS_MAX parameter is obsolete. Use FNET_CFG_DNS."
99
#endif
100
101
#endif
/* _FNET_DNS_CONFIG_H_ */
© 2005-2020 by Andrej Butok.
http://fnet.sourceforge.net