Subject: Re: cloning tap device (was : qemu networking under -current)
To: Thierry Lacoste <th.lacoste@wanadoo.fr>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-help
Date: 03/18/2005 16:44:32
--XYfv1fW/lJ0azpLH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 18, 2005 at 04:36:44PM +0100, Thierry Lacoste wrote:
> I have the following line in my kernel config file:
>    pseudo-device   tap                     # virtual Ethernet
>=20
> man 4 tap says concerning the cloning device:
>      A new interface is created at the
>      opening of /dev/tap, and is later destroyed when the last process us=
ing
>      the file descriptor closes it.
>=20
> When I run the following program below as root,
> I have a "Device not configured" error.
>=20
> #include <fcntl.h>
> int main()
> {
>     int fd =3D open("/dev/tap", O_RDWR);
>     perror(NULL);
> }
>=20
> How do I configure this device?

What does 'ls -l /dev/tap' look like?

--=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.

--XYfv1fW/lJ0azpLH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQjr3YNgoQloHrPnoAQKGYAf/Zs1aDpEszGY25agG0+73jLEIWSxx231o
zXzztnpwYqsLq3Q0GM2SOQN4m86iTnuMAiwTuzP+WQHW+V4lHanwv1WKheWV5wYq
JZhx91486n9bZgQTupfYFBPL2oMGMFn0wA8P9Ny2F8hEmS+CS8JU6IyGo/z7j6lu
n9v2FI9bASYXVFHLQVBxM53XrYRPqAkGPnHNaGz4R9SjNF1Uk528po8ROwt3sdq9
BERL8bZAtjWCi9/+mxSJ5MeXMUopXB3p0CzO/5lGLtlCMxCuANSEb8EgDI4I8Clf
arNFspjcBV/2+lRVHac+odUSMYUSojmaLXXdf4O/fqkaseYB7el1Mg==
=9Guu
-----END PGP SIGNATURE-----

--XYfv1fW/lJ0azpLH--