sctputil.h (165220) | sctputil.h (166023) |
---|---|
1/*- 2 * Copyright (c) 2001-2006, Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 18 unchanged lines hidden (view full) --- 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31 32/* $KAME: sctputil.h,v 1.15 2005/03/06 16:04:19 itojun Exp $ */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2006, Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 18 unchanged lines hidden (view full) --- 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31 32/* $KAME: sctputil.h,v 1.15 2005/03/06 16:04:19 itojun Exp $ */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/netinet/sctputil.h 165220 2006-12-14 17:02:55Z rrs $"); | 35__FBSDID("$FreeBSD: head/sys/netinet/sctputil.h 166023 2007-01-15 15:12:10Z rrs $"); |
36#ifndef __sctputil_h__ 37#define __sctputil_h__ 38 39 40 41#if defined(_KERNEL) 42 43#ifdef SCTP_MBUF_LOGGING 44 45struct mbuf *sctp_m_free(struct mbuf *m); 46void sctp_m_freem(struct mbuf *m); 47 48#else 49#define sctp_m_free m_free 50#define sctp_m_freem m_freem 51#endif 52 53 | 36#ifndef __sctputil_h__ 37#define __sctputil_h__ 38 39 40 41#if defined(_KERNEL) 42 43#ifdef SCTP_MBUF_LOGGING 44 45struct mbuf *sctp_m_free(struct mbuf *m); 46void sctp_m_freem(struct mbuf *m); 47 48#else 49#define sctp_m_free m_free 50#define sctp_m_freem m_freem 51#endif 52 53 |
54#define sctp_m_copym m_copym 55 | |
56#define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id) 57 58 59/* 60 * Function prototypes 61 */ 62struct ifaddr *sctp_find_ifa_by_addr(struct sockaddr *sa); 63 --- 11 unchanged lines hidden (view full) --- 75 76int 77sctp_timer_stop(int, struct sctp_inpcb *, struct sctp_tcb *, 78 struct sctp_nets *, uint32_t); 79 80uint32_t sctp_calculate_sum(struct mbuf *, int32_t *, uint32_t); 81 82void | 54#define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id) 55 56 57/* 58 * Function prototypes 59 */ 60struct ifaddr *sctp_find_ifa_by_addr(struct sockaddr *sa); 61 --- 11 unchanged lines hidden (view full) --- 73 74int 75sctp_timer_stop(int, struct sctp_inpcb *, struct sctp_tcb *, 76 struct sctp_nets *, uint32_t); 77 78uint32_t sctp_calculate_sum(struct mbuf *, int32_t *, uint32_t); 79 80void |
83sctp_mtu_size_reset(struct sctp_inpcb *, struct sctp_association *, 84 u_long); | 81 sctp_mtu_size_reset(struct sctp_inpcb *, struct sctp_association *, uint32_t); |
85 86void 87sctp_add_to_readq(struct sctp_inpcb *inp, 88 struct sctp_tcb *stcb, 89 struct sctp_queued_to_read *control, 90 struct sockbuf *sb, 91 int end); 92 --- 222 unchanged lines hidden --- | 82 83void 84sctp_add_to_readq(struct sctp_inpcb *inp, 85 struct sctp_tcb *stcb, 86 struct sctp_queued_to_read *control, 87 struct sockbuf *sb, 88 int end); 89 --- 222 unchanged lines hidden --- |