Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2004 05:35:24 +0200
From:      Vlad Galu <dudu@diaspar.rdsnet.ro>
To:        freebsd-net@freebsd.org
Subject:   Re: Dummy Network Interface
Message-ID:  <20040115053524.2c6e8db2.dudu@diaspar.rdsnet.ro>
In-Reply-To: <Pine.NEB.3.96L.1040114220930.55901A-100000@fledge.watson.org>
References:  <173CC3C8-45A5-11D8-B102-000A95C71776@freezone.co.uk> <Pine.NEB.3.96L.1040114220930.55901A-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Thu__15_Jan_2004_05_35_24_+0200_c/rdsl73WdcJ1UDm
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Robert Watson <rwatson@freebsd.org> writes:

|
|On Tue, 13 Jan 2004 ms419@freezone.co.uk wrote:
|
|> How does one create a dummy network interface in FreeBSD? 
|
|Dummy in what sense?  An interface where the packets are simply
|dropped? if_tap and if_tun both provide pseudo-device in /dev that a
|userspace process can attach to in order to emulate a network interface
|(used by VMWare, ppp, various tunneling bits, ...)  In the absense of a
|process sitting on the device, they simply drop the packets.  Although
|they may get garbage-collected if unused on -CURRENT...  You can also
|use netgraph to bring pseudo-interfaces, perhaps without anywhere for
|packets to go. 
|
|And, I suppose, create in what sense?  Are you looking at this from a
|developer perspective, or you just need one from a user perspective. 
|If writing a device driver (and hence needing a starting point), if_tap
|and if_tun are fairly decent models for a pseudo-interface.

	I think he could use the discard interface smoothly. On Linux (from
which the dummy interface notion is taken from) it is simply used for
testing purposes, as in routing, or perhaps socket programming. I
personally have used it for a while, but then I used interface aliasing,
which became a habit.

|
|Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
|robert@fledge.watson.org      Senior Research Scientist, McAfee
|Research
|
|
|_______________________________________________
|freebsd-net@freebsd.org mailing list
|http://lists.freebsd.org/mailman/listinfo/freebsd-net
|To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
|


----
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.

--Signature=_Thu__15_Jan_2004_05_35_24_+0200_c/rdsl73WdcJ1UDm
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFABgp+P5WtpVOrzpcRAp04AJ43D4nsFkVP5abEQSlnAOjPgv36JQCgkkdd
W8P6Mp2bUx200AFY9kCe3dk=
=TvdF
-----END PGP SIGNATURE-----

--Signature=_Thu__15_Jan_2004_05_35_24_+0200_c/rdsl73WdcJ1UDm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040115053524.2c6e8db2.dudu>