lkml.org 
[lkml]   [2005]   [Mar]   [15]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 14 Mar 2005 21:10:28 -0800
FromBen Greear <>
SubjectRe: 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 <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [from the cache]
©2003-2008