[PATCH] BPF to support directions and more

gnn at freebsd.org gnn at freebsd.org
Fri Feb 16 00:49:39 UTC 2007


At Thu, 15 Feb 2007 16:55:51 -0500,
Jung-uk Kim wrote:
> 
> On Wednesday 14 February 2007 06:05 pm, Jung-uk Kim wrote:
> > I was playing with some BPF ideas for few days and I added two new
> > features.  SEESENT flag is extended to see only outgoing packets,
> > which is analogous to libpcap's PCAP_D_OUT direction.  Thus SEESENT
> > is now called DIRECTION.  Second feature is feedback mode (sort of
> > simulated hardware loopback), i.e., when packets are injected, you
> > can feed them back as if they are coming from the wire.  You can
> > debug link layer protocols easily with this without second machine,
> > network controller, or loopback plug.  It's only tested with
> > Ethernet, though.  All necessary patches (including libpcap
> > modification) are here:
> >
> > http://people.freebsd.org/~jkim/bpf_feedback.diff
> 
> I have received some positive feedbacks and comments.  So, I made some 
> adjustments/corrections to reflect them:
> 
> http://people.freebsd.org/~jkim/bpf_feedback-20070215.diff

Hmmm.  Those would be interesting things to have working with pypcap
and PCS.

I will try to take a look, but I like the ideas.

Best,
George


More information about the freebsd-net mailing list