summaryrefslogtreecommitdiffstats
path: root/net/protocols.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /net/protocols.c
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'net/protocols.c')
-rw-r--r--net/protocols.c53
1 files changed, 45 insertions, 8 deletions
diff --git a/net/protocols.c b/net/protocols.c
index d5090bc47..24e67cde1 100644
--- a/net/protocols.c
+++ b/net/protocols.c
@@ -13,6 +13,7 @@
#define CONFIG_UNIX /* always present... */
#ifdef CONFIG_UNIX
+#include <linux/un.h>
#include <net/af_unix.h>
#endif
@@ -24,13 +25,18 @@ extern void inet6_proto_init(struct net_proto *pro);
#endif /* INET */
#if defined(CONFIG_IPX) || defined(CONFIG_IPX_MODULE)
+#define NEED_802
#include <net/ipxcall.h>
-#include <net/p8022call.h>
-#include <net/p8022trcall.h>
#endif
+
#ifdef CONFIG_X25
#include <net/x25call.h>
#endif
+
+#ifdef CONFIG_LAPB
+#include <net/lapbcall.h>
+#endif
+
#ifdef CONFIG_AX25
#include <net/ax25call.h>
#ifdef CONFIG_NETROM
@@ -40,19 +46,35 @@ extern void inet6_proto_init(struct net_proto *pro);
#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
+#define NEED_802
#include <net/atalkcall.h>
#endif
+
+#if defined(CONFIG_NETBEUI)
+#define NEED_LLC
+#include <net/netbeuicall.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
+
+#ifdef NEED_LLC
+#define NEED_802
+#include <net/llccall.h>
+#endif
+
+#ifdef NEED_802
+#include <net/p8022call.h>
+#include <net/p8022trcall.h>
+#endif
+
/*
* Protocol Table
*/
@@ -61,15 +83,21 @@ 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)
+
+#ifdef NEED_802
{ "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 NEED_LLC
+ { "802.2LLC", llc_init }, /* 802.2 LLC */
+#endif
+
#ifdef CONFIG_AX25
{ "AX.25", ax25_proto_init }, /* Amateur Radio AX.25 */
#ifdef CONFIG_NETROM
@@ -79,20 +107,29 @@ struct net_proto protocols[] = {
{ "Rose", rose_proto_init }, /* Amateur Radio X.25 PLP */
#endif
#endif
+
#ifdef CONFIG_INET
{ "INET", inet_proto_init }, /* TCP/IP */
#ifdef CONFIG_IPV6
{ "INET6", inet6_proto_init}, /* IPv6 */
#endif
#endif
+
#ifdef CONFIG_IPX
{ "IPX", ipx_proto_init }, /* IPX */
#endif
+
#ifdef CONFIG_ATALK
{ "DDP", atalk_proto_init }, /* Netatalk Appletalk driver */
#endif
+
+#ifdef CONFIG_LAPB
+ { "LAPB", lapb_proto_init }, /* LAPB protocols */
+#endif
+
#ifdef CONFIG_X25
{ "X.25", x25_proto_init }, /* CCITT X.25 Packet Layer */
#endif
+
{ NULL, NULL } /* End marker */
};