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>
108 struct net_proto protocols
[] = {
109 #ifdef CONFIG_NETLINK
110 { "NETLINK", netlink_proto_init
},
114 { "PACKET", packet_proto_init
},
118 { "UNIX", unix_proto_init
}, /* Unix domain socket family */
122 { "802.2", p8022_proto_init
}, /* 802.2 demultiplexor */
123 { "SNAP", snap_proto_init
}, /* SNAP demultiplexor */
127 { "RIF", rif_init
}, /* RIF for Token ring */
131 { "ATMPVC", atmpvc_proto_init
}, /* ATM PVCs */
132 { "ATMSVC", atmsvc_proto_init
}, /* ATM SVCs */
136 { "802.2LLC", llc_init
}, /* 802.2 LLC */
140 { "AX.25", ax25_proto_init
}, /* Amateur Radio AX.25 */
142 { "NET/ROM", nr_proto_init
}, /* Amateur Radio NET/ROM */
145 { "Rose", rose_proto_init
}, /* Amateur Radio X.25 PLP */
149 { "DECnet", decnet_proto_init
}, /* DECnet */
152 { "INET", inet_proto_init
}, /* TCP/IP */
154 { "INET6", inet6_proto_init
}, /* IPv6 */
159 { "IPX", ipx_proto_init
}, /* IPX */
163 { "DDP", atalk_proto_init
}, /* Netatalk Appletalk driver */
167 { "LAPB", lapb_proto_init
}, /* LAPB protocols */
171 { "X.25", x25_proto_init
}, /* CCITT X.25 Packet Layer */
175 { "Econet", econet_proto_init
}, /* Acorn Econet */
179 { "IrDA", irda_proto_init
}, /* IrDA protocols */
181 { NULL
, NULL
} /* End marker */