From owner-freebsd-net Tue Sep 4 2:23:55 2001 Delivered-To: freebsd-net@freebsd.org Received: from samar.sasken.com (samar.sasken.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id E31A837B401 for ; Tue, 4 Sep 2001 02:23:47 -0700 (PDT) Received: from samar (localhost [127.0.0.1]) by samar.sasken.com (8.11.3/8.11.3) with SMTP id f849NdM28451 for ; Tue, 4 Sep 2001 14:53:43 +0530 (IST) Received: (from gbnaidu@localhost) by sunk2.sasi.com (8.9.3/8.9.3) id OAA22567; Tue, 4 Sep 2001 14:53:37 +0530 (IST) From: Brahma Naidu Golla MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15252.40345.212692.832960@sunk2.sasi.com> Date: Tue, 4 Sep 2001 14:53:37 +0530 (IST) To: freebsd-net@FreeBSD.org Cc: sameerbr@sasken.com Subject: Packet capturing at Link Layer... X-Mailer: VM 6.72 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Reply-To: gbnaidu@sasken.com Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I would like to capture certain packets (Based on the Protocol type of ether header) at the link layer. I dont want the copies of the packets, but I want the packets to be received by my user land application and not to be processed by the L3 and L4. Could some body give me some pointers on this? One possibility is to use Raw sockets at the link layer. But how do I specify the protocol type of ether header to filter the packets? TIA --gb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message