HomeFreeBSD

Don't overpromote values when calculating len in tcp_output().

Description

Don't overpromote values when calculating len in tcp_output().

sbavail() returns u_int and sendwin is a uint32_t. Therefore, min() (which
operates on two u_int values) is able to correctly calculate the minimum
of these two arguments.

Reported by: rrs
MFC after: 1 week
Sponsored by: Netflix

Details

Provenance
jtlAuthored on
Parents
rS320681: MFC r320163:
Branches
Unknown
Tags
Unknown