From owner-freebsd-hackers Wed Feb 10 10:57:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03562 for freebsd-hackers-outgoing; Wed, 10 Feb 1999 10:57:18 -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 KAA03555 for ; Wed, 10 Feb 1999 10:57:16 -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 NAA24189 for ; Wed, 10 Feb 1999 13:57:14 -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 NAA00779 for ; Wed, 10 Feb 1999 13:57:14 -0500 (EST) (envelope-from bmcgover@bmcgover-pc.cisco.com) Message-Id: <199902101857.NAA00779@bmcgover-pc.cisco.com> To: hackers@FreeBSD.ORG Subject: How to attach line disciplines (aka Stupid Question #2962) Date: Wed, 10 Feb 1999 13:57:14 -0500 From: Brian McGovern Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm in the process of writing a relatively simple line discipline for doing some data translations on input and output. I've been looking at the SLIP and PPP line disciplines as examples, but I haven't quite figured out how to attach this new line discipline without having a network interface to go with it. What I really need to have happen is on boot time, call a function vldattach(). This initializes all of the internal strutures, and sets linesw[x] = my discipline, which should allow applications to change to discipline X.... Pointers? -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message