Deleted Added
full compact
sctp_os_bsd.h (170091) sctp_os_bsd.h (170138)
1/*-
2 * Copyright (c) 2006-2007, by 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.

--- 14 unchanged lines hidden (view full) ---

23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006-2007, by 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.

--- 14 unchanged lines hidden (view full) ---

23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/netinet/sctp_os_bsd.h 170091 2007-05-29 09:29:03Z rrs $");
31__FBSDID("$FreeBSD: head/sys/netinet/sctp_os_bsd.h 170138 2007-05-30 17:39:45Z rrs $");
32#ifndef __sctp_os_bsd_h__
33#define __sctp_os_bsd_h__
34/*
35 * includes
36 */
37#include "opt_ipsec.h"
38#include "opt_compat.h"
39#include "opt_inet6.h"

--- 215 unchanged lines hidden (view full) ---

255#define SCTP_BUF_RECVIF(m) (m->m_pkthdr.rcvif)
256#define SCTP_BUF_PREPEND M_PREPEND
257
258#define SCTP_ALIGN_TO_END(m, len) if(m->m_flags & M_PKTHDR) { \
259 MH_ALIGN(m, len); \
260 } else if ((m->m_flags & M_EXT) == 0) { \
261 M_ALIGN(m, len); \
262 }
32#ifndef __sctp_os_bsd_h__
33#define __sctp_os_bsd_h__
34/*
35 * includes
36 */
37#include "opt_ipsec.h"
38#include "opt_compat.h"
39#include "opt_inet6.h"

--- 215 unchanged lines hidden (view full) ---

255#define SCTP_BUF_RECVIF(m) (m->m_pkthdr.rcvif)
256#define SCTP_BUF_PREPEND M_PREPEND
257
258#define SCTP_ALIGN_TO_END(m, len) if(m->m_flags & M_PKTHDR) { \
259 MH_ALIGN(m, len); \
260 } else if ((m->m_flags & M_EXT) == 0) { \
261 M_ALIGN(m, len); \
262 }
263
264/* We make it so if you have up to 4 threads
265 * writting based on the default size of
266 * the packet log 65 k, that would be
267 * 4 16k packets before we would hit
268 * a problem.
269 */
270#define SCTP_PKTLOG_WRITERS_NEED_LOCK 3
271
263/*************************/
264/* MTU */
265/*************************/
266#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index) ((struct ifnet *)ifn)->if_mtu
267#define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, rt) ((rt != NULL) ? rt->rt_rmx.rmx_mtu : 0)
268#define SCTP_GATHER_MTU_FROM_INTFC(sctp_ifn) ((sctp_ifn->ifn_p != NULL) ? ((struct ifnet *)(sctp_ifn->ifn_p))->if_mtu : 0)
269#define SCTP_SET_MTU_OF_ROUTE(sa, rt, mtu) do { \
270 if (rt != NULL) \

--- 156 unchanged lines hidden ---
272/*************************/
273/* MTU */
274/*************************/
275#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index) ((struct ifnet *)ifn)->if_mtu
276#define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, rt) ((rt != NULL) ? rt->rt_rmx.rmx_mtu : 0)
277#define SCTP_GATHER_MTU_FROM_INTFC(sctp_ifn) ((sctp_ifn->ifn_p != NULL) ? ((struct ifnet *)(sctp_ifn->ifn_p))->if_mtu : 0)
278#define SCTP_SET_MTU_OF_ROUTE(sa, rt, mtu) do { \
279 if (rt != NULL) \

--- 156 unchanged lines hidden ---