summaryrefslogtreecommitdiff
path: root/sysdep
AgeCommit message (Collapse)Author
1999-02-05Implemented new configuration/reconfiguration interface and defined protocolMartin Mares
state machines. Full explanation will follow soon.
1999-01-15filters_init() renamed to filters_postconfig().Pavel Machek
1999-01-15Filters, second try. This time they have their own directory.Pavel Machek
1999-01-15Properly initialize filters. Also bumped version to 0.0.0 as itPavel Machek
actually does something.
1999-01-10New makefiles. Includes support for out-of-source-tree builds.Martin Mares
1999-01-09First step of "autoconfization". Created a configure script whichMartin Mares
guesses most system-dependent parameters and determines name of system configuration file (sysdep/cf/...) with the remaining ones. To compile BIRD, you now need to do: autoconf # Create configure from configure.in ./configure # Run configure script make # Compile everything Configuration files: sysdep/config.h Master config file sysdep/autoconf.h Parameters determined by configure script sysdep/cf/*.h Fixed system configuration we're unable to guess. Makefiles are still the original ones, but this will change soon.
1998-12-20die() -> bug() where appropriate.Martin Mares
1998-12-20Finer grained logging levels:Martin Mares
#define L_DEBUG "\001" /* Debugging messages */ #define L_INFO "\002" /* Informational messages */ #define L_WARN "\003" /* Warnings */ #define L_ERR "\004" /* Errors */ #define L_AUTH "\005" /* Authorization failed etc. */ #define L_FATAL "\006" /* Fatal errors */ #define L_TRACE "\002" /* Protocol tracing */ #define L_INFO "\003" /* Informational messages */ #define L_REMOTE "\004" /* Remote protocol errors */ #define L_WARN "\004" /* Local warnings */ #define L_ERR "\005" /* Local errors */ #define L_AUTH "\006" /* Authorization failed etc. */ #define L_FATAL "\007" /* Fatal errors */ #define L_BUG "\010" /* BIRD bugs */ Introduced bug() which is like die(), but with level L_BUG. Protocols should _never_ call die() as it should be used only during initialization and on irrecoverable catastrophic events like out of memory. Also introduced ASSERT() which behaves like normal assert(), but it calls bug() when assertion fails. When !defined(DEBUGGING), it gets ignored.
1998-12-08Hopefully finished kernel syncer (krt) rewrite:Martin Mares
o Interface syncing is now a part of krt and it can have configurable parameters. Actually, the only one is scan rate now :) o Kernel routing table syncing is now synchronized with interface syncing (we need the most recent version of the interface list to prevent lots of routes to non-existent destinations from appearing). Instead of its own timer, we just check if it's route scan time after each iface list scan. o Syncing of device routes implemented. o CONFIG_AUTO_ROUTES should control syncing of automatic device routes. o Rewrote krt_remove_route() to really remove routes :) o Better diagnostics. o Fixed a couple of bugs.
1998-12-08Rewritten kernel syncer. Now uses the rta trickery I've introduced yesterdayMartin Mares
and does things "the right way". Few things are still missing (device routes etc.), I'll add them later in the evening.
1998-12-07Comparison of kernel reject routes fixed.Martin Mares
1998-12-07KRF_* flags moved to krt.h as they are internal to kernel syncer,Martin Mares
fib->pad0,pad1 renamed to x0,x1 and in case of struct net x0 is reserved for kernel syncing as well.
1998-12-06Kernel syncer is now configurable. It will probably need some moreMartin Mares
options, but at least basic tuning is possible now.
1998-11-29Renamed `DEBUG' symbol to `DEBUGGING' to prevent collisions with tokenMartin Mares
names and include files.
1998-11-27First attempt at protocol configuration (now done only for RIP).Martin Mares
1998-11-27Compile and use the new configuration code by default.Martin Mares
1998-11-27Added path to config file.Martin Mares
1998-11-16Complain loudly if the logging buffer would overflow.Martin Mares
1998-10-20Learn static device routes from the kernel (temporary until we can makeMartin Mares
such things configurable).
1998-10-19Generate router_id automatically if possible (standard "smallest of localMartin Mares
regular interface addresses" rule). Protocols should NOT rely on router_id existence -- when router ID is not available, the router_id variable is set to zero and protocols requiring valid router ID should just refuse to start, reporting such error to the log.
1998-10-19Basic kernel routing table syncing implemented. Learning of routes installedMartin Mares
by other programs or the kernel itself is not supported yet, but it's not needed for development of other protocols.
1998-10-19Use (SOCK_DGRAM,IPPROTO_IP) socket instead of (SOCK_STREAM,IPPROTO_TCP).Martin Mares
This is exactly what Linux ifconfig does and seems to be the preferred way.
1998-10-19Exporting fill_in_sockaddr() for use by other unix-dependent code.Martin Mares
1998-10-18We parse /proc/net/route and flag RT entries according to it. More to comeMartin Mares
today in the morning...
1998-10-18Since almost every UNIX system requires different techniques for readingMartin Mares
the kernel routing table as opposed to modifying it which is approximately the same on non-netlink systems, I've split the kernel routing table routines to read and write parts. To be implemented later ;-)
1998-10-18Split protocol init to building of protocol list and real protocol init.Martin Mares
Added kernel route table syncer skeleton.
1998-10-17Solve chicken-and-egg problems with protocol startup. We now queue all inactiveMartin Mares
protocols and don't send route/interface updates to them and when they come up, we resend the whole route/interface tables privately. Removed the "scan interface list after protocol start" work-around.
1998-10-14Moved scanning of interfaces, so that they get initialized after allMartin Mares
routing protocol instances.
1998-10-13o There are cases when SIOCGIFINDEX is defined, but it doesn't work. WhenMartin Mares
this happens, don't reject the whole interface, just mark it as index 0. o Removed Pavel's comment about EFAULT and SIGSEGV. EFAULT is a valid return code for cases where the buffer is too small. o Commented out the smart interface list size logic temporarily as it seems Linux 2.0 SIOCGIFCONF doesn't react to ifc_req==NULL sanely. Replaced it by exponential stepping.
1998-10-13Strange, on atrey ioctl() does not fill structure, and bird segfaultsPavel Machek
on it. Now we "only" die().
1998-07-15Added comment explaining `now'.Martin Mares
1998-07-10Replaced remaining references of clock_t by bird_clock_t.Martin Mares
1998-07-09Making SIGUSR1 dump also all protocols.Pavel Machek
1998-06-17debug() and log() use the new printf. Feel free to use new formattingMartin Mares
sequences for all output.
1998-06-04Fixed processing of timers.Martin Mares
1998-06-03Killed socket debug code. Initialize config pool and protocols.Martin Mares
More to come later...
1998-06-01Synced to new interface code.Martin Mares
1998-05-26Whee, multicast sockets work!Martin Mares
Implemented recurrent timers.
1998-05-26Added CONFIG_AUTO_ROUTES (automatic device route creation) andMartin Mares
CONFIG_ALL_MULTICAST (all interfaces capable of multicasting, not depending on IFF_MULTICAST flag).
1998-05-26Implemented scanning of network interfaces. Mostly very ugly code due toMartin Mares
terrible kernel interface (SIOGIFCONF and friends).
1998-05-24Added UNIX implementation of both timers and sockets. Timers should work,Martin Mares
sockets were tested only in TCP mode. main.c now contains some test cases for socket code.
1998-05-24Implemented timers. Using bird_clock_t for absolute time from now...Martin Mares
1998-05-20Added routing table and routing attribute code.Martin Mares
1998-05-15The library is now glued together from generic and OS-dependent partsMartin Mares
by the `mergedirs' script. Few more IP address manipulation functions and some fixes.
1998-05-03BIRD library: The story continues.Martin Mares
Complete resource manages and IP address handling.
1998-05-03Added new subdir for UNIX-dependent files.Martin Mares
Now contains only functions for logging, but it will change soon.
1998-04-28Changed #include <x/y> to #include "x/y" for our local includes, so thatMartin Mares
gcc -MM can be used to separate them from the system ones. Added automatic generation of dependencies.
1998-04-22First look at data structures. More to come tomorrow...Martin Mares