I am trying to modify the default congestion control algorithm in FreeBSD (NewReno) by creating a copy of the source file (cc_newreno.c
, located in /usr/src/sys/netinet/cc
) called cc_newreno_mod.c
and making changes to it.
Suppose I have made some modifications. How do I test them? Compiling the cc_newreno_mod.c
directly (using the built-in C compiler) results in multiple errors, some of which seem strange (for example netinet/cc/cc_module.h file not found
, although the file clearly is there).
Should I build a new Kernel? Will the module from the changed file be created automatically? Or am I totally wrong and I should take a different approach?