/* * Protocol initializer table. Here separately for convenience * */ #include #include #include #include #include #define CONFIG_UNIX /* always present... */ #ifdef CONFIG_UNIX #include #endif #ifdef CONFIG_INET #include #endif #if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE) #include #include #include #endif #ifdef CONFIG_AX25 #include #ifdef CONFIG_NETROM #include #endif #endif #if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE) #if ! ( defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE) ) #include #include #endif #include #endif #include #ifdef CONFIG_TR #include #include extern void rif_init(struct net_proto *); #endif /* * Protocol Table */ struct net_proto protocols[] = { #ifdef CONFIG_UNIX { "UNIX", unix_proto_init }, /* Unix domain socket family */ #endif #if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE) || \ defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE) { "802.2", p8022_proto_init }, /* 802.2 demultiplexor */ { "802.2TR", p8022tr_proto_init }, /* 802.2 demultiplexor */ { "SNAP", snap_proto_init }, /* SNAP demultiplexor */ #endif #ifdef CONFIG_TR { "RIF", rif_init }, /* RIF for Token ring */ #endif #ifdef CONFIG_AX25 { "AX.25", ax25_proto_init }, #ifdef CONFIG_NETROM { "NET/ROM", nr_proto_init }, #endif #endif #ifdef CONFIG_INET { "INET", inet_proto_init }, /* TCP/IP */ #endif #ifdef CONFIG_IPX { "IPX", ipx_proto_init }, /* IPX */ #endif #ifdef CONFIG_ATALK { "DDP", atalk_proto_init }, /* Netatalk Appletalk driver */ #endif { NULL, NULL } /* End marker */ };