Subject: misc/859: typo in netinet/ip.h: IPTOS_PREC_ROUTINE has wrong value; fix included
To: None <gnats-admin@NetBSD.ORG>
From: Lon Willett <lon%softt.uucp@math.utah.edu>
List: netbsd-bugs
Date: 03/09/1995 14:35:05
>Number:         859
>Category:       misc
>Synopsis:       typo in netinet/ip.h: IPTOS_PREC_ROUTINE has wrong value; fix included
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar  9 14:35:04 1995
>Originator:     Lon Willett
>Organization:
none
>Release:        9 Mar 95
>Environment:

System: NetBSD hilly 1.0A NetBSD 1.0A (HILLY) #151: Thu Mar 9 12:32:33 MST 1995 lon@hilly:/usr/src/sys/arch/i386/compile/HILLY i386


>Description:

I happened to notice that IPTOS_PREC_ROUTINE is incorrectly defined to
be 0x10 (instead of 0x00) in <netinet/ip.h>.  As far I know, no code in
the known universe uses this value, but as long as it's being defined, it
may as well be defined correctly.

>How-To-Repeat:

N/A

>Fix:

A "diff -u":

--- usr/src/sys/netinet/ip.h.orig	Wed Jun 29 04:30:59 1994
+++ usr/src/sys/netinet/ip.h	Thu Mar  9 13:44:47 1995
@@ -63,7 +63,7 @@
 #define	IPTOS_PREC_FLASH		0x60
 #define	IPTOS_PREC_IMMEDIATE		0x40
 #define	IPTOS_PREC_PRIORITY		0x20
-#define	IPTOS_PREC_ROUTINE		0x10
+#define	IPTOS_PREC_ROUTINE		0x00
 
 /*
  * Definitions for options.
>Audit-Trail:
>Unformatted: