Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Oct 2009 21:42:27 +0500
From:      rihad <rihad@mail.ru>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-net@freebsd.org, Oleg Bulyzhin <oleg@FreeBSD.org>
Subject:   Re: dummynet dropping too many packets
Message-ID:  <4ACCC4F3.3030302@mail.ru>
In-Reply-To: <4ACCC30E.7080504@elischer.org>
References:  <4AC8A76B.3050502@mail.ru> <20091007085902.GA88982@lath.rinet.ru>	<4ACC5E23.8090405@mail.ru> <20091007100503.GB88982@lath.rinet.ru>	<4ACC6A7B.5050808@mail.ru> <20091007104525.GC88982@lath.rinet.ru> <4ACC7308.6070301@mail.ru> <4ACCC30E.7080504@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote:
> rihad wrote:
>> Oleg Bulyzhin wrote:
> 
>> You probably have some special sources of documentation ;-) According 
>> to man ipfw, both "netgraph/ngtee" and "pipe" decide the fate of the 
>> packet unless one_pass=0. Or do you mean sprinkling smart skiptos here 
>> and there? ;-)
>>
> 
> ngtee should not have any affect on the packet.. it takes a copy..
> 
That's a logical conclusion, although I prefer trusting the man at hand 
(pun intended) if I haven't tested it myself to see how it works:

      ngtee cookie
              A copy of packet is diverted into netgraph, original packet is
              either accepted or continues with the next rule, depending on
              net.inet.ip.fw.one_pass sysctl variable.  See ng_ipfw(4) 
for more
              information on netgraph and ngtee actions.


Although... I've a question to Mr. Oleg:

> 2) use 'tee' rule with ng_ksocket & ng_netflow

      tee port
              Send a copy of packets matching this rule to the divert(4) 
socket
              bound to port port.  The search continues with the next rule.

how is it different from one_pass=0? Both tee and ngtee w/ one_pass=0 
continue with the next rule.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ACCC4F3.3030302>