From owner-freebsd-net Thu May 17 4:53:10 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail.kebne.se (mail.kebne.se [212.209.134.151]) by hub.freebsd.org (Postfix) with ESMTP id 5B5F937B422 for ; Thu, 17 May 2001 04:53:07 -0700 (PDT) (envelope-from gunnar.olsson@xelerated.com) Received: by mail.kebne.se with Internet Mail Service (5.5.2653.19) id ; Thu, 17 May 2001 13:52:58 +0200 Message-ID: <31A473DBB655D21180850008C71E251A031AAF58@mail.kebne.se> From: Gunnar Olsson To: "Freebsd Net (E-mail)" Subject: conflict ng_socket and ordinary tcp_socket? Date: Thu, 17 May 2001 13:52:57 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi there, does anyone know if this is a known problem or if it should not work? ------------------ tcp-socket ---------------- | Process1 |------------------------>| Process2 | ----------------- ------------------ | | ng_socket | v hookname: lower path: rl0: I have two processes. Process1 is a "tcp client", i.e. it wants to send a packet to process2, which is the "tcp server". The process2 goes to listen and waits for packets from Process1. If the client now sends packets it works just fine. Now to the problem. When Process2 receives packet from Process1, he wants to send the packet further to the ethernet driver, i.e Process2 opens up a ng_socket to the hookname: lower of the driver. When sending the connect message to the hook in the driver the machine dies:-( If removing the tcp_socket, i.e having all in one process everything works just fine. When splitting up in 2 processes and connecting the ng_socket first and the tcp_socket after, I can send one packet down all the way, but then the tcp_server, i.e. Process2, go to wait state: recv and the machine dies. Regards Gunnar ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Gunnar Olsson Phone: +46 8 5062 5762 Xelerated Packet Devices AB Fax: +46 8 5455 3211 Regeringsgatan 67 Mobile: +46 73 3279765 SE-10386 Stockholm Web: http://www.xelerated.com Email: mailto:gunnar.olsson@xelerated.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message