@@ -247,7 +247,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
247247 chunksize += SCTP_PAD4 (SCTP_SAT_LEN (num_types ));
248248 chunksize += sizeof (ecap_param );
249249
250- if (asoc -> prsctp_enable )
250+ if (asoc -> ep -> prsctp_enable )
251251 chunksize += sizeof (prsctp_param );
252252
253253 /* ADDIP: Section 4.2.7:
@@ -261,15 +261,15 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
261261 num_ext += 2 ;
262262 }
263263
264- if (asoc -> reconf_enable ) {
264+ if (asoc -> ep -> reconf_enable ) {
265265 extensions [num_ext ] = SCTP_CID_RECONF ;
266266 num_ext += 1 ;
267267 }
268268
269269 if (sp -> adaptation_ind )
270270 chunksize += sizeof (aiparam );
271271
272- if (sp -> strm_interleave ) {
272+ if (asoc -> ep -> intl_enable ) {
273273 extensions [num_ext ] = SCTP_CID_I_DATA ;
274274 num_ext += 1 ;
275275 }
@@ -348,7 +348,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
348348 sctp_addto_param (retval , num_ext , extensions );
349349 }
350350
351- if (asoc -> prsctp_enable )
351+ if (asoc -> ep -> prsctp_enable )
352352 sctp_addto_chunk (retval , sizeof (prsctp_param ), & prsctp_param );
353353
354354 if (sp -> adaptation_ind ) {
@@ -438,7 +438,7 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc,
438438 if (sp -> adaptation_ind )
439439 chunksize += sizeof (aiparam );
440440
441- if (asoc -> intl_enable ) {
441+ if (asoc -> peer . intl_capable ) {
442442 extensions [num_ext ] = SCTP_CID_I_DATA ;
443443 num_ext += 1 ;
444444 }
@@ -2007,12 +2007,11 @@ static void sctp_process_ext_param(struct sctp_association *asoc,
20072007 for (i = 0 ; i < num_ext ; i ++ ) {
20082008 switch (param .ext -> chunks [i ]) {
20092009 case SCTP_CID_RECONF :
2010- if (asoc -> reconf_enable &&
2011- !asoc -> peer .reconf_capable )
2010+ if (asoc -> ep -> reconf_enable )
20122011 asoc -> peer .reconf_capable = 1 ;
20132012 break ;
20142013 case SCTP_CID_FWD_TSN :
2015- if (asoc -> prsctp_enable && ! asoc -> peer . prsctp_capable )
2014+ if (asoc -> ep -> prsctp_enable )
20162015 asoc -> peer .prsctp_capable = 1 ;
20172016 break ;
20182017 case SCTP_CID_AUTH :
@@ -2028,8 +2027,8 @@ static void sctp_process_ext_param(struct sctp_association *asoc,
20282027 asoc -> peer .asconf_capable = 1 ;
20292028 break ;
20302029 case SCTP_CID_I_DATA :
2031- if (sctp_sk ( asoc -> base . sk ) -> strm_interleave )
2032- asoc -> intl_enable = 1 ;
2030+ if (asoc -> ep -> intl_enable )
2031+ asoc -> peer . intl_capable = 1 ;
20332032 break ;
20342033 default :
20352034 break ;
@@ -2637,7 +2636,7 @@ static int sctp_process_param(struct sctp_association *asoc,
26372636 break ;
26382637
26392638 case SCTP_PARAM_FWD_TSN_SUPPORT :
2640- if (asoc -> prsctp_enable ) {
2639+ if (asoc -> ep -> prsctp_enable ) {
26412640 asoc -> peer .prsctp_capable = 1 ;
26422641 break ;
26432642 }
0 commit comments