]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Cleaned up system configuration files -- removed few obsolete parameters,
authorMartin Mares <mj@ucw.cz>
Sat, 27 Mar 1999 22:51:05 +0000 (22:51 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 27 Mar 1999 22:51:05 +0000 (22:51 +0000)
documented the remaining ones (sysdep/cf/README).

Available configurations:

   o  linux-20: Old Linux interface via /proc/net/route (selected by default
on pre-2.1 kernels).
   o  linux-21: Old Linux interface, but device routes handled by the
kernel (selected by default for 2.1 and newer kernels).
   o  linux-22: Linux with Netlink (I play with it a lot yet, so it isn't
a default).
   o  linux-ipv6: Prototype config for IPv6 on Linux. Not functional yet.

configure.in
sysdep/cf/README [new file with mode: 0644]
sysdep/cf/linux-20.h
sysdep/cf/linux-21.h
sysdep/cf/linux-22.h [new file with mode: 0644]
sysdep/cf/linux-v6.h
sysdep/linux/netlink/netlink.c

index aa527a02b907ca3f2fb55f5c03201cb044111a15..d945a8f1ce8874567a55c3c6400206fa96be5f1e 100644 (file)
@@ -47,7 +47,11 @@ elif test -f sysconfig.h ; then
        sysdesc=sysconfig
 else
        case "$host_os" in
-               linux*)         sysdesc=linux-20 ;;
+               linux*)         case `uname -r` in
+                                       1.*|2.0.*)      sysdesc=linux-20 ;;
+                                       *)              sysdesc=linux-21 ;;
+                                       esac
+                               ;;
                *)              AC_MSG_RESULT(unknown)
                                AC_MSG_ERROR([Cannot determine correct system configuration.])
                                ;;
diff --git a/sysdep/cf/README b/sysdep/cf/README
new file mode 100644 (file)
index 0000000..c35ffe5
--- /dev/null
@@ -0,0 +1,10 @@
+Available configuration variables:
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+CONFIG_TOS             Routing by TOS supported
+CONFIG_AUTO_ROUTES     Device routes are added automagically by the kernel
+CONFIG_ALL_MULTICAST   All devices support multicasting (i.e., ignore IFF_MULTICAST)
+
+CONFIG_UNIX_IFACE      Use Unix interface scanner
+CONFIG_UNIX_SET                Use Unix route setting
+CONFIG_LINUX_SCAN      Use Linux /proc/net/route scanner
index e514218f440609bb05a92e25045f552a73b5ed96..75f12ac959614ea00e87c135babfd64e36843cc5 100644 (file)
@@ -1,14 +1,12 @@
 /*
  *     Configuration for Linux 2.0 based systems
  *
- *     (c) 1998 Martin Mares <mj@ucw.cz>
+ *     (c) 1998--1999 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
 #undef CONFIG_TOS
-#undef CONFIG_MULTIPATH
-#undef CONFIG_NETLINK
 #undef CONFIG_AUTO_ROUTES
 #define CONFIG_ALL_MULTICAST
 
index 7aeaab0a84b59a73e3f8dd84ff88a78cfaf93fdd..f5efe4ddebc3d3eeff3661b06c6ed0d57a189f4d 100644 (file)
@@ -1,19 +1,20 @@
 /*
- *     Configuration for Linux 2.1 based systems
+ *     Configuration for Linux 2.1/2.2 based systems without Netlink
  *
  *     (c) 1998--1999 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#define CONFIG_TOS
-#define CONFIG_MULTIPATH
-#define CONFIG_NETLINK
+#undef CONFIG_TOS
 #define CONFIG_AUTO_ROUTES
 #define CONFIG_ALL_MULTICAST
 
+#define CONFIG_UNIX_IFACE
+#define CONFIG_UNIX_SET
+#define CONFIG_LINUX_SCAN
+
 /*
-Link: sysdep/linux/netlink
 Link: sysdep/linux
 Link: sysdep/unix
  */
diff --git a/sysdep/cf/linux-22.h b/sysdep/cf/linux-22.h
new file mode 100644 (file)
index 0000000..966fb7c
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ *     Configuration for Linux 2.2 based systems
+ *
+ *     (c) 1998--1999 Martin Mares <mj@ucw.cz>
+ *
+ *     Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#define CONFIG_TOS
+#define CONFIG_AUTO_ROUTES
+#define CONFIG_ALL_MULTICAST
+
+/*
+Link: sysdep/linux/netlink
+Link: sysdep/linux
+Link: sysdep/unix
+ */
index c381e38768614a0a4d0bc92c12bbd267a9923e1c..69ab0f8ff8aa90c8dd76d85122fc639ab6fe97d6 100644 (file)
@@ -1,7 +1,7 @@
 /*
- *     Configuration for Linux 2.1 based systems running IPv6
+ *     Configuration for Linux 2.2 based systems running IPv6
  *
- *     (c) 1998 Martin Mares <mj@ucw.cz>
+ *     (c) 1998--1999 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
@@ -9,12 +9,11 @@
 #define IPV6
 
 #define CONFIG_TOS
-#define CONFIG_MULTIPATH
-#define CONFIG_NETLINK
 #define CONFIG_AUTO_ROUTES
 #define CONFIG_ALL_MULTICAST
 
 /*
+Link: sysdep/linux/netlink
 Link: sysdep/linux
 Link: sysdep/unix
  */
index 57e18991b1d14423d3e8712e8ec43d20ba4d3c8d..0849e79ff50f36902da699d2d05957de2387b62b 100644 (file)
 #include "lib/krt.h"
 #include "lib/socket.h"
 
-/*
- *     We need to work around namespace conflicts between us and the kernel,
- *     but I prefer this way to being forced to rename our configuration symbols.
- *     This will disappear as soon as netlink headers become part of the libc.
- */
-
-#undef CONFIG_NETLINK
-#include <linux/config.h>
-#ifndef CONFIG_NETLINK
-#error "Kernel not configured to support netlink"
-#endif
-
 #include <asm/types.h>
 #include <linux/netlink.h>
 #include <linux/rtnetlink.h>