sctp_os_bsd.h (211969) | sctp_os_bsd.h (215034) |
---|---|
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 211969 2010-08-29 18:50:30Z tuexen $"); | 31__FBSDID("$FreeBSD: head/sys/netinet/sctp_os_bsd.h 215034 2010-11-09 10:59:09Z brucec $"); |
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" --- 271 unchanged lines hidden (view full) --- 311 312#define SCTP_ALIGN_TO_END(m, len) if(m->m_flags & M_PKTHDR) { \ 313 MH_ALIGN(m, len); \ 314 } else if ((m->m_flags & M_EXT) == 0) { \ 315 M_ALIGN(m, len); \ 316 } 317 318/* We make it so if you have up to 4 threads | 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" --- 271 unchanged lines hidden (view full) --- 311 312#define SCTP_ALIGN_TO_END(m, len) if(m->m_flags & M_PKTHDR) { \ 313 MH_ALIGN(m, len); \ 314 } else if ((m->m_flags & M_EXT) == 0) { \ 315 M_ALIGN(m, len); \ 316 } 317 318/* We make it so if you have up to 4 threads |
319 * writting based on the default size of | 319 * writing based on the default size of |
320 * the packet log 65 k, that would be 321 * 4 16k packets before we would hit 322 * a problem. 323 */ 324#define SCTP_PKTLOG_WRITERS_NEED_LOCK 3 325 326/*************************/ 327/* MTU */ --- 20 unchanged lines hidden (view full) --- 348#define SCTP_BUF_EXTEND_REFCNT(m) (*m->m_ext.ref_cnt) 349/* return any buffer related flags, this is 350 * used beyond logging for apple only. 351 */ 352#define SCTP_BUF_GET_FLAGS(m) (m->m_flags) 353 354/* For BSD this just accesses the M_PKTHDR length 355 * so it operates on an mbuf with hdr flag. Other | 320 * the packet log 65 k, that would be 321 * 4 16k packets before we would hit 322 * a problem. 323 */ 324#define SCTP_PKTLOG_WRITERS_NEED_LOCK 3 325 326/*************************/ 327/* MTU */ --- 20 unchanged lines hidden (view full) --- 348#define SCTP_BUF_EXTEND_REFCNT(m) (*m->m_ext.ref_cnt) 349/* return any buffer related flags, this is 350 * used beyond logging for apple only. 351 */ 352#define SCTP_BUF_GET_FLAGS(m) (m->m_flags) 353 354/* For BSD this just accesses the M_PKTHDR length 355 * so it operates on an mbuf with hdr flag. Other |
356 * O/S's may have seperate packet header and mbuf | 356 * O/S's may have separate packet header and mbuf |
357 * chain pointers.. thus the macro. 358 */ 359#define SCTP_HEADER_TO_CHAIN(m) (m) 360#define SCTP_DETACH_HEADER_FROM_CHAIN(m) 361#define SCTP_HEADER_LEN(m) (m->m_pkthdr.len) 362#define SCTP_GET_HEADER_FOR_OUTPUT(o_pak) 0 363#define SCTP_RELEASE_HEADER(m) 364#define SCTP_RELEASE_PKT(m) sctp_m_freem(m) --- 139 unchanged lines hidden --- | 357 * chain pointers.. thus the macro. 358 */ 359#define SCTP_HEADER_TO_CHAIN(m) (m) 360#define SCTP_DETACH_HEADER_FROM_CHAIN(m) 361#define SCTP_HEADER_LEN(m) (m->m_pkthdr.len) 362#define SCTP_GET_HEADER_FOR_OUTPUT(o_pak) 0 363#define SCTP_RELEASE_HEADER(m) 364#define SCTP_RELEASE_PKT(m) sctp_m_freem(m) --- 139 unchanged lines hidden --- |