ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
sntp_opts.h
Go to the documentation of this file.
1
6
/*
7
* Copyright (c) 2007-2009 Frédéric Bernon, Simon Goldschmidt
8
* All rights reserved.
9
*
10
* Redistribution and use in source and binary forms, with or without modification,
11
* are permitted provided that the following conditions are met:
12
*
13
* 1. Redistributions of source code must retain the above copyright notice,
14
* this list of conditions and the following disclaimer.
15
* 2. Redistributions in binary form must reproduce the above copyright notice,
16
* this list of conditions and the following disclaimer in the documentation
17
* and/or other materials provided with the distribution.
18
* 3. The name of the author may not be used to endorse or promote products
19
* derived from this software without specific prior written permission.
20
*
21
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
22
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
24
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
26
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
29
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
30
* OF SUCH DAMAGE.
31
*
32
* This file is part of the lwIP TCP/IP stack.
33
*
34
* Author: Frédéric Bernon, Simon Goldschmidt
35
*
36
*/
37
#ifndef LWIP_HDR_APPS_SNTP_OPTS_H
38
#define LWIP_HDR_APPS_SNTP_OPTS_H
39
40
#include "
lwip/opt.h
"
41
#include "
lwip/prot/iana.h
"
42
55
#if !defined SNTP_SET_SYSTEM_TIME || defined __DOXYGEN__
56
#define SNTP_SET_SYSTEM_TIME(sec) LWIP_UNUSED_ARG(sec)
57
#endif
58
60
#if !defined SNTP_MAX_SERVERS || defined __DOXYGEN__
61
#define SNTP_MAX_SERVERS LWIP_DHCP_MAX_NTP_SERVERS
62
#endif
63
66
#if !defined SNTP_GET_SERVERS_FROM_DHCP || defined __DOXYGEN__
67
#define SNTP_GET_SERVERS_FROM_DHCP LWIP_DHCP_GET_NTP_SRV
68
#endif
69
72
#if !defined SNTP_GET_SERVERS_FROM_DHCPV6 || defined __DOXYGEN__
73
#define SNTP_GET_SERVERS_FROM_DHCPV6 LWIP_DHCP6_GET_NTP_SRV
74
#endif
75
80
#if !defined SNTP_SERVER_DNS || defined __DOXYGEN__
81
#define SNTP_SERVER_DNS 0
82
#endif
83
87
#if !defined SNTP_DEBUG || defined __DOXYGEN__
88
#define SNTP_DEBUG LWIP_DBG_OFF
89
#endif
90
92
#if !defined SNTP_PORT || defined __DOXYGEN__
93
#define SNTP_PORT LWIP_IANA_PORT_SNTP
94
#endif
95
110
#if !defined SNTP_CHECK_RESPONSE || defined __DOXYGEN__
111
#define SNTP_CHECK_RESPONSE 0
112
#endif
113
134
#if !defined SNTP_COMP_ROUNDTRIP || defined __DOXYGEN__
135
#define SNTP_COMP_ROUNDTRIP 0
136
#endif
137
144
#if !defined SNTP_STARTUP_DELAY || defined __DOXYGEN__
145
#ifdef LWIP_RAND
146
#define SNTP_STARTUP_DELAY 1
147
#else
148
#define SNTP_STARTUP_DELAY 0
149
#endif
150
#endif
151
155
#if !defined SNTP_STARTUP_DELAY_FUNC || defined __DOXYGEN__
156
#define SNTP_STARTUP_DELAY_FUNC (LWIP_RAND() % 5000)
157
#endif
158
163
#if !defined SNTP_RECV_TIMEOUT || defined __DOXYGEN__
164
#define SNTP_RECV_TIMEOUT 15000
165
#endif
166
170
#if !defined SNTP_UPDATE_DELAY || defined __DOXYGEN__
171
#define SNTP_UPDATE_DELAY 3600000
172
#endif
173
180
#if !defined SNTP_GET_SYSTEM_TIME || defined __DOXYGEN__
181
#define SNTP_GET_SYSTEM_TIME(sec, us) do { (sec) = 0; (us) = 0; } while(0)
182
#endif
183
188
#if !defined SNTP_RETRY_TIMEOUT || defined __DOXYGEN__
189
#define SNTP_RETRY_TIMEOUT SNTP_RECV_TIMEOUT
190
#endif
191
193
#if !defined SNTP_RETRY_TIMEOUT_MAX || defined __DOXYGEN__
194
#define SNTP_RETRY_TIMEOUT_MAX (SNTP_RETRY_TIMEOUT * 10)
195
#endif
196
200
#if !defined SNTP_RETRY_TIMEOUT_EXP || defined __DOXYGEN__
201
#define SNTP_RETRY_TIMEOUT_EXP 1
202
#endif
203
207
#if !defined SNTP_MONITOR_SERVER_REACHABILITY || defined __DOXYGEN__
208
#define SNTP_MONITOR_SERVER_REACHABILITY 1
209
#endif
210
215
#endif
/* LWIP_HDR_APPS_SNTP_OPTS_H */
iana.h
opt.h
drivers
network
tcpip
lwip
src
include
lwip
apps
sntp_opts.h
Generated on Tue Nov 26 2024 06:05:51 for ReactOS by
1.9.6