From owner-freebsd-net@FreeBSD.ORG Wed May 4 00:52:54 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 603D216A4CE for ; Wed, 4 May 2005 00:52:54 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4050743D5F for ; Wed, 4 May 2005 00:52:54 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 243437A41E; Tue, 3 May 2005 17:52:51 -0700 (PDT) Message-ID: <42781CE2.4090805@elischer.org> Date: Tue, 03 May 2005 17:52:50 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Daniel Valencia References: <20050504003321.45603.qmail@web53907.mail.yahoo.com> In-Reply-To: <20050504003321.45603.qmail@web53907.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: sending MAC packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 00:52:54 -0000 Daniel Valencia wrote: >Hello all > >I'm doing research on network-layer protocols, so I >need a way to send packets straight into layer 2. So >far i've been reffered to raw sockets, but i've read >the code and i cannot skip header checking and that >stuff... Is there a way to interact with the network >if in a way that I can get network parameters (mtu, >etc.) and send packets (specify destination mac >address and payload)?? > >Thank you > >- Daniel > > libpcap is one way using bpf.. also netgraph can do that in a more 'brute force' manner > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com >_______________________________________________ >freebsd-net@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >