From owner-freebsd-hackers Fri May 14 1:51:15 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from citadel.cdsec.com (citadel.cdsec.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id 4F6A514EA4 for ; Fri, 14 May 1999 01:51:00 -0700 (PDT) (envelope-from gram@cdsec.com) Received: (from nobody@localhost) by citadel.cdsec.com (8.9.3/8.9.3) id KAA10351; Fri, 14 May 1999 10:49:02 +0200 (SAST) Received: by citadel via recvmail id 10340; Fri May 14 10:48:30 1999 Message-ID: <373BE3F7.194DEB3A@cdsec.com> Date: Fri, 14 May 1999 10:51:03 +0200 From: Graham Wheeler X-Mailer: Mozilla 4.08 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: "Pavel V. Antipov" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Problems with Ethernet programming References: <19990514091824.C89091@freebie.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thursday, 13 May 1999 at 13:32:42 +0400, Pavel V. Antipov wrote: > > Now I want to send this packet into the Ethernet network and > > recieve it of destination computer. > > Please, tell me how can i write/read the Ethernet packet. Use the bpf device. You may have to recompile the kernels to support this. If you want to look at source code, try nmap (I think it uses a modified libpcap on top of BPF, but it will still show you how to do this kind of stuff). -- Dr Graham Wheeler E-mail: gram@cdsec.com Citadel Data Security Phone: +27(21)423-6065/6/7 Firewalls/Virtual Private Networks Fax: +27(21)24-3656 Internet/Intranet Network Specialists Data Security Products WWW: http://www.cdsec.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message