1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

PR #kern/600: PPP does not pay attention to IPTOS_LOWDELAY

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.

Obtained from:	Tatu Ylonen <ylo@cs.hut.fi>
Submitted by:	Heikki Suonsivu <hsu@clinet.fi>
This commit is contained in:
Joerg Wunsch 1995-07-08 16:34:55 +00:00
parent c3b65e4d1f
commit 78988ab839
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9443

View File

@ -69,7 +69,7 @@
* Paul Mackerras (paulus@cs.anu.edu.au).
*/
/* $Id: if_ppp.c,v 1.13.2.1 1995/06/04 16:12:49 davidg Exp $ */
/* $Id: if_ppp.c,v 1.14 1995/06/11 19:31:41 rgrimes Exp $ */
/* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */
#include "ppp.h"
@ -680,6 +680,15 @@ pppoutput(ifp, m0, dst, rt)
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