projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use AM_CONDITIONAL for CURSES.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
1af5026
..
3627f31
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-45,7
+45,6
@@
#include "device.h"
#include "ethernet.h"
#include "graph.h"
#include "device.h"
#include "ethernet.h"
#include "graph.h"
-#include "list.h"
#include "logger.h"
#include "net.h"
#include "netutl.h"
#include "logger.h"
#include "net.h"
#include "netutl.h"
@@
-357,7
+356,7
@@
static void receive_udppacket(node_t *n, vpn_packet_t *inpkt) {
receive_packet(n, inpkt);
}
receive_packet(n, inpkt);
}
-void receive_tcppacket(connection_t *c, char *buffer, int len) {
+void receive_tcppacket(connection_t *c, c
onst c
har *buffer, int len) {
vpn_packet_t outpkt;
outpkt.len = len;
vpn_packet_t outpkt;
outpkt.len = len;
@@
-398,7
+397,7
@@
static void send_udppacket(node_t *n, vpn_packet_t *origpkt) {
"No valid key known yet for %s (%s), forwarding via TCP",
n->name, n->hostname);
"No valid key known yet for %s (%s), forwarding via TCP",
n->name, n->hostname);
- if(n->last_req_key + 10 < now) {
+ if(n->last_req_key + 10 <
=
now) {
send_req_key(n);
n->last_req_key = now;
}
send_req_key(n);
n->last_req_key = now;
}