/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2009-2010 Lawrence Stewart <[email protected]>4* All rights reserved.5*6* This software was developed by Lawrence Stewart while studying at the Centre7* for Advanced Internet Architectures, Swinburne University of Technology, made8* possible in part by a grant from the Cisco University Research Program Fund9* at Community Foundation Silicon Valley.10*11* Redistribution and use in source and binary forms, with or without12* modification, are permitted provided that the following conditions13* are met:14* 1. Redistributions of source code must retain the above copyright15* notice, this list of conditions and the following disclaimer.16* 2. Redistributions in binary form must reproduce the above copyright17* notice, this list of conditions and the following disclaimer in the18* documentation and/or other materials provided with the distribution.19*20* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233/*34* This software was first released in 2009 by Lawrence Stewart as part of the35* NewTCP research project at Swinburne University of Technology's Centre for36* Advanced Internet Architectures, Melbourne, Australia, which was made37* possible in part by a grant from the Cisco University Research Program Fund38* at Community Foundation Silicon Valley. More details are available at:39* http://caia.swin.edu.au/urp/newtcp/40*/4142#ifndef _NETINET_CC_MODULE_H_43#define _NETINET_CC_MODULE_H_4445#define CCV(ccv, what) (ccv)->tp->what4647#define DECLARE_CC_MODULE(ccname, ccalgo) \48static moduledata_t cc_##ccname = { \49.name = #ccname, \50.evhand = cc_modevent, \51.priv = ccalgo \52}; \53DECLARE_MODULE(ccname, cc_##ccname, \54SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY)5556int cc_modevent(module_t mod, int type, void *data);5758#endif /* _NETINET_CC_MODULE_H_ */596061