diff options
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/constants.h | 4 | ||||
-rw-r--r-- | include/net/sctp/sm.h | 1 | ||||
-rw-r--r-- | include/net/sctp/structs.h | 8 |
3 files changed, 12 insertions, 1 deletions
diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h index 777118f06dba..da8354e8e33c 100644 --- a/include/net/sctp/constants.h +++ b/include/net/sctp/constants.h | |||
@@ -183,7 +183,9 @@ typedef enum { | |||
183 | SCTP_IERROR_NO_DATA, | 183 | SCTP_IERROR_NO_DATA, |
184 | SCTP_IERROR_BAD_STREAM, | 184 | SCTP_IERROR_BAD_STREAM, |
185 | SCTP_IERROR_BAD_PORTS, | 185 | SCTP_IERROR_BAD_PORTS, |
186 | 186 | SCTP_IERROR_AUTH_BAD_HMAC, | |
187 | SCTP_IERROR_AUTH_BAD_KEYID, | ||
188 | SCTP_IERROR_PROTO_VIOLATION, | ||
187 | } sctp_ierror_t; | 189 | } sctp_ierror_t; |
188 | 190 | ||
189 | 191 | ||
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index 148cdb4b9606..bf2f5ed69c15 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
@@ -143,6 +143,7 @@ sctp_state_fn_t sctp_sf_do_asconf_ack; | |||
143 | sctp_state_fn_t sctp_sf_do_9_2_reshutack; | 143 | sctp_state_fn_t sctp_sf_do_9_2_reshutack; |
144 | sctp_state_fn_t sctp_sf_eat_fwd_tsn; | 144 | sctp_state_fn_t sctp_sf_eat_fwd_tsn; |
145 | sctp_state_fn_t sctp_sf_eat_fwd_tsn_fast; | 145 | sctp_state_fn_t sctp_sf_eat_fwd_tsn_fast; |
146 | sctp_state_fn_t sctp_sf_eat_auth; | ||
146 | 147 | ||
147 | /* Prototypes for primitive event state functions. */ | 148 | /* Prototypes for primitive event state functions. */ |
148 | sctp_state_fn_t sctp_sf_do_prm_asoc; | 149 | sctp_state_fn_t sctp_sf_do_prm_asoc; |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 31841c3a7fe8..47e54f8e2b65 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -724,6 +724,13 @@ struct sctp_chunk { | |||
724 | */ | 724 | */ |
725 | struct sctp_transport *transport; | 725 | struct sctp_transport *transport; |
726 | 726 | ||
727 | /* SCTP-AUTH: For the special case inbound processing of COOKIE-ECHO | ||
728 | * we need save a pointer to the AUTH chunk, since the SCTP-AUTH | ||
729 | * spec violates the principle premis that all chunks are processed | ||
730 | * in order. | ||
731 | */ | ||
732 | struct sk_buff *auth_chunk; | ||
733 | |||
727 | __u8 rtt_in_progress; /* Is this chunk used for RTT calculation? */ | 734 | __u8 rtt_in_progress; /* Is this chunk used for RTT calculation? */ |
728 | __u8 resent; /* Has this chunk ever been retransmitted. */ | 735 | __u8 resent; /* Has this chunk ever been retransmitted. */ |
729 | __u8 has_tsn; /* Does this chunk have a TSN yet? */ | 736 | __u8 has_tsn; /* Does this chunk have a TSN yet? */ |
@@ -1067,6 +1074,7 @@ void sctp_inq_init(struct sctp_inq *); | |||
1067 | void sctp_inq_free(struct sctp_inq *); | 1074 | void sctp_inq_free(struct sctp_inq *); |
1068 | void sctp_inq_push(struct sctp_inq *, struct sctp_chunk *packet); | 1075 | void sctp_inq_push(struct sctp_inq *, struct sctp_chunk *packet); |
1069 | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *); | 1076 | struct sctp_chunk *sctp_inq_pop(struct sctp_inq *); |
1077 | struct sctp_chunkhdr *sctp_inq_peek(struct sctp_inq *); | ||
1070 | void sctp_inq_set_th_handler(struct sctp_inq *, work_func_t); | 1078 | void sctp_inq_set_th_handler(struct sctp_inq *, work_func_t); |
1071 | 1079 | ||
1072 | /* This is the structure we use to hold outbound chunks. You push | 1080 | /* This is the structure we use to hold outbound chunks. You push |