Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 10:20:40 -0800 (PST)
From:      John Polstra <jdp@polstra.com>
To:        net@freebsd.org
Cc:        wollman@khavrinen.lcs.mit.edu
Subject:   Re: netgraph: how to setsockopt on ksocket node ?
Message-ID:  <200201211820.g0LIKeZ93986@vashon.polstra.com>
In-Reply-To: <200201202329.g0KNTLO33136@khavrinen.lcs.mit.edu>
References:  <135740000.1011562445@blues.viagenie.qc.ca> <200201202308.g0KN8uc09321@arch20m.dellroad.org> <200201202329.g0KNTLO33136@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <200201202329.g0KNTLO33136@khavrinen.lcs.mit.edu>,
Garrett Wollman  <wollman@khavrinen.lcs.mit.edu> wrote:
> <<On Sun, 20 Jan 2002 15:08:56 -0800 (PST), Archie Cobbs <archie@dellroad.org> said:
> 
> > But it's interesting the soalloc() is called with 'p != 0'
> > as an argument. p is never 0 or else you would have already
> > panic'd... you'd panic later on, too, referencing 'p->p_ucred'.
> 
> All of the credential frobbing stuff was added much later.

I agree with you -- the credential code broke it.

> At the time I wrote that `p != 0', it was definitely possible for
> socreate() to be called from interrupt context, and thus without any
> idea of a `current process'.

I have also used this in a project where I lifted the whole TCP/IP
stack from FreeBSD and used it in an embedded environment.  It's a
very handy thing to be able to do, and I wouldn't like to see it
remain broken.

John
-- 
  John Polstra
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa


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?200201211820.g0LIKeZ93986>