From owner-freebsd-net Mon Oct 7 10:58:52 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2007E37B401 for ; Mon, 7 Oct 2002 10:58:51 -0700 (PDT) Received: from stewart.chicago.il.us (user166.64.47.24.dsli.com [64.47.24.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B0E343E6E for ; Mon, 7 Oct 2002 10:58:50 -0700 (PDT) (envelope-from randall@stewart.chicago.il.us) Received: from stewart.chicago.il.us (stewlap [10.1.1.5]) by stewart.chicago.il.us (8.11.1/8.11.1) with ESMTP id g97HwgH33127 for ; Mon, 7 Oct 2002 12:58:43 -0500 (CDT) (envelope-from randall@stewart.chicago.il.us) Message-ID: <3DA1CB52.9080302@stewart.chicago.il.us> Date: Mon, 07 Oct 2002 12:58:42 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc3) Gecko/20020922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: inetd issue Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi: While attempting to make inetd work with SCTP (the one distrbituted with the KAME stack now).. I ran in to a little issue.. It appears when inetd opens its socket it does: " if ((sep->se_fd = socket(sep->se_family, sep->se_socktype, 0)) < 0) { if (debug) warn("socket failed on %s/%s", sep->se_service, sep->se_proto); syslog(LOG_ERR, "%s/%s: socket: %m", sep->se_service, sep->se_proto); return; } This of course causes a problem with a SCTP TCP-Style symantic which also uses SOCK_STREAM... Should not this really be: " struct protoent *p; int proto_num; p = getprotobyname(sep->se_proto); if(p){ proto_num = p->p_proto; }else{ proto_num = 0; } if ((sep->se_fd = socket(sep->se_family, sep->se_socktype, proto_num)) < 0) { if (debug) warn("socket failed on %s/%s", sep->se_service, sep->se_proto); syslog(LOG_ERR, "%s/%s: socket: %m", sep->se_service, sep->se_proto); return; } " Thanks R -- Randall R. Stewart randall@stewart.chicago.il.us 815-342-5222 (cell phone) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message