1 |
786 |
skrzyp |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# dns.cdl
|
4 |
|
|
#
|
5 |
|
|
# DNS configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later
|
16 |
|
|
## version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
20 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
21 |
|
|
## for more details.
|
22 |
|
|
##
|
23 |
|
|
## You should have received a copy of the GNU General Public License
|
24 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use
|
28 |
|
|
## macros or inline functions from this file, or you compile this file
|
29 |
|
|
## and link it with other works to produce a work based on this file,
|
30 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
## the GNU General Public License. However the source code for this file
|
32 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
## General Public License v2.
|
34 |
|
|
##
|
35 |
|
|
## This exception does not invalidate any other reasons why a work based
|
36 |
|
|
## on this file might be covered by the GNU General Public License.
|
37 |
|
|
## -------------------------------------------
|
38 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
# ====================================================================
|
40 |
|
|
######DESCRIPTIONBEGIN####
|
41 |
|
|
#
|
42 |
|
|
# Author(s): jskov
|
43 |
|
|
# Original data: jskov
|
44 |
|
|
# Contributors: andrew.lunn@ascom.ch
|
45 |
|
|
# Date: 2001-09-18
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_NS_DNS {
|
52 |
|
|
display "DNS client"
|
53 |
|
|
include_dir cyg/ns/dns
|
54 |
|
|
doc ref/net-ns-dns.html
|
55 |
|
|
|
56 |
|
|
cdl_option CYGPKG_NS_DNS_BUILD {
|
57 |
|
|
display "Build DNS NS client package"
|
58 |
|
|
default_value 1
|
59 |
|
|
implements CYGINT_ISO_DNS
|
60 |
|
|
requires { CYGBLD_ISO_DNS_HEADER == "" }
|
61 |
|
|
|
62 |
|
|
requires CYGPKG_NET
|
63 |
|
|
requires CYGINT_ISO_CTYPE
|
64 |
|
|
requires CYGINT_ISO_MALLOC
|
65 |
|
|
requires CYGINT_ISO_STRING_STRFUNCS
|
66 |
|
|
requires CYGSEM_KERNEL_THREADS_DESTRUCTORS_PER_THREAD
|
67 |
|
|
|
68 |
|
|
compile dns.c
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
cdl_component CYGPKG_NS_DNS_DEFAULT {
|
72 |
|
|
display "Provide a hard coded default server address"
|
73 |
|
|
flavor bool
|
74 |
|
|
active_if CYGPKG_NS_DNS_BUILD
|
75 |
|
|
default_value 0
|
76 |
|
|
description "
|
77 |
|
|
This option controls the use of a default, hard coded DNS
|
78 |
|
|
server. When this is enabled, the IPv4 or IPv6 address in
|
79 |
|
|
the CDL option CYGDAT_NS_DNS_DEFAULT_SERVER is used in
|
80 |
|
|
init_all_network_interfaces() to start the resolver using
|
81 |
|
|
the specified server. The DHCP client or user code may
|
82 |
|
|
override this by restarting the resolver."
|
83 |
|
|
|
84 |
|
|
cdl_option CYGDAT_NS_DNS_DEFAULT_SERVER {
|
85 |
|
|
display "IP address of the default DNS server"
|
86 |
|
|
flavor data
|
87 |
|
|
default_value { "192.168.1.1" }
|
88 |
|
|
}
|
89 |
|
|
}
|
90 |
|
|
cdl_component CYGPKG_NS_DNS_DOMAINNAME {
|
91 |
|
|
display "Provide a hard coded default domain name"
|
92 |
|
|
flavor bool
|
93 |
|
|
active_if CYGPKG_NS_DNS_BUILD
|
94 |
|
|
default_value 0
|
95 |
|
|
description "
|
96 |
|
|
This option controls the use of a default, hard coded
|
97 |
|
|
domain name to be used when querying a DNS server. When
|
98 |
|
|
this is enabled, the name in the CDL option
|
99 |
|
|
CYGDAT_NS_DNS_DOMAINNAME_NAME is used in
|
100 |
|
|
init_all_network_interfaces() to set the domain name as
|
101 |
|
|
accessed by getdomainname()."
|
102 |
|
|
|
103 |
|
|
cdl_option CYGDAT_NS_DNS_DOMAINNAME_NAME {
|
104 |
|
|
display "Domain name for this device"
|
105 |
|
|
flavor data
|
106 |
|
|
default_value { "default.domain.com" }
|
107 |
|
|
}
|
108 |
|
|
}
|
109 |
|
|
|
110 |
|
|
cdl_option CYGNUM_NS_DNS_GETADDRINFO_ADDRESSES {
|
111 |
|
|
display "Max number of results for getaddrinfo"
|
112 |
|
|
flavor data
|
113 |
|
|
default_value 5
|
114 |
|
|
description "
|
115 |
|
|
This option controls the number of addresses the DNS client
|
116 |
|
|
can return to getaddrinfo and hence the size of the buffer
|
117 |
|
|
passed to the DNS client."
|
118 |
|
|
}
|
119 |
|
|
|
120 |
|
|
cdl_option CYGOPT_NS_DNS_FIRST_FAMILY {
|
121 |
|
|
display "AF_INET or AF_INET6 first in the getaddrinfo list"
|
122 |
|
|
active_if CYGPKG_NET_INET6
|
123 |
|
|
flavor data
|
124 |
|
|
default_value {"AF_INET6"}
|
125 |
|
|
legal_values {"AF_INET4" "AF_INET6"}
|
126 |
|
|
description "
|
127 |
|
|
This option controls the order DNS results will appear in the
|
128 |
|
|
information returned by getaddrinfo. This will in turn control
|
129 |
|
|
the order in which network clients try talking to servers,
|
130 |
|
|
ie does it try IPv6 or IPv4 addresses first when it has both
|
131 |
|
|
types of addresses."
|
132 |
|
|
}
|
133 |
|
|
|
134 |
|
|
cdl_component CYGPKG_NS_DNS_OPTIONS {
|
135 |
|
|
display "DNS support build options"
|
136 |
|
|
flavor none
|
137 |
|
|
no_define
|
138 |
|
|
|
139 |
|
|
cdl_option CYGPKG_NS_DNS_CFLAGS_ADD {
|
140 |
|
|
display "Additional compiler flags"
|
141 |
|
|
flavor data
|
142 |
|
|
no_define
|
143 |
|
|
default_value { "-D_KERNEL -D__ECOS" }
|
144 |
|
|
description "
|
145 |
|
|
This option modifies the set of compiler flags for
|
146 |
|
|
building the DNS package.
|
147 |
|
|
These flags are used in addition
|
148 |
|
|
to the set of global flags."
|
149 |
|
|
}
|
150 |
|
|
|
151 |
|
|
cdl_option CYGPKG_NS_DNS_CFLAGS_REMOVE {
|
152 |
|
|
display "Suppressed compiler flags"
|
153 |
|
|
flavor data
|
154 |
|
|
no_define
|
155 |
|
|
default_value { "" }
|
156 |
|
|
description "
|
157 |
|
|
This option modifies the set of compiler flags for
|
158 |
|
|
building the DNS package. These flags are removed from
|
159 |
|
|
the set of global flags if present."
|
160 |
|
|
}
|
161 |
|
|
}
|
162 |
|
|
|
163 |
|
|
cdl_option CYGPKG_NS_DNS_TESTS {
|
164 |
|
|
display "DNS test"
|
165 |
|
|
flavor data
|
166 |
|
|
active_if CYGPKG_NS_DNS_BUILD
|
167 |
|
|
no_define
|
168 |
|
|
calculated { "tests/dns1" }
|
169 |
|
|
|
170 |
|
|
description "
|
171 |
|
|
This option specifies the set of tests for the DNS package."
|
172 |
|
|
}
|
173 |
|
|
|
174 |
|
|
cdl_option CYGPKG_NS_DNS_TESTS_LUNN {
|
175 |
|
|
display "Use Andrew Lunn's DNS server for tests"
|
176 |
|
|
default_value 1
|
177 |
|
|
description "
|
178 |
|
|
Run the tests against Andrew Lunn's DNS server. Servers
|
179 |
|
|
come and go, IP addresses change, links are sometime down.
|
180 |
|
|
So this may not work...."
|
181 |
|
|
}
|
182 |
|
|
|
183 |
|
|
cdl_option CYGPKG_NS_DNS_TESTS_ELSIS {
|
184 |
|
|
display "Iztok Zupet DNS server at Elsis for tests"
|
185 |
|
|
default_value 1
|
186 |
|
|
description "
|
187 |
|
|
Run the tests against Iztok Zupet DNS server at
|
188 |
|
|
Elsis. Servers come and go, IP addresses change, links are
|
189 |
|
|
sometime down. So this may not work...."
|
190 |
|
|
}
|
191 |
|
|
}
|
192 |
|
|
# EOF dns.cdl
|
193 |
|
|
|