Update README.md

This commit is contained in:
MahnoKropotkinvich 2025-03-27 20:42:47 +08:00
parent 60637d9347
commit c9260b509c

View File

@ -2,12 +2,35 @@
The fastest as well as the most wicked TCP congestion control "algorithm". There shouldn't be too many people knowing this secret or the world will be ruined. The fastest as well as the most wicked TCP congestion control "algorithm". There shouldn't be too many people knowing this secret or the world will be ruined.
## Usage: <b>You need root privilege to run all following commands.</b>
## Build:
```bash ```bash
make make
insmod tcp_const.ko # Require root privilege insmod tcp_const.ko # Require root privilege
``` ```
## Prerequisites:
For Debian-based distros(Debian/Ubuntu/Linux Mint/Kali,etc):
```bash
apt install build-essential linux-headers-$(uname -r)
```
For Redhat distro(CentOS/RHEL/Fedora/openEuler,etc):
```bash
# If you don't have dnf, use yum instead
dnf groupinstall "Development Tools"
dnf in kernel-devel kernel-headers
```
For Arch Linux:
```bash
pacman -S base-devel linux-headers
```
For OpenSUSE:
```bash
zypper in make automake gcc gcc-c++ kernel-devel kernel-default-devel
```
## Troubleshooting: ## Troubleshooting:
If compilation failed and it said the function signature does not match, simply delete those two unnamed parameters in `static void const_main(struct sock *sk,u32,int,const struct rate_sample *rs)` If compilation failed and it said the function signature does not match, simply delete those two unnamed parameters in `static void const_main(struct sock *sk,u32,int,const struct rate_sample *rs)`