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 "unix/unix.h"
17 #endif
18 #ifdef CONFIG_INET
19 #include <linux/inet.h>
20 #endif
21 #ifdef CONFIG_IPX
22 #include "inet/ipxcall.h"
23 #include "inet/p8022call.h"
24 #endif
25 #ifdef CONFIG_AX25
26 #include "inet/ax25call.h"
27 #endif
28 #ifdef CONFIG_ATALK
29 #ifndef CONFIG_IPX
30 #include "inet/p8022call.h"
31 #endif
32 #include "inet/atalkcall.h"
33 #endif
34 #include "inet/psnapcall.h"
35
36
37
38
39
40 struct net_proto protocols[] = {
41 #ifdef CONFIG_UNIX
42 { "UNIX", unix_proto_init },
43 #endif
44 #if defined(CONFIG_IPX)||defined(CONFIG_ATALK)
45 { "802.2", p8022_proto_init },
46 { "SNAP", snap_proto_init },
47 #endif
48 #ifdef CONFIG_AX25
49 { "AX.25", ax25_proto_init },
50 #endif
51 #ifdef CONFIG_INET
52 { "INET", inet_proto_init },
53 #endif
54 #ifdef CONFIG_IPX
55 { "IPX", ipx_proto_init },
56 #endif
57 #ifdef CONFIG_ATALK
58 { "DDP", atalk_proto_init },
59 #endif
60 { NULL, NULL }
61 };
62
63