From owner-freebsd-questions Thu May 27 12:52:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 0F88E14E17 for ; Thu, 27 May 1999 12:52:30 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id MAA09524; Thu, 27 May 1999 12:52:28 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Thu, 27 May 1999 12:52:26 -0700 (PDT) From: Doug White To: Eric Perie Cc: questions@FreeBSD.ORG Subject: Re: LKM and libnet library In-Reply-To: <5854E0C731A0D211B30400805FFED54101194D2C@montreal.eicon.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 26 May 1999, Eric Perie wrote: > I would like to use the libnet library with either FreeBSD 3.1 RELEASE for > forging > ethernet frames with arbitrary physical source addresses. > (testing purpose only...) > > http://www.packetfactory.net/libnet/ > > As stated in the documentation I need to compile a new version of > if_ethersubr.c and > to load it as a LKM: BPF is overiding the physical address provided in the > packet it is > getting from the write() system call with the one of the network adapter. And this is a problem? This is normal, expected behavior. Most ether cards I know of can't override the source Ether address. I could be wrong. > I did compile the code for the KLM module successfully, I have added LKM > support in my > kernel, but modload is displaying an error message related to the format of > the ether_spoof.o file > I am trying to load. LKMs are deprecated. Did you try the libnet port? Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message