Make use of stats(3) in the TCP stack. This makes it possible to retrieve
per-connection statistical information such as receive window, RTT, or goodput,
using a newly added TCP_STATS getsockopt(3) option, and extract it using
stats_voistat_fetch(3) API.
This depends on https://reviews.freebsd.org/D20477, https://reviews.freebsd.org/D20116, and https://reviews.freebsd.org/D20324. Example tool using it is here: https://reviews.freebsd.org/D20656.
Sponsored By: Klara Inc, Netflix
Obtained from: Netflix