X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol.c;h=116e139eebc98c686652bb62e8b4d0095b3a525e;hb=3fba80174dbe29bcfe0d121a2a1d2e61be5ee57b;hp=230ee3b8290579c2d7d1be98210719a599f01cab;hpb=d772289f6d6adfb8932658b533349d43f08ec326;p=tinc diff --git a/src/protocol.c b/src/protocol.c index 230ee3b8..116e139e 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -30,6 +30,7 @@ bool tunnelserver = false; bool strictsubnets = false; +bool experimental = false; /* Jumptable for the request handlers */ @@ -95,7 +96,7 @@ bool send_request(connection_t *c, const char *format, ...) { request[len++] = '\n'; - if(c == broadcast) { + if(c == everyone) { broadcast_meta(NULL, request, len); return true; } else @@ -178,7 +179,7 @@ static void free_past_request(past_request_t *r) { static struct event past_request_event; bool seen_request(char *request) { - past_request_t *new, p = {0}; + past_request_t *new, p = {NULL}; p.request = request; @@ -205,7 +206,7 @@ static void age_past_requests(int fd, short events, void *data) { next = node->next; p = node->data; - if(p->firstseen + pinginterval < now) + if(p->firstseen + pinginterval <= now) splay_delete_node(past_request_tree, node), deleted++; else left++;