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 
  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 #ifdef CONFIG_IPX
  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 #ifdef CONFIG_ATALK
  32 #ifndef CONFIG_IPX
  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_ATALK)  
  52   { "802.2",    p8022_proto_init },                     /* 802.2 demultiplexor          */
  53   { "SNAP",     snap_proto_init },                      /* SNAP demultiplexor           */
  54 #endif
  55 #ifdef CONFIG_TR
  56   { "RIF",      rif_init },                             /* RIF for Token ring           */
  57 #endif  
  58 #ifdef CONFIG_AX25  
  59   { "AX.25",    ax25_proto_init },
  60 #ifdef CONFIG_NETROM
  61   { "NET/ROM",  nr_proto_init },
  62 #endif
  63 #endif  
  64 #ifdef  CONFIG_INET
  65   { "INET",     inet_proto_init },                      /* TCP/IP                       */
  66 #endif
  67 #ifdef  CONFIG_IPX
  68   { "IPX",      ipx_proto_init },                       /* IPX                          */
  69 #endif
  70 #ifdef CONFIG_ATALK
  71   { "DDP",      atalk_proto_init },                     /* Netatalk Appletalk driver    */
  72 #endif
  73   { NULL,       NULL            }                       /* End marker                   */
  74 };
  75 
  76 

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