Skip to content
Snippets Groups Projects
Commit 97db08a1 authored by Hoelscher's avatar Hoelscher
Browse files

add sctp_reset_stream for getsockopt

parent 2a3db000
No related branches found
No related tags found
No related merge requests found
......@@ -3307,6 +3307,18 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
}
break;
}
#endif
#ifdef SCTP_RESET_STREAMS
case EXPR_SCTP_RESET_STREAMS:
live_optval = malloc(sizeof(struct sctp_reset_streams));
live_optlen = (socklen_t)sizeof(struct sctp_reset_streams);
if (get_sctp_assoc_t(val_expression->value.sctp_reset_streams->srs_assoc_id,
&((struct sctp_reset_streams *)live_optval)->srs_assoc_id,
error)) {
free(live_optval);
return STATUS_ERR;
}
break;
#endif
case EXPR_LIST:
s32_bracketed_arg(args, 3, &script_optval, error);
......@@ -3438,6 +3450,11 @@ static int syscall_getsockopt(struct state *state, struct syscall_spec *syscall,
case EXPR_SCTP_AUTHCHUNKS:
result = check_sctp_authchunks(val_expression->value.sctp_authchunks, live_optval, error);
break;
#endif
#ifdef SCTP_RESET_STREAMS
case EXPR_SCTP_RESET_STREAMS:
// SCTP_RESET_STREAMS should not be a successfull option
break;
#endif
case EXPR_LIST:
if (*(int*)live_optval != script_optval) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment