Subject: Re: bin/33923: slattach(8) can't attach sl(4) interface
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-bugs
Date: 07/08/2006 10:35:03
The following reply was made to PR bin/33923; it has been noted by GNATS.
From: Quentin Garnier <cube@cubidou.net>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: bin/33923: slattach(8) can't attach sl(4) interface
Date: Sat, 8 Jul 2006 12:30:49 +0200
--DXTueXWT3Da08pik
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Jul 06, 2006 at 12:19:49PM -0400, Christos Zoulas wrote:
> On Jul 6, 3:40pm, tsutsui@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
> -- Subject: Re: bin/33923: slattach(8) can't attach sl(4) interface
>=20
> | The following reply was made to PR bin/33923; it has been noted by GNAT=
S.
> |=20
> | From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> | To: christos@zoulas.com
> | Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org,
> | tsutsui@ceres.dti.ne.jp
> | Subject: Re: bin/33923: slattach(8) can't attach sl(4) interface
> | Date: Fri, 7 Jul 2006 00:39:06 +0900
> |=20
> | christos@zoulas.com wrote:
> | =20
> | > | > | slattach: TIOCSETD: Device not configured
> | > | > ifconfig sl0 create?
> | > | Umm, you are right.
> | > | I'll note about it sl(4) and slattach(8) man pages...
> | >=20
> | > The question is: Should we just document this as you suggest, or sho=
uld
> | > we make the creation/deletion automatic in slattach?
> | =20
> | Well, I'd prefer the latter, but I can do only the former
> | because I don't have a good idea how to modify slattach
> | to create interfaces automatically. Currently it doesn't
> | take an interface name arg.
>=20
> Right, unlike pppd I don't think that slattach has a way to tell bind to
> slX, or even find what you are bound. So let's fix the man page, for now.
sl(4) does have SLIOCGUNIT, so slattach has a way to tell which sl(4)
device it was bound to. Having the interface automatically created is
just a matter of having slopen() do it, just like pppopen() calls
pppalloc().
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--DXTueXWT3Da08pik
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
iQEVAwUBRK+JWdgoQloHrPnoAQLBiwgAgx5T7wtXiPLkMnZ6UvduBoShDfzOcjuL
p6qDsQG8ncop5xGMsZVjRXr90MZ/NyQeTkXVIuVT+Uk89MBhm6Imjz+T5Hm75NUI
ATNdho3d769OIpvYe27qp5hZBmge9i6i5ozFPrV7aWu7QyLPz/9JXLvh+HKqXhi/
prwV5sEPkbhxB4qdAKEzuzzsxkqzH1R1cOcwcu1gD3bqYgt+/U5/IFWE4gGrHi1X
JEGxa2PHvEu82P4IEbkquvbnsZ3mbrZ5f09dpzJHBlcay5RQBSTQHgHbcsZgQxfa
5wLS0PtswJwwWsxurcv6ZYQXZjslUR+ijcu0ZqhdpjXHdowDqPoyrw==
=p0eA
-----END PGP SIGNATURE-----
--DXTueXWT3Da08pik--