Jump to content

Talk:Path MTU Discovery

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

third paragraph

[edit]

In the third paragraph you can read:

"Conversely, if PMTUD finds that the path allows a smaller MTU than what is possible on the lower"

IMHO that's wrong, it shoud say:

"Conversely, if PMTUD finds that the path allows a larger MTU than what is possible on the lower"

Furthermore, the whole paragraph is a bit confusing, so I propose to change it if you agree with me.

Greets! —Preceding unsigned comment added by 83.37.187.250 (talkcontribs)

SIOCGIFMTU

[edit]

Would it make sense to mention the fact that it is possible to retreive the size of the MTU on a socket using the ioctl() command as in[1]:

       struct ifreq ifr;
       memset(&ifr, 0, sizeof(ifr));
       strcpy(ifr.ifr_name, "eth0");
       if(ioctl(sock, SIOCGIFMTU, &ifr) == 0)
       {
           int mtu_size = ifr.ifr_mtu;
           ...
       }

Alexis Wilke (talk) 09:37, 30 May 2018 (UTC)[reply]

References