apernet / tcp-brutal

GNU General Public License v3.0
619 stars 67 forks source link

fix: compatible with kernel 4.9 #5

Closed xdqi closed 10 months ago

tobyxdd commented 10 months ago

Thank you for your contribution! But I don't like the idea that PKT_INFO_SLOTS count is based on ICSK_CA_PRIV_SIZE. It was deliberately chosen to be 5 because we only want to look at the packet loss rate for the last 5 seconds, since that's something that can change frequently. Making it as long as possible doesn't make much sense here.

The rest looks awesome and I will merge it soon.