Applications which work over datagram protocols must perform their own
segmentation. It is not like doing a send over a stream protocol like
TCP, where you can use whatever length you want for send calls and
segmentation is done for the application.
If you look, this is what things like NFS using SUNRPC over UDP do.
They have a transmission unit for the data transfer and use that for
each "send".
A sendfile() with length >= 64K is the same as a sendmsg() with such a
length, which is defined as:
if (len > 0xFFFF)
return -EMSGSIZE;
So we could technically even return an error for this sendfile() over
UDP case.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html