From owner-freebsd-bugs Mon May 25 20:55:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA11802 for freebsd-bugs-outgoing; Mon, 25 May 1998 20:55:21 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA11795 for ; Mon, 25 May 1998 20:55:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA06512; Mon, 25 May 1998 20:50:01 -0700 (PDT) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA11126 for ; Mon, 25 May 1998 20:52:03 -0700 (PDT) (envelope-from dillon@backplane.com) Received: (dillon@localhost) by apollo.backplane.com (8.8.8/8.6.5) id UAA15670; Mon, 25 May 1998 20:52:03 -0700 (PDT) Message-Id: <199805260352.UAA15670@apollo.backplane.com> Date: Mon, 25 May 1998 20:52:03 -0700 (PDT) From: Matthew Dillon Reply-To: dillon@backplane.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/6758: mount_portal fails in sendmsg(..., MSG_EOR) due to MSG_EOR flag Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6758 >Category: kern >Synopsis: mount_portal fails because kernal refuses to accept MSG_EOR flag in sendmsg >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 25 20:50:00 PDT 1998 >Last-Modified: >Originator: Matthew Dillon >Organization: Best Internet Communications, Inc. >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD-current, CVS synchronized as of around April 7 >Description: mount_portal fails to work because the sendmsg() call in activate.c line 152 passes the MSG_EOR flag to sendmsg(), which causes sendmsg() to return an error. Changing activate.c to pass 0 instead of MSG_EOR fixes the problem. >How-To-Repeat: ---- /etc/portal.conf ---- tcp/ tcp tcp/ fs/ file fs/ -------------------------- # mount_portal /etc/portal.conf /p # cat /p/tcp/idiom.com/13 cat: /p/tcp/idiom.com/13: Connection reset by peer # # (hack mount_portal code and change MSG_EOR flag in sendmsg() call to 0 # mount portal /etc/portal.conf /p # cat /p/tcp/idiom.com/13 Mon May 25 20:47:11 1998 # >Fix: I'm not sure if the mount_portal source should use 0 instead of MSG_EOR in the sendmsg() call (activate.c line 152), or if the kernel should be fixed to accept the MSG_EOR flag. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message