sctputil.h (237049) | sctputil.h (237715) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/sctputil.h 237049 2012-06-14 06:54:48Z tuexen $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctputil.h 237715 2012-06-28 16:01:08Z tuexen $"); |
35 36#ifndef _NETINET_SCTP_UTIL_H_ 37#define _NETINET_SCTP_UTIL_H_ 38 39#if defined(_KERNEL) || defined(__Userspace__) 40 41#define SCTP_READ_LOCK_HELD 1 42#define SCTP_READ_LOCK_NOT_HELD 0 --- 138 unchanged lines hidden (view full) --- 181#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) 182 SCTP_UNUSED 183#endif 184); 185 186/* We abort responding to an IP packet for some reason */ 187void 188sctp_abort_association(struct sctp_inpcb *, struct sctp_tcb *, struct mbuf *, | 35 36#ifndef _NETINET_SCTP_UTIL_H_ 37#define _NETINET_SCTP_UTIL_H_ 38 39#if defined(_KERNEL) || defined(__Userspace__) 40 41#define SCTP_READ_LOCK_HELD 1 42#define SCTP_READ_LOCK_NOT_HELD 0 --- 138 unchanged lines hidden (view full) --- 181#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) 182 SCTP_UNUSED 183#endif 184); 185 186/* We abort responding to an IP packet for some reason */ 187void 188sctp_abort_association(struct sctp_inpcb *, struct sctp_tcb *, struct mbuf *, |
189 int, struct sctphdr *, struct mbuf *, | 189 int, struct sockaddr *, struct sockaddr *, 190 struct sctphdr *, struct mbuf *, |
190 uint8_t, uint32_t, 191 uint32_t, uint16_t); 192 193 194/* We choose to abort via user input */ 195void 196sctp_abort_an_association(struct sctp_inpcb *, struct sctp_tcb *, 197 struct mbuf *, int 198#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) 199 SCTP_UNUSED 200#endif 201); 202 203void | 191 uint8_t, uint32_t, 192 uint32_t, uint16_t); 193 194 195/* We choose to abort via user input */ 196void 197sctp_abort_an_association(struct sctp_inpcb *, struct sctp_tcb *, 198 struct mbuf *, int 199#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) 200 SCTP_UNUSED 201#endif 202); 203 204void |
204sctp_handle_ootb(struct mbuf *, int, int, struct sctphdr *, 205 struct sctp_inpcb *, | 205sctp_handle_ootb(struct mbuf *, int, int, 206 struct sockaddr *, struct sockaddr *, 207 struct sctphdr *, struct sctp_inpcb *, |
206 uint8_t, uint32_t, 207 uint32_t, uint16_t); 208 209int 210sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr, 211 int totaddr, int *error); 212 213struct sctp_tcb * --- 22 unchanged lines hidden (view full) --- 236 } \ 237 } \ 238} while (0) 239#endif 240 241int sctp_cmpaddr(struct sockaddr *, struct sockaddr *); 242 243void sctp_print_address(struct sockaddr *); | 208 uint8_t, uint32_t, 209 uint32_t, uint16_t); 210 211int 212sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr, 213 int totaddr, int *error); 214 215struct sctp_tcb * --- 22 unchanged lines hidden (view full) --- 238 } \ 239 } \ 240} while (0) 241#endif 242 243int sctp_cmpaddr(struct sockaddr *, struct sockaddr *); 244 245void sctp_print_address(struct sockaddr *); |
244void sctp_print_address_pkt(struct ip *, struct sctphdr *); | |
245 246int 247sctp_release_pr_sctp_chunk(struct sctp_tcb *, struct sctp_tmit_chunk *, 248 uint8_t, int 249#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) 250 SCTP_UNUSED 251#endif 252); --- 137 unchanged lines hidden --- | 246 247int 248sctp_release_pr_sctp_chunk(struct sctp_tcb *, struct sctp_tmit_chunk *, 249 uint8_t, int 250#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) 251 SCTP_UNUSED 252#endif 253); --- 137 unchanged lines hidden --- |