1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/sctp/src/netinet/sctp_timer.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,107 @@ 1.4 +/*- 1.5 + * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 1.6 + * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 1.7 + * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 1.8 + * 1.9 + * Redistribution and use in source and binary forms, with or without 1.10 + * modification, are permitted provided that the following conditions are met: 1.11 + * 1.12 + * a) Redistributions of source code must retain the above copyright notice, 1.13 + * this list of conditions and the following disclaimer. 1.14 + * 1.15 + * b) Redistributions in binary form must reproduce the above copyright 1.16 + * notice, this list of conditions and the following disclaimer in 1.17 + * the documentation and/or other materials provided with the distribution. 1.18 + * 1.19 + * c) Neither the name of Cisco Systems, Inc. nor the names of its 1.20 + * contributors may be used to endorse or promote products derived 1.21 + * from this software without specific prior written permission. 1.22 + * 1.23 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1.24 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 1.25 + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1.26 + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 1.27 + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1.28 + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1.29 + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1.30 + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1.31 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1.32 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 1.33 + * THE POSSIBILITY OF SUCH DAMAGE. 1.34 + */ 1.35 + 1.36 +#ifdef __FreeBSD__ 1.37 +#include <sys/cdefs.h> 1.38 +__FBSDID("$FreeBSD: head/sys/netinet/sctp_timer.h 235828 2012-05-23 11:26:28Z tuexen $"); 1.39 +#endif 1.40 + 1.41 +#ifndef _NETINET_SCTP_TIMER_H_ 1.42 +#define _NETINET_SCTP_TIMER_H_ 1.43 + 1.44 +#if defined(_KERNEL) || defined(__Userspace__) 1.45 + 1.46 +#define SCTP_RTT_SHIFT 3 1.47 +#define SCTP_RTT_VAR_SHIFT 2 1.48 + 1.49 +struct sctp_nets * 1.50 +sctp_find_alternate_net(struct sctp_tcb *, 1.51 + struct sctp_nets *, int mode); 1.52 + 1.53 +int 1.54 +sctp_threshold_management(struct sctp_inpcb *, struct sctp_tcb *, 1.55 + struct sctp_nets *, uint16_t); 1.56 + 1.57 +int 1.58 +sctp_t3rxt_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.59 + struct sctp_nets *); 1.60 +int 1.61 +sctp_t1init_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.62 + struct sctp_nets *); 1.63 +int 1.64 +sctp_shutdown_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.65 + struct sctp_nets *); 1.66 +int 1.67 +sctp_heartbeat_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.68 + struct sctp_nets *); 1.69 + 1.70 +int 1.71 +sctp_cookie_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.72 + struct sctp_nets *); 1.73 + 1.74 +void 1.75 +sctp_pathmtu_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.76 + struct sctp_nets *); 1.77 + 1.78 +int 1.79 +sctp_shutdownack_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.80 + struct sctp_nets *); 1.81 +int 1.82 +sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, 1.83 + struct sctp_nets *net); 1.84 + 1.85 +int 1.86 +sctp_asconf_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.87 + struct sctp_nets *); 1.88 + 1.89 +void 1.90 +sctp_delete_prim_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.91 + struct sctp_nets *); 1.92 + 1.93 +void 1.94 +sctp_autoclose_timer(struct sctp_inpcb *, struct sctp_tcb *, 1.95 + struct sctp_nets *net); 1.96 + 1.97 +void sctp_audit_retranmission_queue(struct sctp_association *); 1.98 + 1.99 +void sctp_iterator_timer(struct sctp_iterator *it); 1.100 + 1.101 +#if defined(__APPLE__) 1.102 +#if defined(APPLE_LEOPARD) || defined(APPLE_SNOWLEOPARD) || defined(APPLE_LION) || defined(APPLE_MOUNTAINLION) 1.103 +void sctp_slowtimo(void); 1.104 +#else 1.105 +void sctp_gc(struct inpcbinfo *); 1.106 +#endif 1.107 +#endif 1.108 + 1.109 +#endif 1.110 +#endif