diff options
author | Martin Mares <mj@ucw.cz> | 1998-04-22 14:58:34 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-04-22 14:58:34 +0200 |
commit | 58ef912c6babf1866193ab04674a5866dd761f13 (patch) | |
tree | 244af1a4acb9feac08b45800587a06653a6ff264 /sysdep | |
parent | b60f7489148d021cb541414b8788f795ec4378fa (diff) | |
download | bird-58ef912c6babf1866193ab04674a5866dd761f13.tar bird-58ef912c6babf1866193ab04674a5866dd761f13.zip |
First look at data structures. More to come tomorrow...
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/cf/linux-20.h | 11 | ||||
-rw-r--r-- | sysdep/cf/linux-21.h | 11 | ||||
-rw-r--r-- | sysdep/cf/linux-v6.h | 13 | ||||
-rw-r--r-- | sysdep/config.h | 50 | ||||
-rw-r--r-- | sysdep/linux/Makefile | 1 |
5 files changed, 86 insertions, 0 deletions
diff --git a/sysdep/cf/linux-20.h b/sysdep/cf/linux-20.h new file mode 100644 index 0000000..6100add --- /dev/null +++ b/sysdep/cf/linux-20.h @@ -0,0 +1,11 @@ +/* + * Configuration for Linux 2.0 based systems + * + * (c) 1998 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 diff --git a/sysdep/cf/linux-21.h b/sysdep/cf/linux-21.h new file mode 100644 index 0000000..a2afcbb --- /dev/null +++ b/sysdep/cf/linux-21.h @@ -0,0 +1,11 @@ +/* + * Configuration for Linux 2.1 based systems + * + * (c) 1998 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 diff --git a/sysdep/cf/linux-v6.h b/sysdep/cf/linux-v6.h new file mode 100644 index 0000000..de397fc --- /dev/null +++ b/sysdep/cf/linux-v6.h @@ -0,0 +1,13 @@ +/* + * Configuration for Linux 2.1 based systems running IPv6 + * + * (c) 1998 Martin Mares <mj@ucw.cz> + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#define IPV6 + +#define CONFIG_TOS +#define CONFIG_MULTIPATH +#define CONFIG_NETLINK diff --git a/sysdep/config.h b/sysdep/config.h new file mode 100644 index 0000000..e83a508 --- /dev/null +++ b/sysdep/config.h @@ -0,0 +1,50 @@ +/* + * This is a manually generated BIRD configuration file. + * It will be replaced by something better when we come + * with an automated configuration mechanism. [mj] + */ + +#ifndef _BIRD_CONFIG_H_ +#define _BIRD_CONFIG_H_ + +/* System-dependent configuration */ + +#include <sysdep/cf/linux-20.h> + +/* Include debugging code */ + +#define DEBUG + +/* Types */ + +typedef signed char s8; +typedef unsigned char u8; +typedef short int s16; +typedef unsigned short int u16; +typedef int s32; +typedef unsigned int u32; + +typedef u8 byte; +typedef u16 word; + +/* Endianity */ + +#define CPU_LITTLE_ENDIAN + +/* Required alignment for multi-byte accesses */ + +#define CPU_NEEDS_ALIGN_WORD 1 +#define CPU_NEEDS_ALIGN_LONG 1 + +/* Usual alignment for structures */ + +#define CPU_STRUCT_ALIGN 4 + +/* Protocol options */ + +#define CONFIG_STATIC +#define CONFIG_RIP +#define CONFIG_BGP +#define CONFIG_OSPF + +#endif diff --git a/sysdep/linux/Makefile b/sysdep/linux/Makefile new file mode 100644 index 0000000..a81db06 --- /dev/null +++ b/sysdep/linux/Makefile @@ -0,0 +1 @@ +include $(TOPDIR)/Rules |