On Linux, you can change the UDP buffer size (e.g. to 26214400) by (as root):
sysctl -w net.core.rmem_max=26214400
The default buffer size on Linux is
You can also make it permanent by adding this line to
rmem_max controls the maximum socket buffer size that can be allocated. The maximum sizes for socket buffers declared via the
SO_SNDBUF and SO_RCVBUF mechanisms are limited by the values in the
“rmem_max the maximum receive socket buffer size in bytes” – ref.