From hsu@clinet.fi  Fri Jul  7 16:51:53 1995
Received: from clinet.fi (root@clinet.fi [193.64.6.1])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id QAA29168
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 7 Jul 1995 16:51:51 -0700
Received: from katiska.clinet.fi (root@katiska.clinet.fi [193.64.6.3]) by clinet.fi (8.6.10/8.6.4) with ESMTP id CAA14535 for <FreeBSD-gnats-submit@freebsd.org>; Sat, 8 Jul 1995 02:51:45 +0300
Received: (root@localhost) by katiska.clinet.fi (8.6.11/8.6.4) id CAA15318; Sat, 8 Jul 1995 02:51:45 +0300
Message-Id: <199507072351.CAA15318@katiska.clinet.fi>
Date: Sat, 8 Jul 1995 02:51:45 +0300
From: Heikki Suonsivu <hsu@clinet.fi>
Reply-To: hsu@clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: PPP does not pay attention to IPTOS_LOWDELAY
X-Send-Pr-Version: 3.2

>Number:         600
>Category:       kern
>Synopsis:       PPP does not pay attention to IPTOS_LOWDELAY
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul  7 17:00:01 1995
>Closed-Date:    Sat Jul 8 18:48:25 MET DST 1995
>Last-Modified:
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 2.0-BUILT-19950507 i386
>Organization:
Clinet, Espoo, Finland
>Environment:

	-current

>Description:

	Kernel PPP doesn't pay attention to IPTOS_LOWDELAY, but uses
	a table of port numbers, which isn't a generic method.  The following
	patch fixes this (the table is still used, but in addition
	PPP queues the packet in fastq if IPTOS_LOWDELAY is set. 

>How-To-Repeat:

	Use ports other than standard ones for some purpose and run ftp
	simultaneously on a slow link.

>Fix:
	
	This one is from Tatu Ylonen <ylo@cs.hut.fi>

*** if_ppp.c.orig       Mon Jun 12 23:47:34 1995
--- if_ppp.c    Wed Jul  5 18:12:04 1995
***************
*** 680,685 ****
--- 680,694 ----
            if (INTERACTIVE(p & 0xffff) || INTERACTIVE(p >> 16))
                ifq = &sc->sc_fastq;
        }
+ 
+       /*
+        * Most high-priority services set IPTOS_LOWDELAY.  This is a much more
+        * generic mechanism than specific port numbers.  This same mechanism
+        * is used by slip.
+        */
+       if (ip->ip_tos & IPTOS_LOWDELAY)
+           ifq = &sc->sc_fastq;
+ 
        break;
  #endif
  #ifdef NS

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Jul 8 18:48:25 MET DST 1995 
State-Changed-Why:  
Suggested fix applied in rev 1.15 of if_ppp.c 

>Unformatted:



