diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index 072dc959d4ed27c3d130874485c3a94a4a2360e0..4c55dbc8ad9aacda3ad1afcea94f7b756d1b8d7f 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -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) {