Page MenuHomeFreeBSD

ipsec: If no PMTU in hostcache assume it's equal to link's MTU
ClosedPublic

Authored by bag_semihalf.com on Sep 1 2021, 11:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 11:36 AM
Unknown Object (File)
Oct 3 2024, 9:05 AM
Unknown Object (File)
Oct 1 2024, 1:28 PM
Unknown Object (File)
Sep 28 2024, 6:31 AM
Unknown Object (File)
Sep 21 2024, 1:13 AM
Unknown Object (File)
Sep 13 2024, 9:34 PM
Unknown Object (File)
Sep 1 2024, 11:06 PM
Unknown Object (File)
Aug 28 2024, 4:50 AM

Details

Summary

If we fail to find to PMTU in hostcache, we assume it's equal
to link's MTU.

This patch prevents packets larger then link's MTU to be dropped
silently if there is no PMTU in hostcache.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/netipsec/ipsec_output.c
357

Why can't we reuse the previous case?

sys/netipsec/ipsec_output.c
357

In my option this way is clearer what the code does. And I don’t think we should call tcp_maxmtu when we don’t need it, because it searches through the routing table.

This revision was not accepted when it landed; it landed in state Needs Review.Sep 24 2021, 8:30 AM
This revision was automatically updated to reflect the committed changes.