if_bridge and ipdivert oddity?

Michael Scheidell michael.scheidell at secnap.com
Fri Mar 4 19:35:52 UTC 2011



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


More information about the freebsd-ipfw mailing list