writing raw packets out

Marty Leisner (leisner@sdsp.mc.xerox.com)
Mon, 16 Sep 1996 14:23:42 PDT


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