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 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?

hmmm have a look at netgraph


at least some of the following node types may be useful to you,
and writing new ones is easy.

    ng_async(4), ng_atm(4), ng_atmllc(4),
    ng_atmpif(4), ng_bluetooth(4), ng_bpf(4), ng_bridge(4), ng_bt3c(4),
    ng_btsocket(4), ng_cisco(4), ng_device(4), ng_echo(4), ng_eiface(4),
    ng_etf(4), ng_ether(4), ng_fec(4), ng_frame_relay(4), ng_gif(4),
    ng_gif_demux(4), ng_h4(4), ng_hci(4), ng_hole(4), ng_hub(4), ng_iface(4),
    ng_ip_input(4), ng_ksocket(4), ng_l2cap(4), ng_l2tp(4), ng_lmi(4),
    ng_mppc(4), ng_netflow(4), ng_one2many(4), ng_ppp(4), ng_pppoe(4),
    ng_pptpgre(4), ng_rfc1490(4), ng_socket(4), ng_split(4), ng_sppp(4),
    ng_sscfu(4), ng_sscop(4), ng_tee(4), ng_tty(4), ng_ubt(4), ng_UI(4),
    ng_uni(4), ng_vjc(4), ng_vlan(4), ngctl(8), nghook(8)


vinod
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to