- (bal) if IP_TOS is not found or broken don't try to compile in

packet_set_tos() function call.  bug #527
This commit is contained in:
Ben Lindstrom 2003-04-02 15:18:22 +00:00
parent a0ab669c13
commit c8a49d743a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
20030402
- (bal) if IP_TOS is not found or broken don't try to compile in
packet_set_tos() function call. bug #527
20030401 20030401
- (djm) OpenBSD CVS Sync - (djm) OpenBSD CVS Sync
- jmc@cvs.openbsd.org 2003/03/28 10:11:43 - jmc@cvs.openbsd.org 2003/03/28 10:11:43
@ -1295,4 +1299,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284; save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@ ok provos@
$Id: ChangeLog,v 1.2648 2003/04/01 11:47:16 djm Exp $ $Id: ChangeLog,v 1.2649 2003/04/02 15:18:22 mouring Exp $

View File

@ -1314,6 +1314,8 @@ packet_not_very_much_data_to_write(void)
return buffer_len(&output) < 128 * 1024; return buffer_len(&output) < 128 * 1024;
} }
#if defined(IP_TOS) && !defined(IP_TOS_IS_BROKEN)
static void static void
packet_set_tos(int interactive) packet_set_tos(int interactive)
{ {
@ -1327,6 +1329,7 @@ packet_set_tos(int interactive)
error("setsockopt IP_TOS %d: %.100s:", error("setsockopt IP_TOS %d: %.100s:",
tos, strerror(errno)); tos, strerror(errno));
} }
#endif
/* Informs that the current session is interactive. Sets IP flags for that. */ /* Informs that the current session is interactive. Sets IP flags for that. */