[sr-dev] [kamailio/kamailio] Path MTU discovery for IPv6 (PR #3141)
vanrein
notifications at github.com
Sun Jun 12 19:29:58 CEST 2022
@sergey-safarov You did not say how it "did not work as expected".
With what I've learnt, I was a bit surprised about the IPv4 original code, which says
```
optval= (pmtu_discovery) ? IP_PMTUDISC_DO : IP_PMTUDISC_DONT;
```
WIth `ptmu_discover != 0` this code sets the DF flag on all IPv4 traffic, and makes it behave like in IPv6 where this is implied. But I am not so sure if it picks up any ICMP messages *Fragmentation needed and DF set* are processed. An unconnected socket has no way of using that.
Had it been `IP_PMTUDISC_WANT`, like I used for IPv6, then at least any such messages would have been learnt by the OS for the route and influence the resend.
I did not want to change the existing code, but given that you do not experience a benefit, this might make sense. It is much less clear than in the case for IPv6, though, so I am uncertain.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3141#issuecomment-1153240930
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3141/c1153240930 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220612/3ac22ebc/attachment.htm>
More information about the sr-dev
mailing list