OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [userland/] [route/] [lib/] [net-features.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
/*
2
 * lib/net-features.h This file contains the definitions of all kernel
3
 *                      dependend features.
4
 *
5
 * Version:     features.h 0.03 (1996-03-22)
6
 *
7
 * Author:      Bernd Eckenfels <net-tools@lina.inka.de>
8
 *              Copyright 1996 Bernd Eckenfels, Germany
9
 *
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
15
 *
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.
21
 */
22
 
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
27
 */
28
 
29
#ifndef _NET_FEATURES_H
30
#define _NET_FEATURES_H
31
 
32
/* detect the present features */
33
 
34
#if defined (SIOCADDRTOLD) || defined (RTF_IRTT)        /* route */
35
#define HAVE_NEW_ADDRT 1
36
#endif
37
 
38
#ifdef RTF_IRTT                 /* route */
39
#define HAVE_RTF_IRTT 1
40
#endif
41
 
42
#ifdef RTF_REJECT               /* route */
43
#define HAVE_RTF_REJECT 1
44
#endif
45
 
46
/* compose the feature information string */
47
 
48
#if defined (FEATURE_ARP) || defined (FEATURE_ROUTE) || defined (FEATURE_NETSTAT)
49
static char *Features =
50
 
51
/* ---------------------------------------------------- */
52
#ifdef FEATURE_ROUTE
53
 
54
#if HAVE_NEW_ADDRT
55
"+"
56
#else
57
"-"
58
#endif
59
"NEW_ADDRT "
60
 
61
#if HAVE_RTF_IRTT
62
"+"
63
#else
64
"-"
65
#endif
66
"RTF_IRTT "
67
 
68
#if HAVE_RTF_REJECT
69
"+"
70
#else
71
"-"
72
#endif
73
"RTF_REJECT "
74
 
75
#endif                          /* FEATURE_ROUTE */
76
/* ---------------------------------------------------- */
77
 
78
 
79
/* ---------------------------------------------------- */
80
#ifdef FEATURE_NETSTAT
81
 
82
#if HAVE_NEW_ADDRT
83
"+"
84
#else
85
"-"
86
#endif
87
"NEW_ADDRT "
88
 
89
#if HAVE_RTF_IRTT
90
"+"
91
#else
92
"-"
93
#endif
94
"RTF_IRTT "
95
 
96
#if HAVE_RTF_REJECT
97
"+"
98
#else
99
"-"
100
#endif
101
"RTF_REJECT "
102
 
103
#if HAVE_FW_MASQUERADE
104
"+"
105
#else
106
"-"
107
#endif
108
"FW_MASQUERADE "
109
 
110
#endif                          /* FEATURE_NETSTAT */
111
/* ---------------------------------------------------- */
112
 
113
 
114
#if I18N
115
"+I18N"
116
#else
117
"-I18N"
118
#endif                          /* I18N */
119
 
120
 
121
"\nAF: "
122
#ifdef DFLT_AF
123
"(" DFLT_AF ")"
124
#endif
125
 
126
#if HAVE_AFUNIX
127
" +"
128
#else
129
" -"
130
#endif
131
"UNIX "
132
#if HAVE_AFINET
133
"+"
134
#else
135
"-"
136
#endif
137
"INET "
138
#if HAVE_AFINET6
139
"+"
140
#else
141
"-"
142
#endif
143
"INET6 "
144
#if HAVE_AFIPX
145
"+"
146
#else
147
"-"
148
#endif
149
"IPX "
150
#if HAVE_AFAX25
151
"+"
152
#else
153
"-"
154
#endif
155
"AX25 "
156
#if HAVE_AFNETROM
157
"+"
158
#else
159
"-"
160
#endif
161
"NETROM "
162
#if HAVE_AFATALK
163
"+"
164
#else
165
"-"
166
#endif
167
"ATALK "
168
#if HAVE_AFECONET
169
"+"
170
#else
171
"-"
172
#endif
173
"ECONET "
174
#if HAVE_AFROSE
175
"+"
176
#else
177
"-"
178
#endif
179
"ROSE "
180
 
181
"\nHW: "
182
 
183
#ifdef DFLT_HW
184
"(" DFLT_HW ")"
185
#endif
186
 
187
#if HAVE_HWETHER
188
" +"
189
#else
190
" -"
191
#endif
192
"ETHER "
193
#if HAVE_HWARC
194
"+"
195
#else
196
"-"
197
#endif
198
"ARC "
199
#if HAVE_HWSLIP
200
"+"
201
#else
202
"-"
203
#endif
204
"SLIP "
205
#if HAVE_HWPPP
206
"+"
207
#else
208
"-"
209
#endif
210
"PPP "
211
#if HAVE_HWTUNNEL
212
"+"
213
#else
214
"-"
215
#endif
216
"TUNNEL "
217
#if HAVE_HWTR
218
"+"
219
#else
220
"-"
221
#endif
222
"TR "
223
#if HAVE_HWAX25
224
"+"
225
#else
226
"-"
227
#endif
228
"AX25 "
229
 
230
#if HAVE_HWNETROM
231
"+"
232
#else
233
"-"
234
#endif
235
"NETROM "
236
 
237
#if HAVE_HWFR
238
"+"
239
#else
240
"-"
241
#endif
242
"FR "
243
 
244
#if HAVE_HWROSE
245
"+"
246
#else
247
"-"
248
#endif
249
"ROSE "
250
 
251
#if HAVE_HWASH
252
"+"
253
#else
254
"-"
255
#endif
256
"ASH "
257
 
258
#if HAVE_HWSIT
259
"+"
260
#else
261
"-"
262
#endif
263
"SIT "
264
 
265
#if HAVE_HWFDDI
266
"+"
267
#else
268
"-"
269
#endif
270
"FDDI "
271
 
272
#if HAVE_HWHIPPI
273
"+"
274
#else
275
"-"
276
#endif
277
"HIPPI "
278
 
279
#if HAVE_HWHDLCLAPB
280
"+"
281
#else
282
"-"
283
#endif
284
"HDLC/LAPB "
285
;
286
 
287
 
288
#endif                          /* FEATURE_* */
289
 
290
#endif                          /* _NET_FEATURES_H */
291
/* End of features.h */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.