]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Make sure tinc compiles on Windows.
[meshlink] / src / net_packet.c
index cbdc15cfebc98ea77156017b65db2c4beb3d472a..e9fd10ce53c9a8856452cc5d5debf6f63a59264b 100644 (file)
@@ -390,8 +390,8 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) {
        size_t outlen;
 #if defined(SOL_IP) && defined(IP_TOS)
        static int priority = 0;
-       int origpriority = origpkt->priority;
 #endif
+       int origpriority = origpkt->priority;
 
        if(!n->status.reachable) {
                logger(DEBUG_TRAFFIC, LOG_INFO, "Trying to send UDP packet to unreachable node %s (%s)", n->name, n->hostname);