sctp6_usrreq.c (237049) | sctp6_usrreq.c (237540) |
---|---|
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/netinet6/sctp6_usrreq.c 237049 2012-06-14 06:54:48Z tuexen $"); | 34__FBSDID("$FreeBSD: head/sys/netinet6/sctp6_usrreq.c 237540 2012-06-24 21:25:54Z tuexen $"); |
35 36#include <netinet/sctp_os.h> 37#include <sys/proc.h> 38#include <netinet/sctp_pcb.h> 39#include <netinet/sctp_header.h> 40#include <netinet/sctp_var.h> 41#if defined(INET6) 42#include <netinet6/sctp6_var.h> --- 52 unchanged lines hidden (view full) --- 95 uint16_t port = 0; 96 97 /* get the VRF and table id's */ 98 if (SCTP_GET_PKT_VRFID(*i_pak, vrf_id)) { 99 SCTP_RELEASE_PKT(*i_pak); 100 return (-1); 101 } 102 m = SCTP_HEADER_TO_CHAIN(*i_pak); | 35 36#include <netinet/sctp_os.h> 37#include <sys/proc.h> 38#include <netinet/sctp_pcb.h> 39#include <netinet/sctp_header.h> 40#include <netinet/sctp_var.h> 41#if defined(INET6) 42#include <netinet6/sctp6_var.h> --- 52 unchanged lines hidden (view full) --- 95 uint16_t port = 0; 96 97 /* get the VRF and table id's */ 98 if (SCTP_GET_PKT_VRFID(*i_pak, vrf_id)) { 99 SCTP_RELEASE_PKT(*i_pak); 100 return (-1); 101 } 102 m = SCTP_HEADER_TO_CHAIN(*i_pak); |
103 pkt_len = SCTP_HEADER_LEN((*i_pak)); | 103 pkt_len = SCTP_HEADER_LEN(*i_pak); |
104 | 104 |
105#ifdef SCTP_PACKET_LOGGING 106 sctp_packet_log(m, pkt_len); | 105#ifdef SCTP_PACKET_LOGGING 106 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LAST_PACKET_TRACING) { 107 sctp_packet_log(m); 108 } |
107#endif 108 if (m->m_flags & M_FLOWID) { 109 mflowid = m->m_pkthdr.flowid; 110 use_mflowid = 1; 111 } else { 112 mflowid = 0; 113 use_mflowid = 0; 114 } --- 1242 unchanged lines hidden --- | 109#endif 110 if (m->m_flags & M_FLOWID) { 111 mflowid = m->m_pkthdr.flowid; 112 use_mflowid = 1; 113 } else { 114 mflowid = 0; 115 use_mflowid = 0; 116 } --- 1242 unchanged lines hidden --- |