search for: subnet_update

Displaying 5 results from an estimated 5 matches for "subnet_update".

2015 Sep 02
1
[Patch] Fix NAME variable in subnet-* scripts for local subnets.
Hi, attached is a patch that fixes that the NAME variable in subnet-up/down scripts for local subnets is not set. The reason for this was that there was a "hole" in the envp array in src/subnet.c:subnet_update(). If the subnet was local, envp[6] was NULL and the evaluation stoped there. Actually, the name string was leaking. This is easily fixed by changing the order in the array. I wasn't sure if the github repo linked on the webpage is still used, since there seems to be little activity. So again a...
2005 Jan 18
1
tinc svn rev 1432 segfaults
..., Segmentation fault. 0x0805667c in net2str (netstr=0xbffff8a0 "SUBNET=", len=71, subnet=0x0) at subnet.c:250 250 switch (subnet->type) { (gdb) bt #0 0x0805667c in net2str (netstr=0xbffff8a0 "SUBNET=", len=71, subnet=0x0) at subnet.c:250 #1 0x08056b35 in subnet_update (owner=0x80d3c48, subnet=0x0, up=true) at subnet.c:427 #2 0x0804f067 in setup_myself () at net_setup.c:467 #3 0x0804f528 in setup_network_connections () at net_setup.c:546 #4 0x080576a9 in main (argc=5, argv=0xbffffa44) at tincd.c:488 subnet_update is something which got added to net_setup....
2005 Mar 31
1
segfault in current svn
hi there ! the current version of tinc crashes with a segfault. it seems, as if has to to with fact, that i don`t have configured any subnets.... if the client tries to start up subnet_update() ist called for myself. the for iteration does not get an entry (because the subnet avl-tree is empty). the later call of net2str causes a segfault, because it gets an empty subnet and tries to access the type field of the subnet structure. i included a patch wich checks the subnet pointer bef...
2008 Sep 30
1
Problem compiling tinc-1.0.8 on gcc-2.95
...n->status.reachable ? "hosts/%s-up" : "hosts/%s-down", + n->status.st.reachable ? "hosts/%s-up" : "hosts/%s-down", n->name); execute_script(name, envp); @@ -306,7 +306,7 @@ for(i = 0; i < 6; i++) free(envp[i]); - subnet_update(n, NULL, n->status.reachable); + subnet_update(n, NULL, n->status.st.reachable); } } } diff -ubr tinc-1.0.8/src/meta.c tinc-1.0.8.my/src/meta.c --- tinc-1.0.8/src/meta.c Tue Nov 14 14:28:11 2006 +++ tinc-1.0.8.my/src/meta.c Thu Sep 25 11:19:53 2008 @@ -59,7 +59,7 @@ } /* Add our...
2007 Jul 21
2
tincctl patches
(Second try to send this. I wonder if the first one gotten eaten by a spam filter; I'll link to patches instead of attaching them.) Here are the tincctl patches I've been working on. They apply to http://www.tinc-vpn.org/svn/tinc/branches/1.1@1545. I intend to commit them once the crypto stuff's fixed. Since they're basically done, I'm emailing them now for review and in case