minor fix to return E_USAGE on -V instead of exit(0);
[oss-qm-packages.git] / lib / net-features.h
blob0de273062e45228b6adfc6549bd8492395249e4e
1 /*
2 * lib/net-features.h This file contains the definitions of all kernel
3 * dependend features.
5 * Version: features.h 0.03 (1996-03-22)
7 * Author: Bernd Eckenfels <net-tools@lina.inka.de>
8 * Copyright 1996 Bernd Eckenfels, Germany
10 * Modifications:
11 *960201 {0.01} Bernd Eckenfels: creation
12 *960202 {0.02} Bernd Eckenfels: HW and AF added
13 *960322 {0.03} Bernd Eckenfels: moved into the NET-LIB
14 *980630 {0.04} Arnaldo Carvalho de Melo: changed NLS for I18N
16 * This program is free software; you can redistribute it
17 * and/or modify it under the terms of the GNU General
18 * Public License as published by the Free Software
19 * Foundation; either version 2 of the License, or (at
20 * your option) any later version.
23 /*
24 * This needs to be included AFTER the KErnel Header Files
25 * one of the FEATURE_ should be defined to get the Feature Variable
26 * definition included
29 #ifndef _NET_FEATURES_H
30 #define _NET_FEATURES_H
32 /* detect the present features */
34 #if defined (SIOCADDRTOLD) || defined (RTF_IRTT) /* route */
35 #define HAVE_NEW_ADDRT 1
36 #endif
38 #ifdef RTF_IRTT /* route */
39 #define HAVE_RTF_IRTT 1
40 #endif
42 #ifdef RTF_REJECT /* route */
43 #define HAVE_RTF_REJECT 1
44 #endif
46 /* compose the feature information string */
48 #if defined (FEATURE_ARP) || defined (FEATURE_ROUTE) || defined (FEATURE_NETSTAT)
49 static char *Features =
51 /* ---------------------------------------------------- */
52 #ifdef FEATURE_ROUTE
54 #if HAVE_NEW_ADDRT
55 "+"
56 #else
57 "-"
58 #endif
59 "NEW_ADDRT "
61 #if HAVE_RTF_IRTT
62 "+"
63 #else
64 "-"
65 #endif
66 "RTF_IRTT "
68 #if HAVE_RTF_REJECT
69 "+"
70 #else
71 "-"
72 #endif
73 "RTF_REJECT "
75 #endif /* FEATURE_ROUTE */
76 /* ---------------------------------------------------- */
79 /* ---------------------------------------------------- */
80 #ifdef FEATURE_NETSTAT
82 #if HAVE_NEW_ADDRT
83 "+"
84 #else
85 "-"
86 #endif
87 "NEW_ADDRT "
89 #if HAVE_RTF_IRTT
90 "+"
91 #else
92 "-"
93 #endif
94 "RTF_IRTT "
96 #if HAVE_RTF_REJECT
97 "+"
98 #else
99 "-"
100 #endif
101 "RTF_REJECT "
103 #if HAVE_FW_MASQUERADE
105 #else
107 #endif
108 "FW_MASQUERADE "
110 #endif /* FEATURE_NETSTAT */
111 /* ---------------------------------------------------- */
114 #if I18N
115 "+I18N"
116 #else
117 "-I18N"
118 #endif /* I18N */
121 "\nAF: "
122 #ifdef DFLT_AF
123 "(" DFLT_AF ")"
124 #endif
126 #if HAVE_AFUNIX
127 " +"
128 #else
129 " -"
130 #endif
131 "UNIX "
132 #if HAVE_AFINET
134 #else
136 #endif
137 "INET "
138 #if HAVE_AFINET6
140 #else
142 #endif
143 "INET6 "
144 #if HAVE_AFIPX
146 #else
148 #endif
149 "IPX "
150 #if HAVE_AFAX25
152 #else
154 #endif
155 "AX25 "
156 #if HAVE_AFNETROM
158 #else
160 #endif
161 "NETROM "
162 #if HAVE_AFX25
164 #else
166 #endif
167 "X25 "
168 #if HAVE_AFATALK
170 #else
172 #endif
173 "ATALK "
174 #if HAVE_AFECONET
176 #else
178 #endif
179 "ECONET "
180 #if HAVE_AFROSE
182 #else
184 #endif
185 "ROSE "
187 "\nHW: "
189 #ifdef DFLT_HW
190 "(" DFLT_HW ")"
191 #endif
193 #if HAVE_HWETHER
194 " +"
195 #else
196 " -"
197 #endif
198 "ETHER "
199 #if HAVE_HWARC
201 #else
203 #endif
204 "ARC "
205 #if HAVE_HWSLIP
207 #else
209 #endif
210 "SLIP "
211 #if HAVE_HWPPP
213 #else
215 #endif
216 "PPP "
217 #if HAVE_HWTUNNEL
219 #else
221 #endif
222 "TUNNEL "
223 #if HAVE_HWTR
225 #else
227 #endif
228 "TR "
229 #if HAVE_HWAX25
231 #else
233 #endif
234 "AX25 "
236 #if HAVE_HWNETROM
238 #else
240 #endif
241 "NETROM "
243 #if HAVE_HWX25
245 #else
247 #endif
248 "X25 "
250 #if HAVE_HWFR
252 #else
254 #endif
255 "FR "
257 #if HAVE_HWROSE
259 #else
261 #endif
262 "ROSE "
264 #if HAVE_HWASH
266 #else
268 #endif
269 "ASH "
271 #if HAVE_HWSIT
273 #else
275 #endif
276 "SIT "
278 #if HAVE_HWFDDI
280 #else
282 #endif
283 "FDDI "
285 #if HAVE_HWHIPPI
287 #else
289 #endif
290 "HIPPI "
292 #if HAVE_HWHDLCLAPB
294 #else
296 #endif
297 "HDLC/LAPB "
301 #endif /* FEATURE_* */
303 #endif /* _NET_FEATURES_H */
304 /* End of features.h */