2 * Protocol initializer table. Here separately for convenience
7 #include <linux/config.h>
8 #include <linux/types.h>
9 #include <linux/kernel.h>
10 #include <linux/net.h>
15 #include <net/af_unix.h>
19 #include <linux/inet.h>
21 extern void inet6_proto_init(struct net_proto
*pro
);
26 extern void econet_proto_init(struct net_proto
*pro
);
30 extern void netlink_proto_init(struct net_proto
*pro
);
34 extern void packet_proto_init(struct net_proto
*pro
);
37 #if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE)
39 #include <net/ipxcall.h>
43 #include <net/x25call.h>
47 #include <net/lapbcall.h>
51 #include <net/ax25call.h>
53 #include <net/nrcall.h>
56 #include <net/rosecall.h>
61 #include <net/irda/irdacall.h>
64 #if defined(CONFIG_DECNET)
65 #include <net/decnet_call.h>
68 #if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
70 #include <net/atalkcall.h>
73 #if defined(CONFIG_NETBEUI)
75 #include <net/netbeuicall.h>
78 #if defined(CONFIG_LLC)
82 #include <net/psnapcall.h>
85 #include <linux/netdevice.h>
86 #include <linux/trdevice.h>
87 extern void rif_init(struct net_proto
*);
91 #include <linux/atm.h>
96 #include <net/llccall.h>
100 #include <net/p8022call.h>
107 struct net_proto protocols
[] = {
108 #ifdef CONFIG_NETLINK
109 { "NETLINK", netlink_proto_init
},
113 { "PACKET", packet_proto_init
},
117 { "UNIX", unix_proto_init
}, /* Unix domain socket family */
121 { "802.2", p8022_proto_init
}, /* 802.2 demultiplexor */
122 { "SNAP", snap_proto_init
}, /* SNAP demultiplexor */
126 { "RIF", rif_init
}, /* RIF for Token ring */
130 { "ATMPVC", atmpvc_proto_init
}, /* ATM PVCs */
131 { "ATMSVC", atmsvc_proto_init
}, /* ATM SVCs */
135 { "802.2LLC", llc_init
}, /* 802.2 LLC */
139 { "AX.25", ax25_proto_init
}, /* Amateur Radio AX.25 */
141 { "NET/ROM", nr_proto_init
}, /* Amateur Radio NET/ROM */
144 { "Rose", rose_proto_init
}, /* Amateur Radio X.25 PLP */
148 { "DECnet", decnet_proto_init
}, /* DECnet */
151 { "INET", inet_proto_init
}, /* TCP/IP */
153 { "INET6", inet6_proto_init
}, /* IPv6 */
158 { "IPX", ipx_proto_init
}, /* IPX */
162 { "DDP", atalk_proto_init
}, /* Netatalk Appletalk driver */
166 { "LAPB", lapb_proto_init
}, /* LAPB protocols */
170 { "X.25", x25_proto_init
}, /* CCITT X.25 Packet Layer */
174 { "Econet", econet_proto_init
}, /* Acorn Econet */
178 { "IrDA", irda_proto_init
}, /* IrDA protocols */
181 { NULL
, NULL
} /* End marker */