projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop graph and edge stuff. Use new node stuff instead.
[tinc]
/
src
/
edge.c
diff --git
a/src/edge.c
b/src/edge.c
index
f0337e1
..
eb664d2
100644
(file)
--- a/
src/edge.c
+++ b/
src/edge.c
@@
-1,7
+1,7
@@
/*
edge.c -- edge tree management
/*
edge.c -- edge tree management
- Copyright (C) 2000-2002 Guus Sliepen <guus@sliepen.
warande.net
>,
- 2000-2002 Ivo Timmermans <i
timmermans@bigfoot.com
>
+ Copyright (C) 2000-2002 Guus Sliepen <guus@sliepen.
eu.org
>,
+ 2000-2002 Ivo Timmermans <i
vo@o2w.nl
>
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,7
+17,7
@@
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: edge.c,v 1.1.2.
8 2002/03/22 11:43:46
guus Exp $
+ $Id: edge.c,v 1.1.2.
11 2002/06/21 10:11:12
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-189,25
+189,20
@@
void dump_edges(void)
{
avl_node_t *node;
edge_t *e;
{
avl_node_t *node;
edge_t *e;
- char *from_tcp, *from_udp;
- char *to_tcp, *to_udp;
+ char *from_udp, *to_udp;
cp
syslog(LOG_DEBUG, _("Edges:"));
for(node = edge_tree->head; node; node = node->next)
{
e = (edge_t *)node->data;
cp
syslog(LOG_DEBUG, _("Edges:"));
for(node = edge_tree->head; node; node = node->next)
{
e = (edge_t *)node->data;
-// from_tcp = sockaddr2hostname(&e->from.tcpaddress);
from_udp = sockaddr2hostname(&e->from.udpaddress);
from_udp = sockaddr2hostname(&e->from.udpaddress);
-// to_tcp = sockaddr2hostname(&e->to.tcpaddress);
to_udp = sockaddr2hostname(&e->to.udpaddress);
to_udp = sockaddr2hostname(&e->to.udpaddress);
- syslog(LOG_DEBUG, _(" %s at %s - %s at %s options %l
d
weight %d"),
+ syslog(LOG_DEBUG, _(" %s at %s - %s at %s options %l
x
weight %d"),
e->from.node->name, from_udp,
e->to.node->name, to_udp,
e->options, e->weight);
e->from.node->name, from_udp,
e->to.node->name, to_udp,
e->options, e->weight);
-// free(from_tcp);
free(from_udp);
free(from_udp);
-// free(to_tcp);
free(to_udp);
}
free(to_udp);
}