NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/39233: OpenSSH fails to initialize tun(4) tunnels correctly

The following reply was made to PR bin/39233; it has been noted by GNATS.

From: Quentin Garnier <>
To: Taylor R Campbell <>
Subject: Re: bin/39233: OpenSSH fails to initialize tun(4) tunnels correctly
Date: Mon, 28 Jul 2008 18:41:52 +0200

 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 On Mon, Jul 28, 2008 at 12:34:49PM -0400, Taylor R Campbell wrote:
 >    Date: Mon, 28 Jul 2008 16:25:07 +0200
 >    From: Quentin Garnier <>
 >    I think this is because OpenSSH's code is specific to OpenBSD.  Their
 >    tun(4) covers both our tun(4) and our tap(4), and has a different
 >    interface.  The fact that it compiles is actually the main bug.
 >    Now, it'd probably be good to add support for that in NetBSD, and it
 >    shouldn't be too difficult, given it's mostly the initialisation of
 >    devices that matters.  Well, the code might also be expecting a header
 >    or something on read packets, or even try to prepend one on written
 >    ones.
 > I'm working on this -- no wonder the code in ssh/misc.c made no sense.
 > I'm entirely new to NetBSD, however; can you suggest how I might
 > rebuild libssh and usr.bin/ssh without running ` -u build',
 > which takes ten minutes rather than the ten seconds I'd hope for?
 Locate your ${TOOLSDIR}, and use ${TOOLSDIR}/bin/nbmake-${ARCH} in
 place of make, and do nbmake-lalala dependall install in libssh and
 then the same in usr.bin/ssh.  I don't remember if ssh uses a shared
 libssh, but in that case you can probably get away with just rebuilding
 and reisntalling libssh.  Then you can play with LD_LIBRARY_PATH to make
 sure ssh picks up the correct
 Alternatively you can also use make directly in those directories but
 that tend to leave files behind.  Of course you can set OBJDIRPREFIX or
 MAKEOBJDIRPREFIX so that files get built elsewhere but don't forget to
 do "make obj" first.
 I hope I don't sound too confusing :-)
 Quentin Garnier - -
 "See the look on my face from staying too long in one place
 [...] every time the morning breaks I know I'm closer to falling"
 KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 Version: GnuPG v1.4.9 (NetBSD)

Home | Main Index | Thread Index | Old Index