projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c40384
)
Initialise priority field to zero for packets read from the VPN interface.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 29 May 2011 20:14:35 +0000
(22:14 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 29 May 2011 20:14:35 +0000
(22:14 +0200)
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index 1805cf7eca3c760df73b08bf78f462bd6b9aae68..95f296171f29aa2322d0b4b70c746424ba10cf09 100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-648,6
+648,8
@@
void handle_incoming_vpn_data(int sock, short events, void *data) {
void handle_device_data(int sock, short events, void *data) {
vpn_packet_t packet;
+ packet.priority = 0;
+
if(read_packet(&packet)) {
myself->in_packets++;
myself->in_bytes += packet.len;