lkml.org 
[lkml]   [1996]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectwriting raw packets out
Date
From

Can I write raw packets out the ethernet after I do:
f = socket(AF_INET, SOCK_PACKET, htons(ETH_P_ALL));

I can read all packets, but I want to write raw packets
(actually, it would be nice if the MAC from address was prepended,
but its not necessary).


marty leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
Arthur C. Clarke, The Lost Worlds of 2001

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.037 / U:3.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site