1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
/*
* Protocol initializer table. Here separately for convenience
*
*/
#include <linux/config.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/net.h>
#include <linux/fs.h>
#define CONFIG_UNIX /* always present... */
#ifdef CONFIG_UNIX
#include <net/af_unix.h>
#endif
#ifdef CONFIG_INET
#include <linux/inet.h>
#endif
#if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE)
#include <net/ipxcall.h>
#include <net/p8022call.h>
#include <net/p8022trcall.h>
#endif
#ifdef CONFIG_AX25
#include <net/ax25call.h>
#ifdef CONFIG_NETROM
#include <net/nrcall.h>
#endif
#ifdef CONFIG_ROSE
#include <net/rosecall.h>
#endif
#endif
#if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
#if ! ( defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE) )
#include <net/p8022call.h>
#include <net/p8022trcall.h>
#endif
#include <net/atalkcall.h>
#endif
#include <net/psnapcall.h>
#ifdef CONFIG_TR
#include <linux/netdevice.h>
#include <linux/trdevice.h>
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 }, /* Amateur Radio AX.25 */
#ifdef CONFIG_NETROM
{ "NET/ROM", nr_proto_init }, /* Amateur Radio NET/ROM */
#endif
#ifdef CONFIG_ROSE
{ "Rose", rose_proto_init }, /* Amateur Radio X.25 PLP */
#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 */
};
|