References: <1465388443-15484-1-git-send-email-steffan@...1856...> <1465388443-15484-2-git-send-email-steffan@...1856...> From: Arne Schwabe Message-ID: Date: Wed, 8 Jun 2016 14:50:34 +0200 MIME-Version: 1.0 In-Reply-To: <1465388443-15484-2-git-send-email-steffan@...1856...> Subject: Re: [Openvpn-devel] [PATCH 1/5] Don't limit max incoming message size based on c2->frame List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Steffan Karger , openvpn-devel@lists.sourceforge.net Am 08.06.16 um 14:20 schrieb Steffan Karger: > "Be conservative in what you send, be liberal in what you accept" > > When receiving packets, the real limitation of how much data we can accept > is the size of our internal buffers, not the maximum size we expect > incoming packets to have. > > I ran into this while working on cipher negotiation, which will need > separate bookkeeping for the required internal buffer size, and the > link/tun MTU. Basing this code on the buffer size instead of c2->frame > makes that easier. A nice side-effect of this change is that it > simplifies the code. > > This should also reduce the impact of using asymmetric tun/link MTU's, > such as in trac ticket #647. > > ACK I think this one should be safe. Arne