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 <cube%cubidou.net@localhost>
To: Taylor R Campbell <campbell%mumble.net@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: bin/39233: OpenSSH fails to initialize tun(4) tunnels correctly
Date: Mon, 28 Jul 2008 18:41:52 +0200

 --YToU2i3Vx8H2dn7O
 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 <cube%cubidou.net@localhost>
 >=20
 >    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.
 >=20
 >    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.
 >=20
 > 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 `build.sh -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 libssh.so.
 
 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 :-)
 
 --=20
 Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
 "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.
 
 --YToU2i3Vx8H2dn7O
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (NetBSD)
 
 iQEcBAEBAgAGBQJIjfbQAAoJENgoQloHrPnoJBwH/AqUGZ+VFoEYCrc4w8/0HYUW
 LCZq/bmqpinTZzguLxMD4jkhx5tBiCMsY7wG6LLJcbesWcaTdz0P0ebjA2B6YUl1
 WGCvcui93xBbDwqVPFNKX31NKTdOfC/Ni3/7iwP9jECyla80QW/cf4omFrGUFfsv
 mqjQ0IL3hqIx7FDCC/WuI818kX6GNU7T6kUEe1ewMmiTa4X6J4XvhXRDMndHICWS
 eluRthFlNJQIvV8qKZlJJL1evy9QjDjeuqrNuMrpCCz+t3DGfV95HkT9QqBi/zHN
 basvbuSSoxZxaIeqCXLWkO4bQlAkgWKIcRbveh0i9YwfJ5BFe6dtj0QqdZvk2gE=
 =UTO3
 -----END PGP SIGNATURE-----
 
 --YToU2i3Vx8H2dn7O--
 


Home | Main Index | Thread Index | Old Index