Subject: Moving ethfoo in the main tree
To: None <tech-kern@netbsd.org>
From: None <cube@cubidou.net>
List: tech-kern
Date: 12/13/2004 10:33:28
--v9Ux+11Zm5mwPlX6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I believe my ethfoo device has reached the point where it is useful
enough (notably with qemu) it could be in the main part of tree, rather
than a not built LKM.  There are a few points I need to address before
that, though.

First, naming convention.  'ethfoo' was fine while it was only an
example, do we want to keep it instead of the commonly accepted 'tap'?
That leads to another question:  should I add a tun-like part to it
so it could replace tun(4), or should I merge it with tun?  I don't
think it really makes sense to have both around.

If it were to be kept separate from tun, I think the correct way to
name the main source file would be sys/net/if_ethfoo.c.

The other thing is that the cloning device interface (where you open
/dev/ethfoo and get an interface automatically created) needs a way
to retrieve the name of the interface.  I made a rather simple ioctl
for that but we might want a more general approach.  For that I added
an include file, but a header just for an ioctl definition seems a
bit much to me.  While 'SIOCGIFNAME' would be an idea for the name, it
doesn't work because it's not an operation on a socket.

Is there a name and a place where such an ioctl definition could fit?

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"Commala-come-five! / Even when the shadows rise!
To see the world and walk the world / Makes ya glad to be alive."
Susannah's Song, The Dark Tower VI, Stephen King, 2004.

--v9Ux+11Zm5mwPlX6
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iQEVAwUBQb1h6NgoQloHrPnoAQKBQAf8CvRlan/5x7IWZfnobVjpY4NUGLNHYvMO
X1wAs4Zb0bzAvn1CsKkQQbKimgHecso/jI7/6OAbUtTNP69JtASaVpOftLawAgol
1yXD8DvgXt8LKVzqb0MJW+id7mCxkjv77Qt0E//ehpWCP1buCGRg42nsq3XmUUY1
0VMreDHkxIejUZYBZus4hC0mcHpxsorsjjE6uPIlj5Scq8HDSEqwqtXXmv9DThxO
8oB9egsgAbf0YobKHxi83V+KprlEG+3tFu8kWuwmZ2htU99EvdcwGtmMhGPq6dzn
yI2qYSqSBJi9XCdXVx3VGsbgsQZbZjgm2uTLBcKHaPSUfSNku6y89A==
=l5ZT
-----END PGP SIGNATURE-----

--v9Ux+11Zm5mwPlX6--