From owner-freebsd-hackers Wed Apr 25 6: 5:48 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.wuppy.net.ru (ns.WUPPY.NET.RU [212.30.189.130]) by hub.freebsd.org (Postfix) with ESMTP id 4D31F37B423 for ; Wed, 25 Apr 2001 06:05:45 -0700 (PDT) (envelope-from romanp@unshadow.net) Received: by ns.wuppy.net.ru (Postfix, from userid 66) id 557781DCD; Wed, 25 Apr 2001 17:05:32 +0400 (MSD) Received: from localhost (localhost [127.0.0.1]) by abyss.unshadow.net (8.12.0.Beta7/8.12.0.Beta5) with ESMTP id f3PD2H7S005443 for ; Wed, 25 Apr 2001 17:02:17 +0400 (MSD) Date: Wed, 25 Apr 2001 17:02:17 +0400 (MSD) From: "Roman V. Palagin" To: Subject: Implementation of PPPIOCSUNIT Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! About 2 years ago I make set of patches which introduces PPPIOCSUNIT and adds 'pppunit' option to pppd. This is usefull if (for variuos reason) you need to wire ppp interface number to some tty (i.e. you may want that pppd if started on /dev/cuaa3 always use ppp0 as its interface). Since than I receive many request about send this patch to FreeBSD and make it part of base system. But there is one showstoper - changes in kernel are incompatible with current scheme wich is used to access kernel-level ppp. With patched version you _MUST_ call PPPIOCSUNIT to attach ppp interface to tty. This is because some code moved from pppopen() to pppinit()/pppioctl() since at the moment of calling TCIOSETD we can't specifie interface number. So, you can't use stock pppd (patch to pppd included), also you must change any application which used kernel-level ppp (btw, is there are any other then pppd?) The question is: what you think is best way to incorporate this changes in FreeBSD? Or this is should left as separate patches? Current version of patches: ftp://room101.wuppy.net.ru/pppd - Roman --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message