]> tinc-vpn.org Git - tinc/blobdiff - src/net_packet.c
Only declare the origpriority variable if we support priority.
[tinc] / src / net_packet.c
index 6b3183daa85c4f1b40134e9d5a16a047c2ab59e9..b7ef5193f73b38517a5c4b060c41c57a5ce45521 100644 (file)
@@ -629,8 +629,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;
-#endif
        int origpriority = origpkt->priority;
+#endif
 
        if(!n->status.reachable) {
                logger(DEBUG_TRAFFIC, LOG_INFO, "Trying to send UDP packet to unreachable node %s (%s)", n->name, n->hostname);