cant compile - undefined reference to `bpfattach'

2007-10-05 Thread Vinod VM
Hi, I'm having trouble in compiling my code with gcc on release 6.2 I've included the following headers, stdlib.h sys/types.h sys/socket.h net/if.h net/if_var.h net/if_types.h net/bpf.h When compiling the code, i'm getting the following error message /var/tmp//ccphxfRO.o(.text+0x3c): In functi

Re: cant compile - undefined reference to `bpfattach'

2007-10-05 Thread Eygene Ryabinkin
Good day. Fri, Oct 05, 2007 at 04:54:27PM +0530, Vinod VM wrote: > I'm having trouble in compiling my code with gcc on release 6.2 > > I've included the following headers, > > stdlib.h > sys/types.h > sys/socket.h > net/if.h > net/if_var.h > net/if_types.h > net/bpf.h > > When compiling the cod

Re: cant compile - undefined reference to `bpfattach'

2007-10-05 Thread Vinod VM
Thanks for the reply! On 10/5/07, Eygene Ryabinkin <[EMAIL PROTECTED]> 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. An

Re: cant compile - undefined reference to `bpfattach'

2007-10-05 Thread Eygene Ryabinkin
Fri, Oct 05, 2007 at 07:29:35PM +0530, Vinod VM wrote: > 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/] You can examine the divert sockets in FreeBSD: seems like that this will s

Re: FreeBSD as a gigabit router

2007-10-05 Thread Julian Elischer
Artyom Viklenko wrote: Cristian KLEIN wrote: Thank you all for your replies. Kirill Ponazdyr wrote: Hi list, A few days ago I tested whether a FreeBSD 7 box is able to handle Gigabit Can anybody point me what the bottleneck of this configuration is? CPU was mostly idle and PCIe 1x should c

Re: cant compile - undefined reference to `bpfattach'

2007-10-05 Thread Julian Elischer
Vinod VM wrote: Thanks for the reply! On 10/5/07, Eygene Ryabinkin <[EMAIL PROTECTED]> 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 functi