sctp_error_cause
int sctp_size = sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr) + sizeof(struct sctp_error_cause);
ip_size = ip_size - sizeof(struct sctp_error_cause);
sctp_size = sctp_size - sizeof(struct sctp_error_cause);
struct sctp_error_cause* error_cause = (struct sctp_error_cause *) ((char *) chunk_hdr + sizeof(*chunk_hdr));
error_cause->length = htons(sizeof(struct sctp_error_cause));
chunk_hdr->chunk_length = htons(sizeof(*chunk_hdr) + sizeof(struct sctp_error_cause));
struct sctp_error_cause cause; /* code=SCTP_CAUSE_INVALID_STREAM */
struct sctp_error_cause cause; /* code=SCTP_CAUSE_MISSING_PARAM */
struct sctp_error_cause cause; /* code=SCTP_CAUSE_STALE_COOKIE */
struct sctp_error_cause cause; /* code=SCTP_CAUSE_OUT_OF_RESOURCES */
struct sctp_error_cause cause; /* code=SCTP_CAUSE_UNRESOLVABLE_ADDR */
struct sctp_error_cause cause; /* code=SCTP_CAUSE_UNRECOG_CHUNK */
struct sctp_error_cause cause; /* code=SCTP_CAUSE_NO_USER_DATA */
struct sctp_error_cause cause; /* code=SCTP_CAUSE_UNSUPPORTED_HMACID */
struct sctp_error_cause *error;
cause_length = sizeof(struct sctp_error_cause) + tlv_length;
error = (struct sctp_error_cause *)(aph + 1);
struct sctp_error_cause *eh;
eh = (struct sctp_error_cause *)(aph + 1);
if (htons(eh->length) + sizeof(struct sctp_error_cause) >
struct sctp_error_cause *cause;
cause = (struct sctp_error_cause *)((caddr_t)ch +
while (remaining_length >= sizeof(struct sctp_error_cause)) {
if (cause_length >= sizeof(struct sctp_error_cause) + sizeof(struct sctp_paramhdr)) {
cause = (struct sctp_error_cause *)((caddr_t)cause + adjust);
if (len >= sizeof(struct sctp_chunkhdr) + sizeof(struct sctp_error_cause)) {
struct sctp_error_cause *cause;
cause = (struct sctp_error_cause *)(abort + 1);