Skip to contentSkip to conversation

MAC address instead of IP

DISCUSSION Donald Duckie 2 participants 2 messages Mar 15, 2005

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 5 lines · Donald Duckie

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

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com