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

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).

Member of the League for Programming Freedom (
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.050 / U:1.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site