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 #include <net/p8022trcall.h>
  25 #endif
  26 #ifdef CONFIG_AX25
  27 #include <net/ax25call.h>
  28 #ifdef CONFIG_NETROM
  29 #include <net/nrcall.h>
  30 #endif
  31 #endif
  32 #if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
  33 #if ! ( defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE) )
  34 #include <net/p8022call.h>
  35 #include <net/p8022trcall.h>
  36 #endif
  37 #include <net/atalkcall.h>
  38 #endif
  39 #include <net/psnapcall.h>
  40 #ifdef CONFIG_TR
  41 #include <linux/netdevice.h>
  42 #include <linux/trdevice.h>
  43 extern void rif_init(struct net_proto *);
  44 #endif
  45 /*
  46  *      Protocol Table
  47  */
  48  
  49 struct net_proto protocols[] = {
  50 #ifdef  CONFIG_UNIX
  51   { "UNIX",     unix_proto_init },                      /* Unix domain socket family    */
  52 #endif
  53 #if defined(CONFIG_IPX)   || defined(CONFIG_IPX_MODULE) || \
  54     defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
  55   { "802.2",    p8022_proto_init },                     /* 802.2 demultiplexor          */
  56   { "802.2TR",  p8022tr_proto_init },                   /* 802.2 demultiplexor          */
  57   { "SNAP",     snap_proto_init },                      /* SNAP demultiplexor           */
  58 #endif
  59 #ifdef CONFIG_TR
  60   { "RIF",      rif_init },                             /* RIF for Token ring           */
  61 #endif  
  62 #ifdef CONFIG_AX25  
  63   { "AX.25",    ax25_proto_init },
  64 #ifdef CONFIG_NETROM
  65   { "NET/ROM",  nr_proto_init },
  66 #endif
  67 #endif  
  68 #ifdef  CONFIG_INET
  69   { "INET",     inet_proto_init },                      /* TCP/IP                       */
  70 #endif
  71 #ifdef  CONFIG_IPX
  72   { "IPX",      ipx_proto_init },                       /* IPX                          */
  73 #endif
  74 #ifdef CONFIG_ATALK
  75   { "DDP",      atalk_proto_init },                     /* Netatalk Appletalk driver    */
  76 #endif
  77   { NULL,       NULL            }                       /* End marker                   */
  78 };

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