All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roy Marples <roy@marples.name>
To: netdev@vger.kernel.org
Subject: recv(2), MSG_TRUNK and kernels older than 2.6.22
Date: Tue, 20 Jul 2010 09:26:43 +0100	[thread overview]
Message-ID: <4C455DC3.1050304@marples.name> (raw)

Hi

I would like to support all possible kernels I can and previously used a 
fixed buffer of size 256 to read from netlink sockets. This is now 
proving too small for some 64-bit kernels so I would like to use recv(2) 
with MSG_TRUNK to wor out the size. However, the man page says that this 
only works for 2.6.22 kernels or newer.

My question is, what is the behaviour of recv on older kernels where 
MSG_TRUNC is not supported? I would rather not use some arbitary size if 
at all possible.

Reply directly please as I'm not subscribed here.

Thanks

Roy

             reply	other threads:[~2010-07-20  8:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-20  8:26 Roy Marples [this message]
2010-07-20  8:54 ` recv(2), MSG_TRUNK and kernels older than 2.6.22 Eric Dumazet
2010-07-20  9:08   ` Roy Marples
2010-07-20  9:24     ` Eric Dumazet
2010-07-20 10:02       ` Eric Dumazet
2010-07-20 10:04         ` Roy Marples

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=4C455DC3.1050304@marples.name \
    --to=roy@marples.name \
    --cc=netdev@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.