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 suite you too.  'man 4 divert' will give you some clues.
The example of divert sockets usage is the natd program.

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

Yes, pcap_inject and pcap_sendpacket.  But this can be done via the
raw sockets too.  Again, 'man 3 pcap' is your friend ;))
-- 
Eygene
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to