Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc_htcp.c
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | else { | ||||
>> HTCP_SHIFT; | >> HTCP_SHIFT; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
htcp_cb_destroy(struct cc_var *ccv) | htcp_cb_destroy(struct cc_var *ccv) | ||||
{ | { | ||||
if (ccv->cc_data != NULL) | |||||
free(ccv->cc_data, M_HTCP); | free(ccv->cc_data, M_HTCP); | ||||
ccv->cc_data = NULL; | |||||
} | } | ||||
static int | static int | ||||
htcp_cb_init(struct cc_var *ccv) | htcp_cb_init(struct cc_var *ccv) | ||||
{ | { | ||||
struct htcp *htcp_data; | struct htcp *htcp_data; | ||||
htcp_data = malloc(sizeof(struct htcp), M_HTCP, M_NOWAIT); | htcp_data = malloc(sizeof(struct htcp), M_HTCP, M_NOWAIT); | ||||
▲ Show 20 Lines • Show All 278 Lines • Show Last 20 Lines |