@@ -345,7 +345,7 @@ sctp_disposition_t sctp_sf_do_5_1B_init(struct net *net,
345345 * error, but since we don't have an association, we'll
346346 * just discard the packet.
347347 */
348- if (!sctp_chunk_length_valid (chunk , sizeof (sctp_init_chunk_t )))
348+ if (!sctp_chunk_length_valid (chunk , sizeof (struct sctp_init_chunk )))
349349 return sctp_sf_pdiscard (net , ep , asoc , type , arg , commands );
350350
351351 /* If the INIT is coming toward a closing socket, we'll send back
@@ -360,7 +360,7 @@ sctp_disposition_t sctp_sf_do_5_1B_init(struct net *net,
360360 /* Verify the INIT chunk before processing it. */
361361 err_chunk = NULL ;
362362 if (!sctp_verify_init (net , ep , asoc , chunk -> chunk_hdr -> type ,
363- (sctp_init_chunk_t * )chunk -> chunk_hdr , chunk ,
363+ (struct sctp_init_chunk * )chunk -> chunk_hdr , chunk ,
364364 & err_chunk )) {
365365 /* This chunk contains fatal error. It is to be discarded.
366366 * Send an ABORT, with causes if there is any.
@@ -405,7 +405,7 @@ sctp_disposition_t sctp_sf_do_5_1B_init(struct net *net,
405405
406406 /* The call, sctp_process_init(), can fail on memory allocation. */
407407 if (!sctp_process_init (new_asoc , chunk , sctp_source (chunk ),
408- (sctp_init_chunk_t * )chunk -> chunk_hdr ,
408+ (struct sctp_init_chunk * )chunk -> chunk_hdr ,
409409 GFP_ATOMIC ))
410410 goto nomem_init ;
411411
@@ -503,7 +503,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net,
503503 sctp_cmd_seq_t * commands )
504504{
505505 struct sctp_chunk * chunk = arg ;
506- sctp_init_chunk_t * initchunk ;
506+ struct sctp_init_chunk * initchunk ;
507507 struct sctp_chunk * err_chunk ;
508508 struct sctp_packet * packet ;
509509
@@ -527,7 +527,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net,
527527 /* Verify the INIT chunk before processing it. */
528528 err_chunk = NULL ;
529529 if (!sctp_verify_init (net , ep , asoc , chunk -> chunk_hdr -> type ,
530- (sctp_init_chunk_t * )chunk -> chunk_hdr , chunk ,
530+ (struct sctp_init_chunk * )chunk -> chunk_hdr , chunk ,
531531 & err_chunk )) {
532532
533533 sctp_error_t error = SCTP_ERROR_NO_RESOURCE ;
@@ -578,7 +578,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net,
578578 */
579579 chunk -> param_hdr .v = skb_pull (chunk -> skb , sizeof (struct sctp_inithdr ));
580580
581- initchunk = (sctp_init_chunk_t * ) chunk -> chunk_hdr ;
581+ initchunk = (struct sctp_init_chunk * ) chunk -> chunk_hdr ;
582582
583583 sctp_add_cmd_sf (commands , SCTP_CMD_PEER_INIT ,
584584 SCTP_PEER_INIT (initchunk ));
@@ -653,7 +653,7 @@ sctp_disposition_t sctp_sf_do_5_1D_ce(struct net *net,
653653{
654654 struct sctp_chunk * chunk = arg ;
655655 struct sctp_association * new_asoc ;
656- sctp_init_chunk_t * peer_init ;
656+ struct sctp_init_chunk * peer_init ;
657657 struct sctp_chunk * repl ;
658658 struct sctp_ulpevent * ev , * ai_ev = NULL ;
659659 int error = 0 ;
@@ -1450,7 +1450,7 @@ static sctp_disposition_t sctp_sf_do_unexpected_init(
14501450 * In this case, we generate a protocol violation since we have
14511451 * an association established.
14521452 */
1453- if (!sctp_chunk_length_valid (chunk , sizeof (sctp_init_chunk_t )))
1453+ if (!sctp_chunk_length_valid (chunk , sizeof (struct sctp_init_chunk )))
14541454 return sctp_sf_violation_chunklen (net , ep , asoc , type , arg ,
14551455 commands );
14561456 /* Grab the INIT header. */
@@ -1462,7 +1462,7 @@ static sctp_disposition_t sctp_sf_do_unexpected_init(
14621462 /* Verify the INIT chunk before processing it. */
14631463 err_chunk = NULL ;
14641464 if (!sctp_verify_init (net , ep , asoc , chunk -> chunk_hdr -> type ,
1465- (sctp_init_chunk_t * )chunk -> chunk_hdr , chunk ,
1465+ (struct sctp_init_chunk * )chunk -> chunk_hdr , chunk ,
14661466 & err_chunk )) {
14671467 /* This chunk contains fatal error. It is to be discarded.
14681468 * Send an ABORT, with causes if there is any.
@@ -1509,7 +1509,7 @@ static sctp_disposition_t sctp_sf_do_unexpected_init(
15091509 * place (local tie-tag and per tie-tag) within the state cookie.
15101510 */
15111511 if (!sctp_process_init (new_asoc , chunk , sctp_source (chunk ),
1512- (sctp_init_chunk_t * )chunk -> chunk_hdr ,
1512+ (struct sctp_init_chunk * )chunk -> chunk_hdr ,
15131513 GFP_ATOMIC ))
15141514 goto nomem ;
15151515
@@ -1730,7 +1730,7 @@ static sctp_disposition_t sctp_sf_do_dupcook_a(struct net *net,
17301730 sctp_cmd_seq_t * commands ,
17311731 struct sctp_association * new_asoc )
17321732{
1733- sctp_init_chunk_t * peer_init ;
1733+ struct sctp_init_chunk * peer_init ;
17341734 struct sctp_ulpevent * ev ;
17351735 struct sctp_chunk * repl ;
17361736 struct sctp_chunk * err ;
@@ -1845,7 +1845,7 @@ static sctp_disposition_t sctp_sf_do_dupcook_b(struct net *net,
18451845 sctp_cmd_seq_t * commands ,
18461846 struct sctp_association * new_asoc )
18471847{
1848- sctp_init_chunk_t * peer_init ;
1848+ struct sctp_init_chunk * peer_init ;
18491849 struct sctp_chunk * repl ;
18501850
18511851 /* new_asoc is a brand-new association, so these are not yet
@@ -6124,9 +6124,9 @@ static struct sctp_packet *sctp_ootb_pkt_new(struct net *net,
61246124 switch (chunk -> chunk_hdr -> type ) {
61256125 case SCTP_CID_INIT :
61266126 {
6127- sctp_init_chunk_t * init ;
6127+ struct sctp_init_chunk * init ;
61286128
6129- init = (sctp_init_chunk_t * )chunk -> chunk_hdr ;
6129+ init = (struct sctp_init_chunk * )chunk -> chunk_hdr ;
61306130 vtag = ntohl (init -> init_hdr .init_tag );
61316131 break ;
61326132 }
0 commit comments