From owner-freebsd-hackers Tue May 21 20:55:37 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA06383 for hackers-outgoing; Tue, 21 May 1996 20:55:37 -0700 (PDT) Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id UAA06370 for ; Tue, 21 May 1996 20:55:34 -0700 (PDT) Received: from localhost.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.7.5/8.7.3) with SMTP id XAA06952; Tue, 21 May 1996 23:55:22 -0400 (EDT) Message-Id: <199605220355.XAA06952@whizzo.transsys.com> X-Authentication-Warning: whizzo.transsys.com: Host localhost.transsys.com [127.0.0.1] didn't use HELO protocol To: "Amancio Hasty Jr." cc: freebsd-hackers@freebsd.org From: "Louis A. Mamakos" Subject: Re: direct ethernet interface? References: <199605212213.PAA00823@rah.star-gate.com> In-reply-to: Your message of "Tue, 21 May 1996 15:13:58 PDT." <199605212213.PAA00823@rah.star-gate.com> Date: Tue, 21 May 1996 23:55:22 -0400 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Is there an easy way for me to send packets to a ethernet interface? Certainly the easiest way is to use one of the supported higher level protocols. If you need to generate ethernet frames for some random ethernet/IEEE 802.3 protocol, then you ought to look at perhaps using bpf(4) as a way to send packets. According to the man page, this is supported on ethernet and slip interfaces. I believe there's also a way to do this with raw sockets. > On VMS, we had the capability of issuing a qio to the ethernet interface so > I am wondering if we have an ioctl or something that would allow me > to talk the ethernet interface. Any more details on the sort of traffic you're trying to generate? That might help narrow down a good approach to puruse. louie