Return-Path: Date: Tue, 6 Jul 2010 20:57:29 +0200 From: Andrew Lunn Message-ID: <20100706185729.GB18453@lunn.ch> References: <20100706175814.6927f767@rechenknecht> <1278431960-4636-2-git-send-email-an.langer@gmx.de> <20100706173956.GA9429@ritirata.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100706173956.GA9429@ritirata.org> Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Tue, Jul 06, 2010 at 07:39:56PM +0200, Antonio Quartulli wrote: > Hi all, Hi Andreas, > > > +#define FRAG_TIMEOUT 60000 /* purge frag list entrys after time in > > ms */ > > Why did you choose a so large timeout? Is there a particular reason for > that? > > I think that in 60 seconds an host could receive a very large amount of > "orphan" packets in case of a bad link causing memory problems. It will not cause memory problems. The linked list is limited to FRAG_BUFFER_SIZE (6) segments. Andrew