Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2011 14:36:05 -0500
From:      Michael Scheidell <michael.scheidell@secnap.com>
To:        JJC <cummingsj@gmail.com>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: if_bridge and ipdivert oddity?
Message-ID:  <4D713F25.6020909@secnap.com>
In-Reply-To: <AANLkTi=u7N7SRHH1LxMmRZ0qpbuyw-cVEwyB=rnH8oGC@mail.gmail.com>
References:  <AANLkTi=u7N7SRHH1LxMmRZ0qpbuyw-cVEwyB=rnH8oGC@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help


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(r). 
For Information please see http://www.secnap.com/products/spammertrap/
______________________________________________________________________  



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4D713F25.6020909>