From owner-freebsd-net Tue Apr 24 11:45:11 2001 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 2A9FC37B423; Tue, 24 Apr 2001 11:45:03 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id OAA98132; Tue, 24 Apr 2001 14:44:52 -0400 (EDT) (envelope-from wollman) Date: Tue, 24 Apr 2001 14:44:52 -0400 (EDT) From: Garrett Wollman Message-Id: <200104241844.OAA98132@khavrinen.lcs.mit.edu> To: Thomas Moestl Cc: freebsd-net@FreeBSD.ORG, Robert Watson Subject: Making getsockname return sensible data for unbound AF_UNIX sockets In-Reply-To: <20010422200939.A4797@crow.dom2ip.de> References: <20010422200939.A4797@crow.dom2ip.de> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > I would like to commit a really small patch that makes getsockname > fill the sockaddr for non-bound PF_LOCAL sockets with sun_noname, > instead of just setting the length parameter to 0 and return (without > an error) like it does now. I'm OK with this. I'm not sure why I didn't do so originally. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message