sctp_os_bsd.h (255160) | sctp_os_bsd.h (262763) |
---|---|
1/*- 2 * Copyright (c) 2006-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) 2006-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/sctp_os_bsd.h 255160 2013-09-02 22:48:41Z tuexen $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_os_bsd.h 262763 2014-03-05 01:17:47Z glebius $"); |
35 36#ifndef _NETINET_SCTP_OS_BSD_H_ 37#define _NETINET_SCTP_OS_BSD_H_ 38/* 39 * includes 40 */ 41#include "opt_ipsec.h" 42#include "opt_compat.h" --- 280 unchanged lines hidden (view full) --- 323 * a problem. 324 */ 325#define SCTP_PKTLOG_WRITERS_NEED_LOCK 3 326 327/*************************/ 328/* MTU */ 329/*************************/ 330#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, af) ((struct ifnet *)ifn)->if_mtu | 35 36#ifndef _NETINET_SCTP_OS_BSD_H_ 37#define _NETINET_SCTP_OS_BSD_H_ 38/* 39 * includes 40 */ 41#include "opt_ipsec.h" 42#include "opt_compat.h" --- 280 unchanged lines hidden (view full) --- 323 * a problem. 324 */ 325#define SCTP_PKTLOG_WRITERS_NEED_LOCK 3 326 327/*************************/ 328/* MTU */ 329/*************************/ 330#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, af) ((struct ifnet *)ifn)->if_mtu |
331#define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, rt) ((rt != NULL) ? rt->rt_rmx.rmx_mtu : 0) | 331#define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, rt) ((rt != NULL) ? rt->rt_mtu : 0) |
332#define SCTP_GATHER_MTU_FROM_INTFC(sctp_ifn) ((sctp_ifn->ifn_p != NULL) ? ((struct ifnet *)(sctp_ifn->ifn_p))->if_mtu : 0) 333#define SCTP_SET_MTU_OF_ROUTE(sa, rt, mtu) do { \ 334 if (rt != NULL) \ | 332#define SCTP_GATHER_MTU_FROM_INTFC(sctp_ifn) ((sctp_ifn->ifn_p != NULL) ? ((struct ifnet *)(sctp_ifn->ifn_p))->if_mtu : 0) 333#define SCTP_SET_MTU_OF_ROUTE(sa, rt, mtu) do { \ 334 if (rt != NULL) \ |
335 rt->rt_rmx.rmx_mtu = mtu; \ | 335 rt->rt_mtu = mtu; \ |
336 } while(0) 337 338/* (de-)register interface event notifications */ 339#define SCTP_REGISTER_INTERFACE(ifhandle, af) 340#define SCTP_DEREGISTER_INTERFACE(ifhandle, af) 341 342 343/*************************/ --- 165 unchanged lines hidden --- | 336 } while(0) 337 338/* (de-)register interface event notifications */ 339#define SCTP_REGISTER_INTERFACE(ifhandle, af) 340#define SCTP_DEREGISTER_INTERFACE(ifhandle, af) 341 342 343/*************************/ --- 165 unchanged lines hidden --- |