* Can netlink_recvmsg not truncate messages unless asked to?
@ 2007-04-13 18:04 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2007-04-13 18:04 UTC (permalink / raw)
To: netdev
Would it be feasible to make netlink_recvmsg() _not_ truncate message unless
it is asked to by having MSG_TRUNC passed to it?
Unless netlink data packets are limited to PAGE_SIZE or less, it's entirely
possible that the kernel can be in a situation where it can't guarantee to get
a buffer large enough to receive a packet larger than that.
What I was trying to do was use recvmsg with MSG_PEEK to grab the nlmsghdr,
and then using that to predict the size of the buffer I need. But that
doesn't work because a packet might contain multiple netlink messages.
David
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-13 18:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-13 18:04 Can netlink_recvmsg not truncate messages unless asked to? David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).