From owner-freebsd-bugs Wed Jun 3 08:20:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA28332 for freebsd-bugs-outgoing; Wed, 3 Jun 1998 08:20:45 -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 IAA28322 for ; Wed, 3 Jun 1998 08:20:41 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA18818; Wed, 3 Jun 1998 08:20:01 -0700 (PDT) Date: Wed, 3 Jun 1998 08:20:01 -0700 (PDT) Message-Id: <199806031520.IAA18818@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Garrett Wollman Subject: Re: kern/6837: in_setpeeraddr() and in_setsockaddr() block on memory Reply-To: Garrett Wollman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/6837; it has been noted by GNATS. From: Garrett Wollman To: dg@root.com Cc: Craig Metz , freebsd-gnats-submit@FreeBSD.ORG Subject: Re: kern/6837: in_setpeeraddr() and in_setsockaddr() block on memory Date: Wed, 3 Jun 1998 11:16:13 -0400 (EDT) < said: > I believe this was a side effect of the elimination of using mbufs as > containers for sockaddr data. I don't see a problem with changing the caller > to malloc(), but perhaps Garrett might have a thought on this since he was > the one to add the MALLOC there in the first place. Garrett? Well, Bruce noted that doing all the copying slows things down somewhat. I was planning on reworking the interface Yet Again to make the setsockaddr/setpeeraddr interface take a struct uio and then copy the answer directly to its intended location. (Probably do the same thing for the other calls that pass out a sockaddr, and make a generic interface that encapsulates the desired error behavior.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message