1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

The library is now glued together from generic and OS-dependent parts

by the `mergedirs' script. Few more IP address manipulation functions
and some fixes.
This commit is contained in:
Martin Mares
1998-05-15 07:56:13 +00:00
parent 62aa008abd
commit 25697773b5
20 changed files with 152 additions and 30 deletions

View File

@@ -9,3 +9,7 @@
#undef CONFIG_TOS
#undef CONFIG_MULTIPATH
#undef CONFIG_NETLINK
/*
Link: sysdep/linux
*/

View File

@@ -9,3 +9,7 @@
#define CONFIG_TOS
#define CONFIG_MULTIPATH
#define CONFIG_NETLINK
/*
Link: sysdep/linux
*/

View File

@@ -11,3 +11,7 @@
#define CONFIG_TOS
#define CONFIG_MULTIPATH
#define CONFIG_NETLINK
/*
Link: sysdep/linux
*/

View File

@@ -1 +0,0 @@
include $(TOPDIR)/Rules

0
sysdep/linux/Modules Normal file
View File

View File

@@ -1,3 +0,0 @@
OBJS=log.o
include $(TOPDIR)/Rules

3
sysdep/unix/Modules Normal file
View File

@@ -0,0 +1,3 @@
log.c
main.c
timer.h

25
sysdep/unix/main.c Normal file
View File

@@ -0,0 +1,25 @@
/*
* BIRD Internet Routing Daemon -- Unix Entry Point
*
* (c) 1998 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#include <stdio.h>
#include "nest/bird.h"
#include "lib/lists.h"
#include "lib/resource.h"
#include "nest/route.h"
int
main(void)
{
log(L_INFO "Launching BIRD -1.-1-pre-omega...");
log_init_debug(NULL);
resource_init();
return 0;
}

26
sysdep/unix/timer.h Normal file
View File

@@ -0,0 +1,26 @@
/*
* BIRD Timers
*
* (c) 1998 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#ifndef _BIRD_TIMER_H_
#define _BIRD_TIMER_H_
#include "lib/resource.h"
typedef struct timer {
resource r;
void (*hook)(struct timer *);
void *data;
/* internal fields should be here */
} timer;
timer *tm_new(pool *, void (*hook)(timer *), void *data);
void tm_start(timer *, unsigned after);
void tm_stop(timer *);
void tm_trigger(timer *);
#endif