xref: /illumos-gate/usr/src/uts/common/inet/cc/cc_module.h (revision 533affcbc7fc4d0c8132976ea454aaa715fe2307)
1 /*
2  * Copyright (c) 2009-2010 Lawrence Stewart <lstewart@freebsd.org>
3  * All rights reserved.
4  * Copyright (c) 2017 by Delphix. 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
9  * at Community Foundation Silicon Valley.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  * 1. Redistributions of source code must retain the above copyright
15  *    notice, this list of conditions and the following disclaimer.
16  * 2. Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the
18  *    documentation and/or other materials provided with the distribution.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30  * SUCH DAMAGE.
31  *
32  * $FreeBSD$
33  */
34 
35 /*
36  * This software was first released in 2009 by Lawrence Stewart as part of the
37  * NewTCP research project at Swinburne University of Technology's Centre for
38  * Advanced Internet Architectures, Melbourne, Australia, which was made
39  * possible in part by a grant from the Cisco University Research Program Fund
40  * at Community Foundation Silicon Valley. More details are available at:
41  *   http://caia.swin.edu.au/urp/newtcp/
42  */
43 
44 #ifndef _NETINET_CC_MODULE_H_
45 #define	_NETINET_CC_MODULE_H_
46 
47 #define	CCV(ccv, what) (ccv)->ccvc.tcp->what
48 #define	CCSV(ccv, what) (ccv)->ccvc.tcp->tcp_tcps->what
49 #define	CCV_PROTO(ccv) (ccv)->ccvc.tcp
50 
51 #define	CC_ABC(ccv) (ccv)->ccvc.tcp->tcp_tcps->tcps_abc
52 #define	CC_ABC_L_VAR(ccv) (ccv)->ccvc.tcp->tcp_tcps->tcps_abc_l_var
53 
54 #define	TCPTV_SRTTBASE 0
55 
56 #endif /* _NETINET_CC_MODULE_H_ */
57