From owner-freebsd-current Tue Apr 2 04:23:18 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA13948 for current-outgoing; Tue, 2 Apr 1996 04:23:18 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA13929 Tue, 2 Apr 1996 04:23:13 -0800 (PST) Received: from critter.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0u4579-0003vmC; Tue, 2 Apr 96 04:23 PST Received: from localhost.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.6.12/8.6.12) with SMTP id MAA02948; Tue, 2 Apr 1996 12:23:11 GMT X-Authentication-Warning: critter.tfs.com: Host localhost.tfs.com didn't use HELO protocol To: Bruce Evans cc: FreeBSD-Current@freebsd.org, gpalmer@freebsd.org Subject: Re: Linker sets & structures for networking code In-reply-to: Your message of "Tue, 02 Apr 1996 21:27:47 +1000." <199604021127.VAA11042@godzilla.zeta.org.au> Date: Tue, 02 Apr 1996 12:23:10 +0000 Message-ID: <2946.828447790@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >Which brings me to another problem with this code. The first field of > >the `protosw' structure is: > > > short pr_type; /* socket type used for */ > > >Which (if I understand the way this works right - I haven't been able > >to backtrack through the networking code enough to verify this) is > >used to match the requested protocol type against available protocol > >types. Since (in uipc_proto.c) pr_type for the raw_* stuff is declared > >as `0', I can't see how raw_input ever gets call via the localsw > >array. (Infact there are several examples of `raw_input' being called > >which bypasses localsw totally). So why on earth is it there?!? My conclusion was that it was an attempt to please the OSI powers that were, without completely wrecking the performance. I could, for all I can see, be ripped out. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.