From green@feldman.dyn.ml.org  Sat Feb 21 09:36:06 1998
Received: from feldman.dyn.ml.org (root@1Cust96.max1.washington.dc.ms.uu.net [153.34.49.96])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA18739
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Feb 1998 09:36:03 -0800 (PST)
          (envelope-from green@feldman.dyn.ml.org)
Received: (from root@localhost)
	by feldman.dyn.ml.org (8.8.8/8.8.8) id MAA08281;
	Sat, 21 Feb 1998 12:35:59 -0500 (EST)
	(envelope-from green)
Message-Id: <199802211735.MAA08281@feldman.dyn.ml.org>
Date: Sat, 21 Feb 1998 12:35:59 -0500 (EST)
From: Brian Feldman <green@feldman.dyn.ml.org>
Reply-To: green@feldman.dyn.ml.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: ircd ports not assigned in /etc/services
X-Send-Pr-Version: 3.2

>Number:         5809
>Category:       conf
>Synopsis:       services has no mention of ports 6666 and 6667 for ircd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 21 09:40:02 PST 1998
>Closed-Date:    Sat Feb 21 11:38:16 PST 1998
>Last-Modified:  Sat Feb 21 14:20:02 PST 1998
>Originator:     
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

FreeBSD 3.0-CURRENT (should probably be used on 2.2.5-STABLE too)
>Description:

For some strange reason, standard ports 6666 and 6667 are not assigned in /etc/services. Well, let them get assigned to ircd.
>How-To-Repeat:

grep 6666 /etc/services
(no output)
>Fix:
	
--- /usr/src/etc/services       Sun Sep 28 05:20:11 1997
+++ /usr/src/etc/services       Wed Feb 11 17:34:46 1998
@@ -1649,6 +1649,10 @@
 ricardo-lm     6148/udp   #Ricardo North America License Manager
 xdsxdm         6558/tcp
 xdsxdm         6558/udp
+ircd           6666/tcp
+ircd           6666/udp
+ircd           6667/tcp
+ircd           6667/udp
 acmsoda                6969/tcp
 acmsoda                6969/udp
 afs3-fileserver 7000/tcp   #file server itself

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Sat Feb 21 11:38:16 PST 1998 
State-Changed-Why:  
Done, thanks! 

From: Bill Fenner <fenner@parc.xerox.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: Re: conf/5809: ircd ports not assigned in /etc/services 
Date: Sat, 21 Feb 1998 14:10:14 PST

 Does IRC use udp?  I thought it only used TCP.
 
 Assigning the same name to two different ports means that getservbyname()
 may behave unpredictably; it also doesn't help if you care what the real
 port number is and someone uses getservbyport(6667) - if netstat prints
 out "ircd", is that port 6666 or 6667?
 
 I'd suggest using "ircd2" for 6667 to address these issues (and get rid
 of the udp entries unless IRC really does use udp).
 
   Bill
>Unformatted:
