Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc.c
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
#include <netinet/tcp.h> | #include <netinet/tcp.h> | ||||
#include <netinet/tcp_seq.h> | #include <netinet/tcp_seq.h> | ||||
#include <netinet/tcp_var.h> | #include <netinet/tcp_var.h> | ||||
#include <netinet/tcp_log_buf.h> | #include <netinet/tcp_log_buf.h> | ||||
#include <netinet/tcp_hpts.h> | #include <netinet/tcp_hpts.h> | ||||
#include <netinet/cc/cc.h> | #include <netinet/cc/cc.h> | ||||
#include <netinet/cc/cc_module.h> | #include <netinet/cc/cc_module.h> | ||||
/* | |||||
* Have a sane default if no CC_DEFAULT is specified in the kernel config file. | |||||
*/ | |||||
#ifndef CC_DEFAULT | |||||
#define CC_DEFAULT "newreno" | |||||
#endif | |||||
MALLOC_DEFINE(M_CC_MEM, "CC Mem", "Congestion Control State memory"); | MALLOC_DEFINE(M_CC_MEM, "CC Mem", "Congestion Control State memory"); | ||||
/* | /* | ||||
* List of available cc algorithms on the current system. First element | * List of available cc algorithms on the current system. First element | ||||
* is used as the system default CC algorithm. | * is used as the system default CC algorithm. | ||||
*/ | */ | ||||
struct cc_head cc_list = STAILQ_HEAD_INITIALIZER(cc_list); | struct cc_head cc_list = STAILQ_HEAD_INITIALIZER(cc_list); | ||||
▲ Show 20 Lines • Show All 484 Lines • Show Last 20 Lines |