From: Philipp Tölke Date: Tue, 20 Jul 2010 11:36:45 +0000 (+0000) Subject: bugfixes in gnunet-vpn-helper X-Git-Tag: initial-import-from-subversion-38251~20909 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0cf7809e4926f01de6a7a404a9d311b5cf2b421b;p=oweals%2Fgnunet.git bugfixes in gnunet-vpn-helper --- diff --git a/src/vpn/gnunet-vpn-helper.c b/src/vpn/gnunet-vpn-helper.c index 1c6df623a..0577173b0 100644 --- a/src/vpn/gnunet-vpn-helper.c +++ b/src/vpn/gnunet-vpn-helper.c @@ -122,7 +122,7 @@ int main(int argc, char** argv) { // TODO: get this out of argv char address[] = "1234::1"; - unsigned long prefix_len = 8; + unsigned long prefix_len = 16; set_address(dev, address, prefix_len); @@ -167,7 +167,6 @@ outer: wri=0; goto outer; } - r = 0; while (r < ntohl(pkt->hdr.size)) { int t = read(0, buf + r, ntohl(pkt->hdr.size) - r); if (r < 0) {