From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Jones Subject: Re: concatenate udp payloads of multiple packet Date: Thu, 19 Apr 2012 11:11:39 -0700 Message-ID: <4F90555B.7070306@hp.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Arif Hossain Cc: netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org On 04/19/2012 07:32 AM, Arif Hossain wrote: > Thirdly I need to concatenate udp payloads of several packet to > improve bandwidth usage. how should i approach this? It isn't clear you can. An application using UDP is expecting message boundaries to be preserved. That is a fundamental part of the semantics of UDP. So if an application has sent three, 128 byte messages via UDP, the receiving side is expecting to receive three, 128 byte messages, not one 384 byte message. If the receiver can indeed deal with just one, 384 byte message, that is what the sending side should have sent in the first place. rick jones