From owner-freebsd-hackers Mon May 29 9:33: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mailbox.reptiles.org (mailbox.reptiles.org [198.96.117.155]) by hub.freebsd.org (Postfix) with ESMTP id 750C937BC4D for ; Mon, 29 May 2000 09:32:59 -0700 (PDT) (envelope-from jim@reptiles.org) Received: from localhost (1623 bytes) by mailbox.reptiles.org via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Mon, 29 May 2000 12:32:58 -0400 (EDT) (Smail-3.2.0.108 1999-Sep-19 #3 built 1999-Oct-27) Date: Mon, 29 May 2000 12:32:58 -0400 From: Jim Mercer To: hackers@freebsd.org Subject: pppd and predictable ppp unit number Message-ID: <20000529123257.K6047@reptiles.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG i'm working with some stuff (zebra and vpn-like tunnels using ssh/pppd) where it would be very nice if i could predict (specify) which ppp unit number applied to a given ppp session. i've been using pppd (kernel mode) and would prefer a kernel level connection, as opposed to the userland ppp. as i understand it, pppd by default uses whatever ifunit number the kernel returns. i was thinking of hacking /usr/src/usr.sbin/pppd to allow for a "hardwire x" config option, which would cause pppd to fire up using unit pppx. this would allow me to create a session on pppx, and use pppx in my router config. i understand that this could create some oddness, if not all the ppp session on the box use hardwired unit numbers (ie. a link goes down, and another non-hardwired pppd session grabs the hardwired unit). it would be my intention to have this option documented as an all or nothing option. it might also be handy for people who want their ttydx devices to match up with their pppx devices. is this advisable? is this already done? -- [ Jim Mercer jim@reptiles.org +1 416 410-5633 ] [ Reptilian Research -- Longer Life through Colder Blood ] [ Don't be fooled by cheap Finnish imitations; BSD is the One True Code. ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message