From c9260b509cf170d505c6d83cc58ef7bd26f3d883 Mon Sep 17 00:00:00 2001 From: MahnoKropotkinvich Date: Thu, 27 Mar 2025 20:42:47 +0800 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ad4ae0..04a6543 100644 --- a/README.md +++ b/README.md @@ -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. -## Usage: +You need root privilege to run all following commands. + +## Build: ```bash make 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: 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)`