apernet / tcp-brutal

GNU General Public License v3.0
676 stars 71 forks source link

fix: compatible with kernel 4.9 #5

Closed xdqi closed 1 year ago

tobyxdd commented 1 year 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.