Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jan 1999 13:00:24 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Archie Cobbs <archie@whistle.com>, net@FreeBSD.ORG
Subject:   Re: netgraph... 
Message-ID:  <Pine.BSF.4.05.9901301254050.348-100000@s204m82.isp.whistle.com>
In-Reply-To: <11030.917729095@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
Just to satisfy myself, did you see my suggestion about the userland
interpretter using metadata supplied by the module to control the 
parsing.. each module would supply the equivalent of 'format strings'
that said what to accept and where to pack it.
You asked the module once for its list of acceptable format strings,
and cache them. from then on anything sent there
is parsed through the appropriate command description.

this could be broadenned to ioctls in general if that were wanted..

Archie almost threw up, but to my mind it's still quite elegant.

(you could even supply a dk_DK.iso8859-1 version of the meta-strings...
:-)

julian (doning his waterproofs)

On Sat, 30 Jan 1999, Poul-Henning Kamp wrote:

> In message <Pine.BSF.4.05.9901301228160.348-100000@s204m82.isp.whistle.com>, Ju
> lian Elischer writes:
> >I'm amazed
> >poul.. in this scheme you send the node the ascii message,
> >it sends you the binary version, you then send the binary version back to
> >it.. and it interprets it. There is a disconnection between the binary
> >version sent back to you and the binary that is interpretted..
> >If you think this is ok, then I'm amazed but then ok, we can do it that
> >way.
> 
> Then I misunderstood archie, my version says:
> 
> 	"Here, ASCII from root, do what he says!"
> 
> End of story, nothing more.
> 
> Poul-Henning
> 
> --
> Poul-Henning Kamp             FreeBSD coreteam member
> phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
> FreeBSD -- It will take a long time before progress goes too far!
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
> 


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?Pine.BSF.4.05.9901301254050.348-100000>