Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to limit the MTU on an UDP connection
Forum Updated to NodeBB v4.3 + New Features

How to limit the MTU on an UDP connection

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 266 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tmalfrere
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hobber
      Banned
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved