Date: Fri, 4 Mar 2011 12:46:22 -0700 From: JJ Cummings <cummingsj@gmail.com> To: Michael Scheidell <michael.scheidell@secnap.com> Cc: "<freebsd-ipfw@freebsd.org>" <freebsd-ipfw@freebsd.org> Subject: Re: if_bridge and ipdivert oddity? Message-ID: <ECFD610E-0E93-4539-9BBC-F4E444297E35@gmail.com> In-Reply-To: <4D713F25.6020909@secnap.com> References: <AANLkTi=u7N7SRHH1LxMmRZ0qpbuyw-cVEwyB=rnH8oGC@mail.gmail.com> <4D713F25.6020909@secnap.com>
index | next in thread | previous in thread | raw e-mail
Same latency without those...
Sent from the iRoad
On Mar 4, 2011, at 12:36, Michael Scheidell <michael.scheidell@secnap.com> wrote:
>
>
> Hey, thats a nice, clean looking test :-)
>
> I suspect SOME of the latency is the unbuffered printf.
> two printfs to &2 for every packet that flows.
>
>
>
> On 3/4/11 2:01 PM, JJC wrote
>> inline transparently on fBSD
>>
>> ** begin perl snippet**
>> #!/usr/bin/perl -w
>> use Net::Divert;
>>
>> select STDERR; $| = 1;
>>
>> my $divobj = Net::Divert->new('localhost',8000);
>>
>> printf(STDERR "open new divobj\n");
>>
>> $divobj->getPackets(\&alterPacket);
>>
>> sub alterPacket { my($packet,$fwtag) = @_;
>> 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"
>
> --
> 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
>
> This email has been scanned and certified safe by SpammerTrap®.
> For Information please see http://www.secnap.com/products/spammertrap/
>
>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECFD610E-0E93-4539-9BBC-F4E444297E35>
