]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Attribution for Timothy Redaelli.
[meshlink] / src / net_packet.c
index a438d3e9577e45aefd5ffeabc49d5da1955fe6ce..44ab55d42c8a550f1fddad9a36c88aec0c813377 100644 (file)
@@ -2,6 +2,7 @@
     net_packet.c -- Handles in- and outgoing VPN packets
     Copyright (C) 1998-2005 Ivo Timmermans,
                   2000-2010 Guus Sliepen <guus@tinc-vpn.org>
+                  2010      Timothy Redaelli <timothy@redaelli.eu>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -365,7 +366,9 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) {
        vpn_packet_t *outpkt;
        int origlen;
        int outlen, outpad;
+#if defined(SOL_IP) && defined(IP_TOS)
        static int priority = 0;
+#endif
        int origpriority;
        int sock;