Date: Tue, 9 Feb 1999 07:56:12 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: Brian McGovern <bmcgover@cisco.com> Cc: hackers@FreeBSD.ORG Subject: Re: Docs on line disciplines? Message-ID: <Pine.BSF.4.05.9902090754330.276-100000@s204m82.isp.whistle.com> In-Reply-To: <199902091441.JAA02508@bmcgover-pc.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902090754330.276-100000>