From 825f2b0d85f7e262fb8fc89f5a322e3e6c34c129 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Fri, 16 Feb 2018 19:36:07 +0100 Subject: [PATCH] xlat: provide fallback definitions for SCTP socket option constants Values for SCTP_GET_PEER_ADDRS_NUM_OLD, SCTP_GET_PEER_ADDRS_OLD, SCTP_GET_LOCAL_ADDRS_NUM_OLD, SCTP_GET_LOCAL_ADDRS_OLD are reconstructed from Linux commit v2.6.33-rc1~388^2~167^2~7. xlat/socksctpoptions.in: Add constant values. --- xlat/socksctpoptions.in | 122 ++++++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/xlat/socksctpoptions.in b/xlat/socksctpoptions.in index 460f005c..f785ca83 100644 --- a/xlat/socksctpoptions.in +++ b/xlat/socksctpoptions.in @@ -1,62 +1,62 @@ -SCTP_RTOINFO -SCTP_ASSOCINFO -SCTP_INITMSG -SCTP_NODELAY -SCTP_AUTOCLOSE -SCTP_SET_PEER_PRIMARY_ADDR -SCTP_PRIMARY_ADDR -SCTP_ADAPTATION_LAYER -SCTP_DISABLE_FRAGMENTS -SCTP_PEER_ADDR_PARAMS -SCTP_DEFAULT_SEND_PARAM -SCTP_EVENTS -SCTP_I_WANT_MAPPED_V4_ADDR -SCTP_MAXSEG -SCTP_STATUS -SCTP_GET_PEER_ADDR_INFO -SCTP_DELAYED_SACK -SCTP_CONTEXT -SCTP_FRAGMENT_INTERLEAVE -SCTP_PARTIAL_DELIVERY_POINT -SCTP_MAX_BURST -SCTP_AUTH_CHUNK -SCTP_HMAC_IDENT -SCTP_AUTH_KEY -SCTP_AUTH_ACTIVE_KEY -SCTP_AUTH_DELETE_KEY -SCTP_PEER_AUTH_CHUNKS -SCTP_LOCAL_AUTH_CHUNKS -SCTP_GET_ASSOC_NUMBER -SCTP_GET_ASSOC_ID_LIST -SCTP_AUTO_ASCONF -SCTP_PEER_ADDR_THLDS -SCTP_RECVRCVINFO -SCTP_RECVNXTINFO -SCTP_DEFAULT_SNDINFO +SCTP_RTOINFO 0 +SCTP_ASSOCINFO 1 +SCTP_INITMSG 2 +SCTP_NODELAY 3 +SCTP_AUTOCLOSE 4 +SCTP_SET_PEER_PRIMARY_ADDR 5 +SCTP_PRIMARY_ADDR 6 +SCTP_ADAPTATION_LAYER 7 +SCTP_DISABLE_FRAGMENTS 8 +SCTP_PEER_ADDR_PARAMS 9 +SCTP_DEFAULT_SEND_PARAM 10 +SCTP_EVENTS 11 +SCTP_I_WANT_MAPPED_V4_ADDR 12 +SCTP_MAXSEG 13 +SCTP_STATUS 14 +SCTP_GET_PEER_ADDR_INFO 15 +SCTP_DELAYED_SACK 16 +SCTP_CONTEXT 17 +SCTP_FRAGMENT_INTERLEAVE 18 +SCTP_PARTIAL_DELIVERY_POINT 19 +SCTP_MAX_BURST 20 +SCTP_AUTH_CHUNK 21 +SCTP_HMAC_IDENT 22 +SCTP_AUTH_KEY 23 +SCTP_AUTH_ACTIVE_KEY 24 +SCTP_AUTH_DELETE_KEY 25 +SCTP_PEER_AUTH_CHUNKS 26 +SCTP_LOCAL_AUTH_CHUNKS 27 +SCTP_GET_ASSOC_NUMBER 28 +SCTP_GET_ASSOC_ID_LIST 29 +SCTP_AUTO_ASCONF 30 +SCTP_PEER_ADDR_THLDS 31 +SCTP_RECVRCVINFO 32 +SCTP_RECVNXTINFO 33 +SCTP_DEFAULT_SNDINFO 34 /* linux specific things */ -SCTP_SOCKOPT_BINDX_ADD -SCTP_SOCKOPT_BINDX_REM -SCTP_SOCKOPT_PEELOFF -SCTP_GET_PEER_ADDRS_NUM_OLD -SCTP_GET_PEER_ADDRS_OLD -SCTP_GET_LOCAL_ADDRS_NUM_OLD -SCTP_GET_LOCAL_ADDRS_OLD -SCTP_SOCKOPT_CONNECTX_OLD -SCTP_GET_PEER_ADDRS -SCTP_GET_LOCAL_ADDRS -SCTP_SOCKOPT_CONNECTX -SCTP_SOCKOPT_CONNECTX3 -SCTP_GET_ASSOC_STATS -SCTP_PR_SUPPORTED -SCTP_DEFAULT_PRINFO -SCTP_PR_ASSOC_STATUS -SCTP_PR_STREAM_STATUS -SCTP_RECONFIG_SUPPORTED -SCTP_ENABLE_STREAM_RESET -SCTP_RESET_STREAMS -SCTP_RESET_ASSOC -SCTP_ADD_STREAMS -SCTP_SOCKOPT_PEELOFF_FLAGS -SCTP_STREAM_SCHEDULER -SCTP_STREAM_SCHEDULER_VALUE -SCTP_INTERLEAVING_SUPPORTED +SCTP_SOCKOPT_BINDX_ADD 100 +SCTP_SOCKOPT_BINDX_REM 101 +SCTP_SOCKOPT_PEELOFF 102 +SCTP_GET_PEER_ADDRS_NUM_OLD 103 +SCTP_GET_PEER_ADDRS_OLD 104 +SCTP_GET_LOCAL_ADDRS_NUM_OLD 105 +SCTP_GET_LOCAL_ADDRS_OLD 106 +SCTP_SOCKOPT_CONNECTX_OLD 107 +SCTP_GET_PEER_ADDRS 108 +SCTP_GET_LOCAL_ADDRS 109 +SCTP_SOCKOPT_CONNECTX 110 +SCTP_SOCKOPT_CONNECTX3 111 +SCTP_GET_ASSOC_STATS 112 +SCTP_PR_SUPPORTED 113 +SCTP_DEFAULT_PRINFO 114 +SCTP_PR_ASSOC_STATUS 115 +SCTP_PR_STREAM_STATUS 116 +SCTP_RECONFIG_SUPPORTED 117 +SCTP_ENABLE_STREAM_RESET 118 +SCTP_RESET_STREAMS 119 +SCTP_RESET_ASSOC 120 +SCTP_ADD_STREAMS 121 +SCTP_SOCKOPT_PEELOFF_FLAGS 122 +SCTP_STREAM_SCHEDULER 123 +SCTP_STREAM_SCHEDULER_VALUE 124 +SCTP_INTERLEAVING_SUPPORTED 125 -- 2.40.0