From owner-freebsd-net Mon Dec 3 23: 0: 7 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id ED93837B416; Mon, 3 Dec 2001 23:00:02 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id WAA26373; Mon, 3 Dec 2001 22:49:13 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id fB46nD781640; Mon, 3 Dec 2001 22:49:13 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200112040649.fB46nD781640@arch20m.dellroad.org> Subject: differing behavior of connect(2) in -current? To: freebsd-net@freebsd.org, freebsd-current@freebsd.org Date: Mon, 3 Dec 2001 22:49:13 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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, We're seeing strange behavior of mpd (netgraph-ified ppp daemon) under -current that doesn't occur under -stable. The problem is that when mpd tries to do a connect(2) on a (PF_INET, SOCK_RAW, IPPROTO_GRE), the kernel returns EINPROGRESS instead of succeeding immediately (note: this is a datagram socket so a connect should succeed immediately). The only catch is that the connect(2) is being done in the kernel by a ng_ksocket(4) node instead of via the normal system call. The ng_ksocket(4) calls soconnect() to perform the connect. I've tried reproducing the same problem with userland code but it doesn't seem to happen. So maybe this is a result of the different threading model in the -current kernel? Any ideas appreciated. Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message