2005-03-15 05:02:08

by Donald Duckie

[permalink] [raw]
Subject: MAC address instead of IP

Hi!

I am looking for some sample codes which uses MAC
address instead of TCP-IP for data transmission. Any
suggestions are highly appreciated.

And also, I have been digging into ethertap.c and
netlink_dev.c, but I cant fully understand how these
codes work. Where can I see some detailed explanations
of these source codes? What I usually see in a search
are compilation error problems and the like.

Thank you very much for any kind of information.


Regards.





__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/


2005-03-15 05:14:14

by Ben Greear

[permalink] [raw]
Subject: Re: MAC address instead of IP

Donald Duckie wrote:
> Hi!
>
> I am looking for some sample codes which uses MAC
> address instead of TCP-IP for data transmission. Any
> suggestions are highly appreciated.

Check out the 'man 7 socket' man page and read up on
raw packet sockets. You can format a packet down to
the ethernet header and send it directly to the
interface transmit queue...

And all this safely from user-space.

Ben


--
Ben Greear <[email protected]>
Candela Technologies Inc http://www.candelatech.com