From owner-freebsd-hackers Thu Aug 15 17:46: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA72037B400 for ; Thu, 15 Aug 2002 17:46:03 -0700 (PDT) Received: from 12-218-135-53.client.mchsi.com (12-218-135-53.client.mchsi.com [12.218.135.53]) by mx1.FreeBSD.org (Postfix) with SMTP id D80E743E4A for ; Thu, 15 Aug 2002 17:46:02 -0700 (PDT) (envelope-from erik@12-218-135-53.client.mchsi.com) Received: (qmail 18907 invoked by uid 1000); 16 Aug 2002 00:46:20 -0000 Date: Thu, 15 Aug 2002 19:46:20 -0500 From: Erik Greenwald To: freebsd-hackers@freebsd.org Subject: soaccept not returning host info? Message-ID: <20020816004620.GA18897@freya> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I'm writing a kernel module (for -current) that provides a listening inet socket, I have it establishing and binding the socket, tsleeping for the event, etc, and the soaccept() call seems to work fine. My problem is that the info about the connecting host info seems incomplete. It reports a length of 16, family of AF_INET (2), the rest is zero'd out. Even when the connecting client is on a remote machine... So my question is how do I get the appropriate host information. Is it nested in the pcb or proto block? I'm assuming an mbuf is used for the actual data transferred, that'd be accessed via the socket mbuf? Any pointers would be greatly appreciated, if it's an rtfm issue, pls point me to the right fm :) Thnx -- -Erik [http://math.smsu.edu/~erik] The opinions expressed by me are not necessarily opinions. In all probability, they are random rambling, and to be ignored. Failure to ignore may result in severe boredom or confusion. Shake well before opening. Keep Refrigerated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message