Date: Tue, 09 Feb 1999 09:41:44 -0500 From: Brian McGovern <bmcgover@cisco.com> To: hackers@FreeBSD.ORG Subject: Docs on line disciplines? Message-ID: <199902091441.JAA02508@bmcgover-pc.cisco.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902091441.JAA02508>