How to limit the MTU on an UDP connection
-
Hi,
I have a PC application that streams data to an embedded device over an UDP connection.
However when JUMBO packets are enabled on the PC's network interface this does not work anymore. The PC send frames bigger than 1500bytes to the embedded device. The embedded device can't handle these JUMBO frames and discards these packets.I would like to always limit the size of the packets on the PC side to max 1500bytes whether JUMBO frames are enable or not.
I tried setting "PathMtuSocketOption" on QAbstractSocket::setSocketOption() but reading this option back with QAbstractSocket::socketOption() returns an invalid QVariant. So, I have no way of knowing if the "PathMtuSocketOption" I set, worked or not.
Am I doing something wrong or is this option not supported on Windows?
Tom