<p></p>
Great summary!<br>
<br>
I only respond to what I think is incorrect.<br>
<br>
> 1. core option pmtu_discovery for IPv4<br>
>   - if MTU is found, UDP will be delivered and kernel will store the discovered MTU internally<br>
>   - further packets will use this value<br>
<br>
no, ip(7) says for IP_PMTUDISC_DO<br>
<br>
        It is the user's responsibility to packetize the data in<br>
        MTU-sized chunks and to do the retransmits if necessary.<br>
        The kernel will reject (with EMSGSIZE) datagrams that  are<br>
        bigger than the known path MTU.<br>
<br>
unlike what it says for IP_PMTUDISC_WANT<br>
<br>
        IP_PMTUDISC_WANT will fragment a datagram if needed<br>
        according to the path MTU, or will set the don't-fragment<br>
        flag otherwise.<br>
<br>
You can use _DO *if* you respond to EMSGSIZE, which Kamailio does<br>
not seem to be doing.  Otherwise, go for _WANT.<br>
<br>
> 3. suggestion in this PR for IPv6<br>
>   - use IPV6_PMTUDISC_WANT as socket option<br>
>   - will fragment a datagram if needed according to the path MTU for IPv6<br>
>   - probably could be set by adding a new core option<br>
<br>
Yes.  But I wonder if there could ever be a reason to use _DO.<br>
<br>
> 4. suggestion in this PR for IPv4<br>
>   - probably could be set by adding a new core option <br>
<br>
Yes.  And I do understand that deviation from the past needs an option for IPv4.<br>
<br>
> My suggestion would be add a new value **2** to the pmtu_discovery core parameter, which sets then the _WANT socket option for IPv4 and IPv6.<br>
<br>
That sounds like a good idea.<br>
<br>
Thanks for helping to chew through this tough matter :)<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3141#issuecomment-1221504222">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOST7D2ADPFPCWA7CDV2HW3JANCNFSM5YP6JGMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZORUC25QRFAQN52I5DV2HW3JA5CNFSM5YP6JGMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJDHKZXQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3141/c1221504222</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3141#issuecomment-1221504222",
"url": "https://github.com/kamailio/kamailio/pull/3141#issuecomment-1221504222",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>