1/*-
2 * Copyright (c) 2009-2010
3 * Swinburne University of Technology, Melbourne, Australia
4 * Copyright (c) 2010 Lawrence Stewart <lstewart@freebsd.org>
5 * Copyright (c) 2010-2011 The FreeBSD Foundation
6 * All rights reserved.
7 *
8 * This software was developed at the Centre for Advanced Internet
--- 38 unchanged lines hidden (view full) ---
47 * University of Technology's Centre for Advanced Internet Architectures,
48 * Melbourne, Australia, which was made possible in part by a grant from the
49 * Cisco University Research Program Fund at Community Foundation Silicon
50 * Valley. More details are available at:
51 * http://caia.swin.edu.au/urp/newtcp/
52 */
53
54#include <sys/cdefs.h>
55__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_hd.c 294535 2016-01-21 22:34:51Z glebius $");
56
57#include <sys/param.h>
58#include <sys/kernel.h>
59#include <sys/khelp.h>
60#include <sys/limits.h>
61#include <sys/malloc.h>
62#include <sys/module.h>
63#include <sys/queue.h>
64#include <sys/socket.h>
65#include <sys/socketvar.h>
66#include <sys/sysctl.h>
67#include <sys/systm.h>
68
69#include <net/vnet.h>
70
71#include <netinet/tcp.h>
72#include <netinet/tcp_seq.h>
73#include <netinet/tcp_timer.h>
74#include <netinet/tcp_var.h>
75#include <netinet/tcp_cc.h>
76#include <netinet/cc/cc_module.h>
77
78#include <netinet/khelp/h_ertt.h>
79
80#define CAST_PTR_INT(X) (*((int*)(X)))
81
82/* Largest possible number returned by random(). */
83#define RANDOM_MAX INT_MAX
--- 171 unchanged lines hidden ---
2 * Copyright (c) 2009-2010
3 * Swinburne University of Technology, Melbourne, Australia
4 * Copyright (c) 2010 Lawrence Stewart <lstewart@freebsd.org>
5 * Copyright (c) 2010-2011 The FreeBSD Foundation
6 * All rights reserved.
7 *
8 * This software was developed at the Centre for Advanced Internet
--- 38 unchanged lines hidden (view full) ---
47 * University of Technology's Centre for Advanced Internet Architectures,
48 * Melbourne, Australia, which was made possible in part by a grant from the
49 * Cisco University Research Program Fund at Community Foundation Silicon
50 * Valley. More details are available at:
51 * http://caia.swin.edu.au/urp/newtcp/
52 */
53
54#include <sys/cdefs.h>
55__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_hd.c 294535 2016-01-21 22:34:51Z glebius $");
56
57#include <sys/param.h>
58#include <sys/kernel.h>
59#include <sys/khelp.h>
60#include <sys/limits.h>
61#include <sys/malloc.h>
62#include <sys/module.h>
63#include <sys/queue.h>
64#include <sys/socket.h>
65#include <sys/socketvar.h>
66#include <sys/sysctl.h>
67#include <sys/systm.h>
68
69#include <net/vnet.h>
70
71#include <netinet/tcp.h>
72#include <netinet/tcp_seq.h>
73#include <netinet/tcp_timer.h>
74#include <netinet/tcp_var.h>
75#include <netinet/tcp_cc.h>
76#include <netinet/cc/cc_module.h>
77
78#include <netinet/khelp/h_ertt.h>
79
80#define CAST_PTR_INT(X) (*((int*)(X)))
81
82/* Largest possible number returned by random(). */
83#define RANDOM_MAX INT_MAX
--- 171 unchanged lines hidden ---