cant compile - undefined reference to `bpfattach'

Vinod VM vinuvm at gmail.com
Fri Oct 5 06:59:41 PDT 2007


Thanks for the reply!

On 10/5/07, Eygene Ryabinkin <rea-fbsd at 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


More information about the freebsd-net mailing list