Date: Tue, 11 Nov 1997 19:29:49 -0500 From: Michael Knoll <knollm@lafcol.lafayette.edu> To: hackers@freebsd.org Subject: Ethernet packet generation Message-ID: <3.0.32.19971111192821.009d1730@lafcol.lafayette.edu>
next in thread | raw e-mail | index | archive | help
Is there a way to generate an ethernet packet, with an unsupported protocol through a user level program? I attempted to generate an ethernet packet by opening a socket by calling socket(AF_UNSPEC, SOCK_RAW, PF_UNSPEC), and it fails with a protocol unsupported. Is there a way using standard socket calls to write ethernet packets? If not, is there any way to do it? Any source code as examples? Thanks Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19971111192821.009d1730>