Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 15:54:19 -0800 (PST)
From:      Archie Cobbs <archie@whistle.com>
To:        phk@critter.freebsd.dk (Poul-Henning Kamp)
Cc:        julian@whistle.com, net@FreeBSD.ORG
Subject:   Re: netgraph...
Message-ID:  <199901292354.PAA01659@bubba.whistle.com>
In-Reply-To: <2105.917596839@critter.freebsd.dk> from Poul-Henning Kamp at "Jan 29, 99 09:00:39 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp writes:
> >Now the question is:
> >where does it go?
> 
> I argue with KISS for "in the kernel".
> 
> The area we're into here, is the "weirdo config args", things like
> telling cards to go into loop-back on channel 4, to select balanced
> or unbalanced connection, the speed of V.35 (for buffer estimation),
> ISDN switch type.  All these highly irregular things that always
> ends up in the LINK[012] flags for interfaces and in the flags for
> isa devices.
> 
> (If you look at most of the fooctrl programs, they are small, do
> almost nothing, and a general "ioctl" program which could pass
> an generic ioctl with an ascii argument to the driver would save
> us some code...)
> 
> I can almost even live with the bloat of a "usage" control message
> which returns an ascii usage string.

Poul-
What did you think of the idea of having each node contain two
new methods for encoding and decoding ASCII strings? I say methods
but really they would just understand two new generic message types.

Then ngctl could send control messages to encode and decode, while
'normal' control messages between nodes stayed in binary form.

It also respects KISS, by keeping all the node-specific code
together.

-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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901292354.PAA01659>