From owner-freebsd-net Mon Mar 29 2:39:14 1999 Delivered-To: freebsd-net@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with ESMTP id E0AD115791 for ; Mon, 29 Mar 1999 02:39:12 -0800 (PST) (envelope-from dmmiller@cvzoom.net) Received: from cvzoom.net (lcl75.cvzoom.net [208.226.155.75]) by ns.cvzoom.net (8.9.3/8.9.3) with ESMTP id FAA10479 for ; Mon, 29 Mar 1999 05:25:07 -0500 (EST) Message-ID: <36FF11E2.4B661EED@cvzoom.net> Date: Mon, 29 Mar 1999 05:38:42 +0000 From: Donn Miller X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: net@freebsd.org Subject: FreeBSD equiv. of this Linux socket call... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm looking for the FreeBSD equivalent of this Linux socket call: dhcpSocket = socket(AF_PACKET,SOCK_PACKET,htons(ETH_P_ALL)); So far, I think "SOCK_PACKET" can be replaced by a call to /dev/bpf0. How should /dev/bpf be opened? Should it be by the regular libc open() command, which returns a file descriptor, that is later used to bind this file descriptor to a device interface? What is AF_PACKET; I don't think FreeBSD supports that either. Thanks, this is a tough one. Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message