Skip site navigation (1)Skip section navigation (2)
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>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Same latency without those...

Sent from the iRoad

On Mar 4, 2011, at 12:36, Michael Scheidell <michael.scheidell@secnap.com> 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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?ECFD610E-0E93-4539-9BBC-F4E444297E35>