sctp_timer.h revision 224641
1163953Srrs/*- 2169382Srrs * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3218319Srrs * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4218319Srrs * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5163953Srrs * 6163953Srrs * Redistribution and use in source and binary forms, with or without 7163953Srrs * modification, are permitted provided that the following conditions are met: 8163953Srrs * 9163953Srrs * a) Redistributions of source code must retain the above copyright notice, 10163953Srrs * this list of conditions and the following disclaimer. 11163953Srrs * 12163953Srrs * b) Redistributions in binary form must reproduce the above copyright 13163953Srrs * notice, this list of conditions and the following disclaimer in 14163953Srrs * the documentation and/or other materials provided with the distribution. 15163953Srrs * 16163953Srrs * c) Neither the name of Cisco Systems, Inc. nor the names of its 17163953Srrs * contributors may be used to endorse or promote products derived 18163953Srrs * from this software without specific prior written permission. 19163953Srrs * 20163953Srrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21163953Srrs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 22163953Srrs * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23163953Srrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24163953Srrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25163953Srrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26163953Srrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27163953Srrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28163953Srrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29163953Srrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30163953Srrs * THE POSSIBILITY OF SUCH DAMAGE. 31163953Srrs */ 32163953Srrs 33163953Srrs/* $KAME: sctp_timer.h,v 1.6 2005/03/06 16:04:18 itojun Exp $ */ 34163953Srrs#include <sys/cdefs.h> 35163953Srrs__FBSDID("$FreeBSD: head/sys/netinet/sctp_timer.h 224641 2011-08-03 20:21:00Z tuexen $"); 36163953Srrs 37163953Srrs#ifndef __sctp_timer_h__ 38163953Srrs#define __sctp_timer_h__ 39163953Srrs 40180387Srrs#if defined(_KERNEL) || defined(__Userspace__) 41163953Srrs 42170428Srrs#define SCTP_RTT_SHIFT 3 43170428Srrs#define SCTP_RTT_VAR_SHIFT 2 44170428Srrs 45163953Srrsstruct sctp_nets * 46163953Srrssctp_find_alternate_net(struct sctp_tcb *, 47171440Srrs struct sctp_nets *, int mode); 48163953Srrs 49163953Srrsint 50163953Srrssctp_threshold_management(struct sctp_inpcb *, struct sctp_tcb *, 51163953Srrs struct sctp_nets *, uint16_t); 52163953Srrs 53163953Srrsint 54163953Srrssctp_t3rxt_timer(struct sctp_inpcb *, struct sctp_tcb *, 55163953Srrs struct sctp_nets *); 56163953Srrsint 57163953Srrssctp_t1init_timer(struct sctp_inpcb *, struct sctp_tcb *, 58163953Srrs struct sctp_nets *); 59163953Srrsint 60163953Srrssctp_shutdown_timer(struct sctp_inpcb *, struct sctp_tcb *, 61163953Srrs struct sctp_nets *); 62163953Srrsint 63163953Srrssctp_heartbeat_timer(struct sctp_inpcb *, struct sctp_tcb *, 64224641Stuexen struct sctp_nets *); 65163953Srrs 66163953Srrsint 67163953Srrssctp_cookie_timer(struct sctp_inpcb *, struct sctp_tcb *, 68163953Srrs struct sctp_nets *); 69163953Srrs 70163953Srrsvoid 71163953Srrssctp_pathmtu_timer(struct sctp_inpcb *, struct sctp_tcb *, 72163953Srrs struct sctp_nets *); 73163953Srrs 74163953Srrsint 75163953Srrssctp_shutdownack_timer(struct sctp_inpcb *, struct sctp_tcb *, 76163953Srrs struct sctp_nets *); 77163953Srrsint 78163953Srrssctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, 79163953Srrs struct sctp_nets *net); 80163953Srrs 81163953Srrsint 82163953Srrssctp_asconf_timer(struct sctp_inpcb *, struct sctp_tcb *, 83163953Srrs struct sctp_nets *); 84163953Srrs 85172156Srrsvoid 86172091Srrssctp_delete_prim_timer(struct sctp_inpcb *, struct sctp_tcb *, 87172091Srrs struct sctp_nets *); 88172091Srrs 89163953Srrsvoid 90163953Srrssctp_autoclose_timer(struct sctp_inpcb *, struct sctp_tcb *, 91163953Srrs struct sctp_nets *net); 92163953Srrs 93163953Srrsvoid sctp_audit_retranmission_queue(struct sctp_association *); 94163953Srrs 95163953Srrsvoid sctp_iterator_timer(struct sctp_iterator *it); 96163953Srrs 97163953Srrs 98163953Srrs#endif 99163953Srrs#endif 100