projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only send packets via UDP if UDP communication is possible.
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
1682705
..
9e4829a
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-295,8
+295,10
@@
static void check_network_activity(fd_set * readset, fd_set * writeset)
/* check input from kernel */
if(FD_ISSET(device_fd, readset)) {
- if(read_packet(&packet))
+ if(read_packet(&packet)) {
+ packet.priority = 0;
route(myself, &packet);
+ }
}
/* check meta connections */