- Integrate rbl trees into tinc.

This commit is contained in:
Guus Sliepen 2000-11-20 19:12:17 +00:00
parent 9024e01ce6
commit 408ca91766
18 changed files with 443 additions and 417 deletions

View file

@ -1,15 +1,15 @@
## Process this file with automake to produce Makefile.in
# $Id: Makefile.am,v 1.2.4.2 2000/11/15 22:04:48 zarq Exp $
# $Id: Makefile.am,v 1.2.4.3 2000/11/20 19:12:10 guus Exp $
noinst_LIBRARIES = libvpn.a
INCLUDES = -I. -I$(top_builddir) -I$(top_srcdir)/intl
libvpn_a_SOURCES = xmalloc.c pidfile.c utils.c getopt.c getopt1.c list.c
libvpn_a_SOURCES = xmalloc.c pidfile.c utils.c getopt.c getopt1.c list.c rbl.c
libvpn_a_LIBADD = @LIBOBJS@ @ALLOCA@
libvpn_a_DEPENDENCIES = $(libvpn_a_LIBADD)
noinst_HEADERS = xalloc.h pidfile.h utils.h getopt.h list.h
noinst_HEADERS = xalloc.h pidfile.h utils.h getopt.h list.h rbl.h
EXTRA_DIST = README
EXTRA_DIST = README

View file

@ -17,9 +17,10 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: rbl.c,v 1.1.2.7 2000/11/19 22:12:46 guus Exp $
$Id: rbl.c,v 1.1.2.8 2000/11/20 19:12:10 guus Exp $
*/
#include <stdlib.h>
#include <xalloc.h>
#include "rbl.h"

View file

@ -17,9 +17,14 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: rbl.h,v 1.1.2.6 2000/11/19 22:12:46 guus Exp $
$Id: rbl.h,v 1.1.2.7 2000/11/20 19:12:10 guus Exp $
*/
#ifndef __RBL_H__
#define __RBL_H__
#define RBL_FOREACH(tree,rbl) for(rbl = tree->head; rbl; rbl = rbl->next)
typedef struct rbl_t
{
/* 'red-black tree' part */
@ -91,3 +96,5 @@ extern void rbl_delete_rbltree(rbltree_t *);
extern void rbl_foreach(rbltree_t *, rbl_action_t);
extern void rbl_foreach_rbl(rbltree_t *, rbl_action_rbl_t);
#endif /* __RBL_H__ */