Date: Thu, 8 Jun 2000 15:32:16 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Bernd Walter <ticso@cicely8.cicely.de> Cc: net@FreeBSD.ORG Subject: Re: [REPOST] Re: How do I get port inside kernel.... (fwd) Message-ID: <200006081932.PAA76727@khavrinen.lcs.mit.edu> In-Reply-To: <20000607233457.B98783@cicely8.cicely.de> References: <Pine.LNX.4.21.0006071011570.763-100000@pcd75.sasi.com> <20000607220906.A98783@cicely8.cicely.de> <200006072058.QAA72060@khavrinen.lcs.mit.edu> <20000607233457.B98783@cicely8.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 7 Jun 2000 23:34:57 +0200, Bernd Walter <ticso@cicely8.cicely.de> said: > Are the fuctions using the same table with proc0 as with nil or must all > calls use the same value? There are two different purposes for the process argument in the network stack. In some functions (e.g., bind, setsockopt), it is used to gain access to the calling process's credentials. In other functions, it is used as a binary flag indicating whether there is a calling process or not. Some functions of the former flavor know enough to accept a null pointer as meaning ``process is root'', but in general You Just Have To Know. &proc0 should never be passed to functions of the latter type. Sorry. -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-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006081932.PAA76727>