How to add a C file and Enable it in Linux Kernel?
I would like to know how would you enable the Congestion Control Algorithm correctly (lets call it Tcp_quic or quic).
My code is almost exactly like the tcp_veno.c file. Just the algorithm in the tcp_veno_cong_avoid() function changed.
I would like to attached the code on here, but I got an upload error. I would post it as well, but it is pretty long.
I have successfully compile the Linux Kernel with the C file (in the directory linux-3.4-rc7\net\ipv4\tcp_quic.c)
I just need to enable it, so I can use my algorithm and add it to the Kernel.
I know that most people said that you should not mess with the Kernel, but it is something I would like to try.
The code below is how I should be able to enable the Congestion Control Algorithm.
echo quic > /proc/sys/net/ipv4/tcp_congestion_control
This code works for vegas, cubic, and veno because they are in the Linux Kernel.
Is there another file or something that I need to edit to make this change?
Oh and I get an error when I put the code above in the terminal:
bash: echo: write error: No such file or directory