if_bridge and ipdivert oddity?

JJ Cummings cummingsj at gmail.com
Fri Mar 4 19:46:32 UTC 2011


Same latency without those...

Sent from the iRoad

On Mar 4, 2011, at 12:36, Michael Scheidell <michael.scheidell at 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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
>> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe at 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/
> 
> 


More information about the freebsd-ipfw mailing list