From sjr@home.net  Wed Dec 31 11:12:18 1997
Received: from istari.home.net (cc158233-a.catv1.md.home.com [24.3.25.17])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA17998
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Dec 1997 11:12:17 -0800 (PST)
          (envelope-from sjr@home.net)
Received: (from sjr@localhost)
	by istari.home.net (8.8.8/8.8.6) id OAA23042;
	Wed, 31 Dec 1997 14:12:16 -0500 (EST)
Message-Id: <199712311912.OAA23042@istari.home.net>
Date: Wed, 31 Dec 1997 14:12:16 -0500 (EST)
From: sjr@home.net
Reply-To: sjr@home.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Port range update for IANA changes
X-Send-Pr-Version: 3.2

>Number:         5402
>Category:       kern
>Synopsis:       Port range update for IANA changes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 31 11:20:00 PST 1997
>Closed-Date:    Sun Apr 19 10:22:49 PDT 1998
>Last-Modified:  Sun Apr 19 10:23:20 PDT 1998
>Originator:     Stephen J. Roznowski
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	According to:

		ftp://ftp.isi.edu/in-notes/iana/assignments/port-numbers

	port numbers are divided into three ranges:

		    0 -  1023 Well Known Ports
		 1024 - 49151 Registered Ports
		49152 - 65535 Dynamic and/or Private Ports

	This patch changes the "local port range" from 40000-44999
	to the range shown above (plus fix the comment in in_pcb.c).

>How-To-Repeat:

	

>Fix:
	
--- sys/netinet/in.h.orig	Wed Dec 31 13:06:17 1997
+++ sys/netinet/in.h	Wed Dec 31 13:38:22 1997
@@ -111,8 +111,8 @@
 /*
  * Default local port range to use by setting IP_PORTRANGE_HIGH
  */
-#define	IPPORT_HIFIRSTAUTO	40000
-#define	IPPORT_HILASTAUTO	44999
+#define	IPPORT_HIFIRSTAUTO	49152
+#define	IPPORT_HILASTAUTO	65535
 
 /*
  * Scanning for a free reserved port return a value below IPPORT_RESERVED,

--- sys/netinet/in_pcb.c.orig	Wed Dec 31 13:39:02 1997
+++ sys/netinet/in_pcb.c	Wed Dec 31 13:42:03 1997
@@ -66,8 +66,8 @@
 static int ipport_lowlastauto = IPPORT_RESERVEDSTART;	/* 600 */
 static int ipport_firstauto = IPPORT_RESERVED;		/* 1024 */
 static int ipport_lastauto  = IPPORT_USERRESERVED;	/* 5000 */
-static int ipport_hifirstauto = IPPORT_HIFIRSTAUTO;	/* 40000 */
-static int ipport_hilastauto  = IPPORT_HILASTAUTO;	/* 44999 */
+static int ipport_hifirstauto = IPPORT_HIFIRSTAUTO;	/* 49152 */
+static int ipport_hilastauto  = IPPORT_HILASTAUTO;	/* 65535 */
 
 #define RANGECHK(var, min, max) \
 	if ((var) < (min)) { (var) = (min); } \
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sun Apr 19 10:22:49 PDT 1998 
State-Changed-Why:  
committed, thanks! 
>Unformatted:
