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:
@@ -9,3 +9,7 @@
|
||||
#undef CONFIG_TOS
|
||||
#undef CONFIG_MULTIPATH
|
||||
#undef CONFIG_NETLINK
|
||||
|
||||
/*
|
||||
Link: sysdep/linux
|
||||
*/
|
||||
|
@@ -9,3 +9,7 @@
|
||||
#define CONFIG_TOS
|
||||
#define CONFIG_MULTIPATH
|
||||
#define CONFIG_NETLINK
|
||||
|
||||
/*
|
||||
Link: sysdep/linux
|
||||
*/
|
||||
|
@@ -11,3 +11,7 @@
|
||||
#define CONFIG_TOS
|
||||
#define CONFIG_MULTIPATH
|
||||
#define CONFIG_NETLINK
|
||||
|
||||
/*
|
||||
Link: sysdep/linux
|
||||
*/
|
||||
|
@@ -1 +0,0 @@
|
||||
include $(TOPDIR)/Rules
|
0
sysdep/linux/Modules
Normal file
0
sysdep/linux/Modules
Normal file
@@ -1,3 +0,0 @@
|
||||
OBJS=log.o
|
||||
|
||||
include $(TOPDIR)/Rules
|
3
sysdep/unix/Modules
Normal file
3
sysdep/unix/Modules
Normal file
@@ -0,0 +1,3 @@
|
||||
log.c
|
||||
main.c
|
||||
timer.h
|
25
sysdep/unix/main.c
Normal file
25
sysdep/unix/main.c
Normal 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
26
sysdep/unix/timer.h
Normal 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
|
Reference in New Issue
Block a user