From owner-freebsd-hackers Tue Feb 9 08:10:39 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA03258 for freebsd-hackers-outgoing; Tue, 9 Feb 1999 08:10:39 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA03250 for ; Tue, 9 Feb 1999 08:10:37 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id HAA04229; Tue, 9 Feb 1999 07:56:38 -0800 (PST) Received: from s204m82.isp.whistle.com(207.76.204.82) via SMTP by alpo.whistle.com, id smtpduY4225; Tue Feb 9 15:56:34 1999 Date: Tue, 9 Feb 1999 07:56:12 -0800 (PST) From: Julian Elischer X-Sender: julian@s204m82.isp.whistle.com To: Brian McGovern cc: hackers@FreeBSD.ORG Subject: Re: Docs on line disciplines? In-Reply-To: <199902091441.JAA02508@bmcgover-pc.cisco.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG check out the netgraph "tty" node.. does a lot of wht you want.. and is dynamically loadable. ftp://ftp.whistle.com/pub/archie/netgraph/index.html (look at this in netscape) julian On Tue, 9 Feb 1999, Brian McGovern wrote: > I'm looking to see if anyone can point me at documents for implementing a new > line discipline... I'm looking at creating something that will take a > set of data (Voice RTP packets, to be precise), and handle packetizing it > while passing it up. > > The idea is to take a character at a time from the tty driver (a la l_rint), > and watch for special escaping of the character using the upper 8 bits > (ie - Start of Frame and End of Frame), then buffer the characters until > we have a complete packet of data. Then, I want to throw some header info > on the front end, and a trailer on the back, and stuff it in to the right > part of the clist for the tty (t_rawq or t_canq). > > On the write side, I want to be able to strip off the header and trailer, > then present the data to t_outq with the Start of Frame and End of Frame > characters properly escaped. > > So, any docs that give a primer for starting these types of things would > be most appreciated. > > -Brian > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message