From owner-freebsd-hackers Tue Feb 9 06:41:50 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA22567 for freebsd-hackers-outgoing; Tue, 9 Feb 1999 06:41:50 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from tornado.cisco.com (tornado.cisco.com [171.69.104.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA22560 for ; Tue, 9 Feb 1999 06:41:46 -0800 (PST) (envelope-from bmcgover@bmcgover-pc.cisco.com) Received: from bmcgover-pc.cisco.com (bmcgover-pc.cisco.com [171.69.104.147]) by tornado.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id JAA18185 for ; Tue, 9 Feb 1999 09:41:44 -0500 (EST) Received: from bmcgover-pc.cisco.com (localhost.pa.dtd.cisco.com [127.0.0.1]) by bmcgover-pc.cisco.com (8.9.1/8.9.1) with ESMTP id JAA02508 for ; Tue, 9 Feb 1999 09:41:44 -0500 (EST) (envelope-from bmcgover@bmcgover-pc.cisco.com) Message-Id: <199902091441.JAA02508@bmcgover-pc.cisco.com> To: hackers@FreeBSD.ORG Subject: Docs on line disciplines? Date: Tue, 09 Feb 1999 09:41:44 -0500 From: Brian McGovern Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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