Assert that tcp_timer_rexmt() uses IPv4 inpcb.
authorbluhm <bluhm@openbsd.org>
Sat, 27 Jan 2024 21:35:13 +0000 (21:35 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 27 Jan 2024 21:35:13 +0000 (21:35 +0000)
commit8f2135b8f49acbfacb5d289f8b1ad40ed666716b
treeb339a7fe5a2fcfd44748a42606058431d78130ac
parent82b5c162c3d73da0a2c548b97b7f6189edfba2e7
Assert that tcp_timer_rexmt() uses IPv4 inpcb.

in_pcbnotifyall() must be called with IPv4 inpcb only.  Comment why
this is the case and verify it with kassert.  This assures that
inp_faddr is a valid address.

OK mvs@
sys/netinet/tcp_timer.c