Date: Fri, 5 Oct 2007 19:29:35 +0530 From: "Vinod VM" <vinuvm@gmail.com> To: "Eygene Ryabinkin" <rea-fbsd@codelabs.ru> Cc: freebsd-net@freebsd.org Subject: Re: cant compile - undefined reference to `bpfattach' Message-ID: <8de278a20710050659y55cbc312le303f1b44452b605@mail.gmail.com> In-Reply-To: <20071005120406.GQ971@void.codelabs.ru> References: <8de278a20710050424t68cf95eap99cd34a13e8ce594@mail.gmail.com> <20071005120406.GQ971@void.codelabs.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the reply! On 10/5/07, Eygene Ryabinkin <rea-fbsd@codelabs.ru> wrote: > Fri, Oct 05, 2007 at 04:54:27PM +0530, Vinod VM wrote: > > /var/tmp//ccphxfRO.o(.text+0x3c): In function `main': > > : undefined reference to `bpfattach' > > If I am correct, bpfattach is the kernel-level function. And you're > trying to write some user-space utility, aren't you? Yes. I am trying to write a program to capture from an interface and inject them to another, kind of like bcrelay functionality in poptop [http://www.poptop.org/] > If you're trying to capture packets, you'll probably want to > consult the pcap(3) manual page. Thanks! Does it support injecting packets into an interface? vinod
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8de278a20710050659y55cbc312le303f1b44452b605>