projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07db46a
)
Fix PriorityInheritance.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 14 Nov 2002 22:09:03 +0000
(22:09 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 14 Nov 2002 22:09:03 +0000
(22:09 +0000)
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
7c51ad6
..
65ec7d7
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net_packet.c,v 1.1.2.2
4 2002/09/15 14:55:5
3 guus Exp $
+ $Id: net_packet.c,v 1.1.2.2
5 2002/11/14 22:09:0
3 guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-295,7
+295,7
@@
void send_udppacket(node_t *n, vpn_packet_t *inpkt)
if(debug_lvl >= DEBUG_TRAFFIC)
syslog(LOG_DEBUG, _("Setting outgoing packet priority to %d"),
priority);
if(debug_lvl >= DEBUG_TRAFFIC)
syslog(LOG_DEBUG, _("Setting outgoing packet priority to %d"),
priority);
- if(setsockopt(
sock, SOL_IP, IP_TOS, &priority, sizeof(priority)))
/* SO_PRIORITY doesn't seem to work */
+ if(setsockopt(
listen_socket[sock].udp, SOL_IP, IP_TOS, &priority, sizeof(priority)))
/* SO_PRIORITY doesn't seem to work */
syslog(LOG_ERR, _("System call `%s' failed: %s"), "setsockopt",
strerror(errno));
}
syslog(LOG_ERR, _("System call `%s' failed: %s"), "setsockopt",
strerror(errno));
}