root/net/protocols.c

/* [previous][next][first][last][top][bottom][index][help] */
   1 /*
   2  *      Protocol initializer table. Here separately for convenience
   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 #include <linux/fs.h>
  12 
  13 #define CONFIG_UNIX             /* always present...    */
  14 
  15 #ifdef  CONFIG_UNIX
  16 #include <net/af_unix.h>
  17 #endif
  18 #ifdef  CONFIG_INET
  19 #include <linux/inet.h>
  20 #endif
  21 #if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE)
  22 #include <net/ipxcall.h>
  23 #include <net/p8022call.h>
  24 #endif
  25 #ifdef CONFIG_AX25
  26 #include <net/ax25call.h>
  27 #ifdef CONFIG_NETROM
  28 #include <net/nrcall.h>
  29 #endif
  30 #endif
  31 #if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
  32 #if ! ( defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE) )
  33 #include <net/p8022call.h>
  34 #endif
  35 #include <net/atalkcall.h>
  36 #endif
  37 #include <net/psnapcall.h>
  38 #ifdef CONFIG_TR
  39 #include <linux/netdevice.h>
  40 #include <linux/trdevice.h>
  41 extern void rif_init(struct net_proto *);
  42 #endif
  43 /*
  44  *      Protocol Table
  45  */
  46  
  47 struct net_proto protocols[] = {
  48 #ifdef  CONFIG_UNIX
  49   { "UNIX",     unix_proto_init },                      /* Unix domain socket family    */
  50 #endif
  51 #if defined(CONFIG_IPX)   || defined(CONFIG_IPX_MODULE) || \
  52     defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
  53   { "802.2",    p8022_proto_init },                     /* 802.2 demultiplexor          */
  54   { "SNAP",     snap_proto_init },                      /* SNAP demultiplexor           */
  55 #endif
  56 #ifdef CONFIG_TR
  57   { "RIF",      rif_init },                             /* RIF for Token ring           */
  58 #endif  
  59 #ifdef CONFIG_AX25  
  60   { "AX.25",    ax25_proto_init },
  61 #ifdef CONFIG_NETROM
  62   { "NET/ROM",  nr_proto_init },
  63 #endif
  64 #endif  
  65 #ifdef  CONFIG_INET
  66   { "INET",     inet_proto_init },                      /* TCP/IP                       */
  67 #endif
  68 #ifdef  CONFIG_IPX
  69   { "IPX",      ipx_proto_init },                       /* IPX                          */
  70 #endif
  71 #ifdef CONFIG_ATALK
  72   { "DDP",      atalk_proto_init },                     /* Netatalk Appletalk driver    */
  73 #endif
  74   { NULL,       NULL            }                       /* End marker                   */
  75 };

/* [previous][next][first][last][top][bottom][index][help] */