projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port fixes from release 1.0.8.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
9e0ba2e
..
bb81081
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-484,7
+484,7
@@
void flush_queue(node_t *n)
}
}
}
}
-void handle_incoming_vpn_data(int sock)
+void handle_incoming_vpn_data(int sock
, short events, void *data
)
{
vpn_packet_t pkt;
char *hostname;
{
vpn_packet_t pkt;
char *hostname;
@@
-515,3
+515,11
@@
void handle_incoming_vpn_data(int sock)
receive_udppacket(n, &pkt);
}
receive_udppacket(n, &pkt);
}
+
+void handle_device_data(int sock, short events, void *data)
+{
+ vpn_packet_t packet;
+
+ if(read_packet(&packet))
+ route(myself, &packet);
+}