From owner-freebsd-ipfw@FreeBSD.ORG Fri Mar 4 19:46:32 2011 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89148106564A for ; Fri, 4 Mar 2011 19:46:32 +0000 (UTC) (envelope-from cummingsj@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3C11D8FC08 for ; Fri, 4 Mar 2011 19:46:31 +0000 (UTC) Received: by gyh4 with SMTP id 4so1049691gyh.13 for ; Fri, 04 Mar 2011 11:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=4L3MNyjUfQBY5omzt3EF66dG9AAovqJ/ENRViksp81Y=; b=YND5aOLZY84eqhxVZQ2mhVQolQrkyLgok6L+4KxsX5epWDLdfP9ESuWEs32Jj7SLo0 xB65TExGA5bzGY2kZ8u++vy6OAsvSYMDqEzO3RDosjjMNHyh7RaAAWf5Ud8bGYhlXu3O z0dAjsTWU7d3dmAh81wJrSou+QNZBoiyh5ljk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=cSLKnokHmfY4QXIzmC4pCWDn5yLYN4Mn/xKoNbAP3trt5xpH1INnQS/NmqZks9bKk6 0noGIZ8/w4PoFsEmau/lG094HT7YJ13BjvNwewOfYL9WgIYQ9dE0gIaSt/uRZynj70Zh da4TX3NbegvTFR7f/a62F1RdfAAG79NTonGQY= Received: by 10.150.66.10 with SMTP id o10mr1125476yba.337.1299267991062; Fri, 04 Mar 2011 11:46:31 -0800 (PST) Received: from [10.66.117.125] ([166.205.15.11]) by mx.google.com with ESMTPS id w15sm918218ybk.13.2011.03.04.11.46.28 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Mar 2011 11:46:29 -0800 (PST) References: <4D713F25.6020909@secnap.com> In-Reply-To: <4D713F25.6020909@secnap.com> Mime-Version: 1.0 (iPhone Mail 8C148) Message-Id: X-Mailer: iPhone Mail (8C148) From: JJ Cummings Date: Fri, 4 Mar 2011 12:46:22 -0700 To: Michael Scheidell Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "" Subject: Re: if_bridge and ipdivert oddity? X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2011 19:46:32 -0000 Same latency without those... Sent from the iRoad On Mar 4, 2011, at 12:36, Michael Scheidell w= rote: >=20 >=20 > Hey, thats a nice, clean looking test :-) >=20 > I suspect SOME of the latency is the unbuffered printf. > two printfs to &2 for every packet that flows. >=20 >=20 >=20 > On 3/4/11 2:01 PM, JJC wrote >> inline transparently on fBSD >>=20 >> ** begin perl snippet** >> #!/usr/bin/perl -w >> use Net::Divert; >>=20 >> select STDERR; $| =3D 1; >>=20 >> my $divobj =3D Net::Divert->new('localhost',8000); >>=20 >> printf(STDERR "open new divobj\n"); >>=20 >> $divobj->getPackets(\&alterPacket); >>=20 >> sub alterPacket { my($packet,$fwtag) =3D @_; >> printf(STDERR "i"); >> $divobj->putPacket($packet,$fwtag); >> printf(STDERR "o"); >> } >> _______________________________________________ >> freebsd-ipfw@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" >=20 > --=20 > Michael Scheidell, CTO > o: 561-999-5000 > d: 561-948-2259 > ISN: 1259*1300 > > | SECNAP Network Security Corporation > Certified SNORT Integrator > 2008-9 Hot Company Award Winner, World Executive Alliance > Five-Star Partner Program 2009, VARBusiness > Best in Email Security,2010: Network Products Guide > King of Spam Filters, SC Magazine 2008 >=20 > This email has been scanned and certified safe by SpammerTrap=C2=AE.=20 > For Information please see http://www.secnap.com/products/spammertrap/ >=20 >=20