projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow linking with multiple device drivers.
[oweals/tinc.git]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index f2bcc3efa55a81e26f046d58e7d88534b215440b..54deb26c70ab66c1a2e755225ba4f053a93ce733 100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-403,7
+403,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;
}
@@
-518,7
+518,7
@@
void send_packet(const node_t *n, vpn_packet_t *packet) {
if(n == myself) {
if(overwrite_mac)
memcpy(packet->data, mymac.x, ETH_ALEN);
if(n == myself) {
if(overwrite_mac)
memcpy(packet->data, mymac.x, ETH_ALEN);
-
write_packet
(packet);
+
devops.write
(packet);
return;
}
return;
}