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
12
13 #define CONFIG_UNIX
14
15 #ifdef CONFIG_UNIX
16 #include <net/af_unix.h>
17 #endif
18 #ifdef CONFIG_INET
19 #include <linux/inet.h>
20 #endif
21 #ifdef CONFIG_IPX
22 #include <net/ipxcall.h>
23 #include <net/p8022call.h>
24 #endif
25 #ifdef CONFIG_AX25
26 #include <net/ax25call.h>
27 #ifdef CONFIG_NETROM
28 #include <net/nrcall.h>
29 #endif
30 #endif
31 #ifdef CONFIG_ATALK
32 #ifndef CONFIG_IPX
33 #include <net/p8022call.h>
34 #endif
35 #include <net/atalkcall.h>
36 #endif
37 #include <net/psnapcall.h>
38 #ifdef CONFIG_TR
39 #include <linux/netdevice.h>
40 #include <linux/trdevice.h>
41 extern void rif_init(struct net_proto *);
42 #endif
43
44
45
46
47 struct net_proto protocols[] = {
48 #ifdef CONFIG_UNIX
49 { "UNIX", unix_proto_init },
50 #endif
51 #if defined(CONFIG_IPX)||defined(CONFIG_ATALK)
52 { "802.2", p8022_proto_init },
53 { "SNAP", snap_proto_init },
54 #endif
55 #ifdef CONFIG_TR
56 { "RIF", rif_init },
57 #endif
58 #ifdef CONFIG_AX25
59 { "AX.25", ax25_proto_init },
60 #ifdef CONFIG_NETROM
61 { "NET/ROM", nr_proto_init },
62 #endif
63 #endif
64 #ifdef CONFIG_INET
65 { "INET", inet_proto_init },
66 #endif
67 #ifdef CONFIG_IPX
68 { "IPX", ipx_proto_init },
69 #endif
70 #ifdef CONFIG_ATALK
71 { "DDP", atalk_proto_init },
72 #endif
73 { NULL, NULL }
74 };
75
76