1/*-
2 * Copyright (c) 2008-2010 Lawrence Stewart <lstewart@freebsd.org>
3 * Copyright (c) 2010 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by Lawrence Stewart while studying at the Centre
7 * for Advanced Internet Architectures, Swinburne University of Technology, made
8 * possible in part by a grant from the Cisco University Research Program Fund
--- 32 unchanged lines hidden (view full) ---
41 * University of Technology's Centre for Advanced Internet Architectures,
42 * Melbourne, Australia, which was made possible in part by a grant from the
43 * Cisco University Research Program Fund at Community Foundation Silicon
44 * Valley. More details are available at:
45 * http://caia.swin.edu.au/urp/newtcp/
46 */
47
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_cubic.c 294535 2016-01-21 22:34:51Z glebius $");
50
51#include <sys/param.h>
52#include <sys/kernel.h>
53#include <sys/malloc.h>
54#include <sys/module.h>
55#include <sys/socket.h>
56#include <sys/socketvar.h>
57#include <sys/sysctl.h>
58#include <sys/systm.h>
59
60#include <net/vnet.h>
61
62#include <netinet/tcp.h>
63#include <netinet/tcp_seq.h>
64#include <netinet/tcp_timer.h>
65#include <netinet/tcp_var.h>
66#include <netinet/tcp_cc.h>
67#include <netinet/cc/cc_cubic.h>
68#include <netinet/cc/cc_module.h>
69
70static void cubic_ack_received(struct cc_var *ccv, uint16_t type);
71static void cubic_cb_destroy(struct cc_var *ccv);
72static int cubic_cb_init(struct cc_var *ccv);
73static void cubic_cong_signal(struct cc_var *ccv, uint32_t type);
74static void cubic_conn_init(struct cc_var *ccv);
--- 337 unchanged lines hidden ---
2 * Copyright (c) 2008-2010 Lawrence Stewart <lstewart@freebsd.org>
3 * Copyright (c) 2010 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by Lawrence Stewart while studying at the Centre
7 * for Advanced Internet Architectures, Swinburne University of Technology, made
8 * possible in part by a grant from the Cisco University Research Program Fund
--- 32 unchanged lines hidden (view full) ---
41 * University of Technology's Centre for Advanced Internet Architectures,
42 * Melbourne, Australia, which was made possible in part by a grant from the
43 * Cisco University Research Program Fund at Community Foundation Silicon
44 * Valley. More details are available at:
45 * http://caia.swin.edu.au/urp/newtcp/
46 */
47
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_cubic.c 294535 2016-01-21 22:34:51Z glebius $");
50
51#include <sys/param.h>
52#include <sys/kernel.h>
53#include <sys/malloc.h>
54#include <sys/module.h>
55#include <sys/socket.h>
56#include <sys/socketvar.h>
57#include <sys/sysctl.h>
58#include <sys/systm.h>
59
60#include <net/vnet.h>
61
62#include <netinet/tcp.h>
63#include <netinet/tcp_seq.h>
64#include <netinet/tcp_timer.h>
65#include <netinet/tcp_var.h>
66#include <netinet/tcp_cc.h>
67#include <netinet/cc/cc_cubic.h>
68#include <netinet/cc/cc_module.h>
69
70static void cubic_ack_received(struct cc_var *ccv, uint16_t type);
71static void cubic_cb_destroy(struct cc_var *ccv);
72static int cubic_cb_init(struct cc_var *ccv);
73static void cubic_cong_signal(struct cc_var *ccv, uint32_t type);
74static void cubic_conn_init(struct cc_var *ccv);
--- 337 unchanged lines hidden ---