Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 1999 08:13:08 -0800 (PST)
From:      Archie Cobbs <archie@whistle.com>
To:        bmcgover@cisco.com (Brian McGovern)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Docs on line disciplines?
Message-ID:  <199902091613.IAA32509@bubba.whistle.com>
In-Reply-To: <199902091441.JAA02508@bmcgover-pc.cisco.com> from Brian McGovern at "Feb 9, 99 09:41:44 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Brian McGovern writes:
> 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).

You might take a look at the netgraph sync<->async converter node/line
discipline, just to get started.. it doesn't use rawq or canq though..

  ftp://ftp.whistle.com/pub/archie/netgraph/index.html

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

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?199902091613.IAA32509>