All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick Jones <rick.jones2@hp.com>
To: Arif Hossain <aftnix@gmail.com>
Cc: netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org
Subject: Re: concatenate udp payloads of multiple packet
Date: Thu, 19 Apr 2012 11:11:39 -0700	[thread overview]
Message-ID: <4F90555B.7070306@hp.com> (raw)
In-Reply-To: <CAGuaRCt0Jmj4_prCZVvXi2oijOTprTqUntphjx_9cQqk-nqhCQ@mail.gmail.com>

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

  parent reply	other threads:[~2012-04-19 18:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 14:32 concatenate udp payloads of multiple packet Arif Hossain
2012-04-19 17:58 ` Jeff Haran
     [not found]   ` <CAGuaRCs6iYTL-Teci4GpOPD8Cm-6CbLUh2gYbDQMteA=nF29ug@mail.gmail.com>
     [not found]     ` <471DE477E2B1F549A58F3A14A27180BE0169BE@HQ-EX01.bytemobile.com>
2012-04-21  9:12       ` Arif Hossain
2012-04-23 14:38   ` Jan Engelhardt
2012-04-19 18:11 ` Rick Jones [this message]
2012-04-20 11:43   ` Arif Hossain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F90555B.7070306@hp.com \
    --to=rick.jones2@hp.com \
    --cc=aftnix@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.