search for: ifdebug

Displaying 9 results from an estimated 9 matches for "ifdebug".

Did you mean: fdebug
2008 Sep 30
1
Problem compiling tinc-1.0.8 on gcc-2.95
...>status.visited != n->status.reachable) { - n->status.reachable = !n->status.reachable; + if(n->status.st.visited != n->status.st.reachable) { + n->status.st.reachable = !n->status.st.reachable; - if(n->status.reachable) { + if(n->status.st.reachable) { ifdebug(TRAFFIC) logger(LOG_DEBUG, _("Node %s (%s) became reachable"), n->name, n->hostname); avl_insert(node_udp_tree, n); @@ -276,8 +276,8 @@ avl_delete(node_udp_tree, n); } - n->status.validkey = false; - n->status.waitingforkey = false; + n->statu...
2012 Jan 12
2
is there an equivalent for #ifdef (C langage) in R
Hi, I'd like to know if there is an equivalent for #ifdef (Clangage) in R. I 'd like to do something like: useDebug = defmacro(DEBUG, expr=(DEBUG==1)) if(useDebug(0)){ #Here I do not use debug mode make_addition = function(a, b) { c=a+b plot(c) return(c) } }else{ #here I use debug mode c=a+b } I assume this would work... The problem is : if
2010 Sep 20
0
No subject
...n->minmtu) / (double) = nbPackets * i; =20 if(len < 64) len =3D 64; =09 - memset(packet.data, 0, 14); - RAND_pseudo_bytes(packet.data + 14, len - 14); + //RAND_pseudo_bytes(packet.data, len); + memset(packet.data, 0x0, len); packet.len =3D len; packet.priority =3D 0; =20 - ifdebug(TRAFFIC) logger(LOG_INFO, "Sending MTU probe length %d to %s = (%s)", len, n->name, n->hostname); + ifdebug(TRAFFIC) logger(LOG_INFO, "Sending MTU probe length %d to %s = (%s) from interval [%d - %d]", len, n->name, n->hostname, n->minmtu, = n->maxmtu); =20...
2010 Sep 20
0
No subject
...each packet that is being = sent/received */ + DEBUG_SCARY_THINGS =3D 64 - 1 /* You have been warned */ } debug_t; =20 typedef enum logmode_t { @@ -50,6 +50,6 @@ extern void logger(int, const char *, ...) __attribute__ = ((__format__(printf, 2, 3))); extern void closelogger(void); =20 -#define ifdebug(l) if(debug_level >=3D DEBUG_##l) +#define ifdebug(l) if(debug_level & DEBUG_##l) =20 #endif /* __TINC_LOGGER_H__ */ ------=_NextPart_000_0001_01CBAE62.CE89B370--
2006 Jun 01
1
Random crashes after sighup
...ures. Regards, -- Ga?l Roualland -+- gael.roualland@dial.oleane.com -------------- next part -------------- diff -ru tinc-1.0.4/src/net.c tinc-1.0.4.gr/src/net.c --- tinc-1.0.4/src/net.c Wed May 4 20:09:37 2005 +++ tinc-1.0.4.gr/src/net.c Wed May 17 23:02:38 2006 @@ -248,7 +248,7 @@ } ifdebug(CONNECTIONS) logger(LOG_WARNING, _("Timeout from %s (%s) during authentication"), c->name, c->hostname); - if(c->status.connecting) { + if(c->status.connecting && c->outgoing) { c->status.connecting = false; closesocket(c->socket);...
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
...p(from); /* Some braindead IPv6 implementations do stupid things. */ - n = lookup_node_udp(&from); + n = lookup_node_udp(from); if(!n) { - n = try_harder(&from, &pkt); + n = try_harder(from, pkt); if(n) - update_node_udp(n, &from); + update_node_udp(n, from); else ifdebug(PROTOCOL) { - hostname = sockaddr2hostname(&from); + hostname = sockaddr2hostname(from); logger(LOG_WARNING, "Received UDP packet from unknown source %s", hostname); free(hostname); return; @@ -730,5 +725,55 @@ void handle_incoming_vpn_data(int sock) { n->sock =...
2016 Oct 05
3
Dev: new option to mark all tincd socket of a tincd process
I know i'm new to the list but i'd like to propose something for tincd daemon. I'd like to mark all sockets established by a tincd process with a mark passed as an argument in the command line. What could be the purpose of this new option? The goal of this option is to be able to have several tincd process running at the same time using the same port but using different ip. In
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
Hello, Linux has a recvmmsg() system call which allows to achieve several recvfrom() at a time. The patch below makes tinc use it (patch against 1.1-pre11). Basically the patch turns the handle_incoming_vpn_data variables into arrays (of size 1 when recvmmsg is not available, and thus compiled the same as before), and makes the code index into the arrays. You may want to use interdiff -w
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