1
2
3
4
5
6
7#include <linux/config.h>
8#include <linux/types.h>
9#include <linux/kernel.h>
10#include <linux/net.h>
11#include <linux/fs.h>
12
13#define CONFIG_UNIX
14
15#ifdef CONFIG_UNIX
16#include <linux/un.h>
17#include <net/af_unix.h>
18#endif
19
20#ifdef CONFIG_INET
21#include <linux/inet.h>
22#ifdef CONFIG_IPV6
23extern void inet6_proto_init(struct net_proto *pro);
24#endif
25#endif
26
27#if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE)
28#define NEED_802
29#include <net/ipxcall.h>
30#endif
31
32#ifdef CONFIG_X25
33#include <net/x25call.h>
34#endif
35
36#ifdef CONFIG_LAPB
37#include <net/lapbcall.h>
38#endif
39
40#ifdef CONFIG_AX25
41#include <net/ax25call.h>
42#ifdef CONFIG_NETROM
43#include <net/nrcall.h>
44#endif
45#ifdef CONFIG_ROSE
46#include <net/rosecall.h>
47#endif
48#endif
49
50#if defined(CONFIG_DECNET)
51#include <net/decnet_call.h>
52#endif
53
54#if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
55#define NEED_802
56#include <net/atalkcall.h>
57#endif
58
59#if defined(CONFIG_NETBEUI)
60#define NEED_LLC
61#include <net/netbeuicall.h>
62#endif
63
64#include <net/psnapcall.h>
65
66#ifdef CONFIG_TR
67#include <linux/netdevice.h>
68#include <linux/trdevice.h>
69extern void rif_init(struct net_proto *);
70#endif
71
72#ifdef NEED_LLC
73#define NEED_802
74#include <net/llccall.h>
75#endif
76
77#ifdef NEED_802
78#include <net/p8022call.h>
79#include <net/p8022trcall.h>
80#endif
81
82
83
84
85
86struct net_proto protocols[] = {
87#ifdef CONFIG_UNIX
88 { "UNIX", unix_proto_init },
89#endif
90
91#ifdef NEED_802
92 { "802.2", p8022_proto_init },
93 { "802.2TR", p8022tr_proto_init },
94 { "SNAP", snap_proto_init },
95#endif
96
97#ifdef CONFIG_TR
98 { "RIF", rif_init },
99#endif
100
101#ifdef NEED_LLC
102 { "802.2LLC", llc_init },
103#endif
104
105#ifdef CONFIG_AX25
106 { "AX.25", ax25_proto_init },
107#ifdef CONFIG_NETROM
108 { "NET/ROM", nr_proto_init },
109#endif
110#ifdef CONFIG_ROSE
111 { "Rose", rose_proto_init },
112#endif
113#endif
114#ifdef CONFIG_DECNET
115 { "DECnet", decnet_proto_init },
116#endif
117#ifdef CONFIG_INET
118 { "INET", inet_proto_init },
119#ifdef CONFIG_IPV6
120 { "INET6", inet6_proto_init},
121#endif
122#endif
123
124#ifdef CONFIG_IPX
125 { "IPX", ipx_proto_init },
126#endif
127
128#ifdef CONFIG_ATALK
129 { "DDP", atalk_proto_init },
130#endif
131
132#ifdef CONFIG_LAPB
133 { "LAPB", lapb_proto_init },
134#endif
135
136#ifdef CONFIG_X25
137 { "X.25", x25_proto_init },
138#endif
139
140 { NULL, NULL }
141};
142