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