From owner-freebsd-net@FreeBSD.ORG Thu Feb 15 21:55:59 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEE1616A400 for ; Thu, 15 Feb 2007 21:55:59 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 761EC13C46B for ; Thu, 15 Feb 2007 21:55:57 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l1FLttXR051516 for ; Thu, 15 Feb 2007 16:55:55 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-net@FreeBSD.org Date: Thu, 15 Feb 2007 16:55:51 -0500 User-Agent: KMail/1.6.2 References: <200702141805.20228.jkim@FreeBSD.org> In-Reply-To: <200702141805.20228.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200702151655.53581.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2576/Thu Feb 15 12:05:25 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Subject: Re: [PATCH] BPF to support directions and more X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 21:55:59 -0000 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 Thanks, Jung-uk Kim