sctp.h (163953) | sctp.h (167598) |
---|---|
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. --- 16 unchanged lines hidden (view full) --- 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/* $KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $ */ 31 32#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. --- 16 unchanged lines hidden (view full) --- 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/* $KAME: sctp.h,v 1.18 2005/03/06 16:04:16 itojun Exp $ */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet/sctp.h 163953 2006-11-03 15:23:16Z rrs $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/sctp.h 167598 2007-03-15 11:27:14Z rrs $"); |
34 35#ifndef _NETINET_SCTP_H_ 36#define _NETINET_SCTP_H_ 37 38#include <sys/types.h> 39 40/* 41 * SCTP protocol - RFC2960. --- 110 unchanged lines hidden (view full) --- 152 153/* read only */ 154#define SCTP_GET_SNDBUF_USE 0x00001101 155#define SCTP_GET_STAT_LOG 0x00001103 156#define SCTP_GET_ASOC_ID_LIST 0x00001104 /* ro */ 157#define SCTP_PCB_STATUS 0x00001105 158#define SCTP_GET_NONCE_VALUES 0x00001106 159 | 34 35#ifndef _NETINET_SCTP_H_ 36#define _NETINET_SCTP_H_ 37 38#include <sys/types.h> 39 40/* 41 * SCTP protocol - RFC2960. --- 110 unchanged lines hidden (view full) --- 152 153/* read only */ 154#define SCTP_GET_SNDBUF_USE 0x00001101 155#define SCTP_GET_STAT_LOG 0x00001103 156#define SCTP_GET_ASOC_ID_LIST 0x00001104 /* ro */ 157#define SCTP_PCB_STATUS 0x00001105 158#define SCTP_GET_NONCE_VALUES 0x00001106 159 |
160/* Special hook for dynamically setting primary for all assoc's, 161 * this is a write only option that requires root privledge. 162 */ 163#define SCTP_SET_DYNAMIC_PRIMARY 0x00002001 |
|
160 | 164 |
165/* VRF (virtual router feature) and multi-VRF support 166 * options. VRF's provide splits within a router 167 * that give the views of multiple routers. A 168 * standard host, without VRF support, is just 169 * a single VRF. If VRF's are supported then 170 * the transport must be VRF aware. This means 171 * that every socket call coming in must be directed 172 * within the endpoint to one of the VRF's it belongs 173 * to. The endpoint, before binding, may select 174 * the "default" VRF it is in by using a set socket 175 * option with SCTP_VRF_ID. This will also 176 * get propegated to the default VRF. Once the 177 * endpoint binds an address then it CANNOT add 178 * additional VRF's to become a Multi-VRF endpoint. 179 * 180 * Before BINDING additional VRF's can be added with 181 * the SCTP_ADD_VRF_ID call or deleted with 182 * SCTP_DEL_VRF_ID. 183 * 184 * Associations are ALWAYS contained inside a single 185 * VRF. They cannot reside in two (or more) VRF's. Incoming 186 * packets, assuming the router is VRF aware, can always 187 * tell us what VRF they arrived on. A host not supporting 188 * any VRF's will find that the packets always arrived on the 189 * single VRF that the host has. 190 * 191 */ 192 193#define SCTP_VRF_ID 0x00003001 194#define SCTP_ADD_VRF_ID 0x00003002 195#define SCTP_GET_VRF_IDS 0x00003003 196#define SCTP_GET_ASOC_VRF 0x00003004 197#define SCTP_DEL_VRF_ID 0x00003005 |
|
161/* 162 * hidden implementation specific options these are NOT user visible (should 163 * move out of sctp.h) 164 */ 165/* sctp_bindx() flags as hidden socket options */ 166#define SCTP_BINDX_ADD_ADDR 0x00008001 167#define SCTP_BINDX_REM_ADDR 0x00008002 168/* Hidden socket option that gets the addresses */ --- 181 unchanged lines hidden --- | 198/* 199 * hidden implementation specific options these are NOT user visible (should 200 * move out of sctp.h) 201 */ 202/* sctp_bindx() flags as hidden socket options */ 203#define SCTP_BINDX_ADD_ADDR 0x00008001 204#define SCTP_BINDX_REM_ADDR 0x00008002 205/* Hidden socket option that gets the addresses */ --- 181 unchanged lines hidden --- |