In article <[EMAIL PROTECTED]>, Garrett Wollman <[EMAIL PROTECTED]> wrote: > <<On Sun, 20 Jan 2002 15:08:56 -0800 (PST), Archie Cobbs <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message