If pf changes the routing table when sending packets, the kernel
authorbluhm <bluhm@openbsd.org>
Wed, 10 Feb 2021 18:28:06 +0000 (18:28 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 10 Feb 2021 18:28:06 +0000 (18:28 +0000)
commit1d3b3d6ee306456e17986bdc6a0006e0722a5a0a
tree717e9fa530492805b453f7c3e9cd233f258a6803
parenteeb63f91773bc08d45889d0fc4a9f398fc20973a
If pf changes the routing table when sending packets, the kernel
could get stuck in an endless recursion during TCP path MTU discovery.
Create a dynamic host route in ip_output() that can be used by
tcp_mtudisc() to store the MTU.
Reported by Peter Mueller and Sebastian Sturm
OK claudio@
sys/netinet/ip_output.c