From owner-freebsd-net Sun Jan 31 21:20:42 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA21650 for freebsd-net-outgoing; Sun, 31 Jan 1999 21:20:42 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from nomad.dataplex.net (nomad.dataplex.net [208.2.87.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA21639 for ; Sun, 31 Jan 1999 21:20:36 -0800 (PST) (envelope-from rkw@dataplex.net) Received: from localhost (rkw@localhost) by nomad.dataplex.net (8.9.1/8.9.1) with ESMTP id XAA32514; Sun, 31 Jan 1999 23:17:28 -0600 (CST) (envelope-from rkw@dataplex.net) Date: Sun, 31 Jan 1999 23:17:27 -0600 (CST) From: Richard Wackerbarth To: Archie Cobbs cc: Poul-Henning Kamp , julian@whistle.com, net@FreeBSD.ORG Subject: Re: netgraph... In-Reply-To: <199902010405.UAA25175@bubba.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 31 Jan 1999, Archie Cobbs wrote: > You can't avoid having the encoding and decoding done in the kernel. Sure you CAN. As you note below > If you wanted it *all* in user space then you have to: > > - Separate the encoding/decoding methods from the rest of > the node methods, or > - Do the complicated ELF sections stuff, or > - Some other complicated thing.. Is it so "complicated" to export a template (eg. format string) in response to a single call to the node? There are a number of advantages in getting the "guts" of the translation out of the kernel. For example, we might wish to do some date/time formatting based on the locale and time zone. IMHO, this is better kept out of the kernel. It should be sufficient for the node to designate that certain bits represent time stored in a particular format. > This is what we want to avoid -- and you were the first one to > argue for doing so! We all agree with that. So we're avoiding this > by having these two new message types. And, using your scheme, how do I compute the time interval between two messages? Do you propose to convert ALL packet fields for EVERY packet in a dump? Even if I care about only one or two fields? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message