On Fri, Aug 27, 1999 at 12:30:04PM +0300, Alex Shnitman wrote:
> On Fri, Aug 27, 1999 at 12:13:29AM +0300, shaul wrote:
>
> > BTW: How can root put raw data on the Ethernet device ? If there is no /dev
> > for it, then how can someone open this device ?
>
> Check out /usr/src/linux/Documentation/networking/ethertap.txt.
I'm afraid that doesn't do what Shaul needs here (unless I'm mistaken,
which I may be!). Ethertap is a mechanism to let user mode programs
bind to a "device" with no hardware and read/write to/from it. You
don't get raw access to a NIC, but rather to data that happens to be
forwarded to this device. If you want to send data on a network, you
can either write it to the tap device and let routing and forwarding
take care of it (which is nice but means you lose control of the raw
ethernet frame) or send it yourself somewhere (as you would do in a
tunnel (eg. let your proccess bundle up data and process it before
sending it over a different protocol) or maybe some kind of weird
gateway (hey, I already said that)).
If anybody can offer a better explanaiton, do share it with us :-)
--
believing is seeing
[EMAIL PROTECTED]
http://www.forum2.org/gaal/
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]