On Fri, Jun 24, 2022 at 01:13:16PM +0200, Arne Schwabe wrote: > We could also just hardcode this value to 1420 but this approach does > not add much (complicated) code and it is a bit better than to have > a magic number to just be there. > [...] > +/** > + * Function to calculate the default MTU for Layer 3 VPNs. The function > + * assumes that UDP packets should be a maximum of \c MTU_ENCAP_DEFAULT > (1492) > + * with a AEAD cipher. This default comes out to be 1420. > + */
The result of the function is not always 1420. E.g. if options.ce.fragment == true. > +int > +frame_calculate_default_mtu(struct options *o); > + > + > /* > * EXTENDED_SOCKET_ERROR_CAPABILITY functions -- print extra error info > * on socket errors, such as PMTU size. As of 2003.05.11, only works _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
