From owner-freebsd-net Sun Jan 31 20:11:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA14171 for freebsd-net-outgoing; Sun, 31 Jan 1999 20:11:36 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA14166 for ; Sun, 31 Jan 1999 20:11:35 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id UAA19502; Sun, 31 Jan 1999 20:05:55 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma019500; Sun, 31 Jan 99 20:05:44 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id UAA25175; Sun, 31 Jan 1999 20:05:44 -0800 (PST) From: Archie Cobbs Message-Id: <199902010405.UAA25175@bubba.whistle.com> Subject: Re: netgraph... In-Reply-To: <12974.917768494@critter.freebsd.dk> from Poul-Henning Kamp at "Jan 31, 99 08:41:34 am" To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Sun, 31 Jan 1999 20:05:44 -0800 (PST) Cc: julian@whistle.com, net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Poul-Henning Kamp writes: > >NGM_ENCODE_ASCII and NGM_DECODE_ASCII convert between ASCII and > >binary formats for a control message. > > Still not sure about these. I think debugging decoding belongs > in userspace. ?!? You can't avoid having the encoding and decoding done in the kernel. I guess I must have miscommunicated. Yes debugging belongs in user space and that's where it would be, with the exception of the code that implements these two messages that do the actual type-specific encoding and decoding from/to ASCII.. 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.. 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. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message