projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove checkpoint tracing.
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
275eae3
..
9c38fef
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-32,13
+32,10
@@
#include "utils.h"
#include "xalloc.h"
#include "utils.h"
#include "xalloc.h"
-bool send_meta(connection_t *c, const char *buffer, int length)
-{
+bool send_meta(connection_t *c, const char *buffer, int length) {
int outlen;
int result;
int outlen;
int result;
- cp();
-
if(!c) {
logger(LOG_ERR, _("send_meta() called with NULL pointer!"));
abort();
if(!c) {
logger(LOG_ERR, _("send_meta() called with NULL pointer!"));
abort();
@@
-82,8
+79,7
@@
bool send_meta(connection_t *c, const char *buffer, int length)
return true;
}
return true;
}
-bool flush_meta(connection_t *c)
-{
+bool flush_meta(connection_t *c) {
int result;
ifdebug(META) logger(LOG_DEBUG, _("Flushing %d bytes to %s (%s)"),
int result;
ifdebug(META) logger(LOG_DEBUG, _("Flushing %d bytes to %s (%s)"),
@@
-119,13
+115,10
@@
bool flush_meta(connection_t *c)
return true;
}
return true;
}
-void broadcast_meta(connection_t *from, const char *buffer, int length)
-{
+void broadcast_meta(connection_t *from, const char *buffer, int length) {
avl_node_t *node;
connection_t *c;
avl_node_t *node;
connection_t *c;
- cp();
-
for(node = connection_tree->head; node; node = node->next) {
c = node->data;
for(node = connection_tree->head; node; node = node->next) {
c = node->data;
@@
-134,15
+127,12
@@
void broadcast_meta(connection_t *from, const char *buffer, int length)
}
}
}
}
-bool receive_meta(connection_t *c)
-{
+bool receive_meta(connection_t *c) {
int oldlen, i, result;
int lenin, lenout, reqlen;
bool decrypted = false;
char inbuf[MAXBUFSIZE];
int oldlen, i, result;
int lenin, lenout, reqlen;
bool decrypted = false;
char inbuf[MAXBUFSIZE];
- cp();
-
/* Strategy:
- Read as much as possible from the TCP socket in one go.
- Decrypt it.
/* Strategy:
- Read as much as possible from the TCP socket in one go.
- Decrypt it.