projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to edge and graph stuff. This time, use a directed graph.
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
edbcbf5
..
fe7a562
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-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: net_setup.c,v 1.1.2.2
2 2002/09/03 20:43:25
guus Exp $
+ $Id: net_setup.c,v 1.1.2.2
3 2002/09/04 13:48:52
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-67,6
+67,7
@@
#include "process.h"
#include "protocol.h"
#include "subnet.h"
#include "process.h"
#include "protocol.h"
#include "subnet.h"
+#include "graph.h"
#include "process.h"
#include "route.h"
#include "device.h"
#include "process.h"
#include "route.h"
#include "device.h"
@@
-463,6
+464,8
@@
cp
myself->status.reachable = 1;
node_add(myself);
myself->status.reachable = 1;
node_add(myself);
+ graph();
+
cp
/* Open sockets */
cp
/* Open sockets */
@@
-528,6
+531,7
@@
cp
init_connections();
init_subnets();
init_nodes();
init_connections();
init_subnets();
init_nodes();
+ init_edges();
init_events();
init_requests();
init_events();
init_requests();
@@
-593,6
+597,7
@@
cp
exit_requests();
exit_events();
exit_requests();
exit_events();
+ exit_edges();
exit_subnets();
exit_nodes();
exit_connections();
exit_subnets();
exit_nodes();
exit_connections();