projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tinc_TUNTAP now substitutes the values outside the AC_CACHE_CHECK
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
289d0b8
..
fa32b89
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-1,7
+1,7
@@
/*
meta.c -- handle the meta communication
/*
meta.c -- handle the meta communication
- Copyright (C) 2000 Guus Sliepen <guus@sliepen.warande.net>,
- 2000 Ivo Timmermans <itimmermans@bigfoot.com>
+ Copyright (C) 2000
,2001
Guus Sliepen <guus@sliepen.warande.net>,
+ 2000
,2001
Ivo Timmermans <itimmermans@bigfoot.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,11
+17,12
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: meta.c,v 1.1.2.1
2 2000/11/20 19:12:12
guus Exp $
+ $Id: meta.c,v 1.1.2.1
4 2001/01/07 17:08:57
guus Exp $
*/
#include "config.h"
#include <utils.h>
*/
#include "config.h"
#include <utils.h>
+#include <avl_tree.h>
#include <errno.h>
#include <syslog.h>
#include <errno.h>
#include <syslog.h>
@@
-74,12
+75,12
@@
cp
void broadcast_meta(connection_t *cl, char *buffer, int length)
{
void broadcast_meta(connection_t *cl, char *buffer, int length)
{
-
rbl_t *rbl
;
+
avl_node_t *node
;
connection_t *p;
cp
connection_t *p;
cp
-
RBL_FOREACH(connection_tree, rbl
)
+
for(node = connection_tree->head; node; node = node->next
)
{
{
- p = (connection_t *)
rbl
->data;
+ p = (connection_t *)
node
->data;
if(p != cl && p->status.meta && p->status.active)
send_meta(p, buffer, length);
}
if(p != cl && p->status.meta && p->status.active)
send_meta(p, buffer, length);
}