diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index 7a0a66134718838cc8f72e79ed8027e7fca14d64..3fb94854bfae16c6891db71114b762fbb101877f 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -3513,12 +3513,26 @@ static int check_sctp_pdapi_event(struct sctp_pdapi_event_expr *expr, if (check_u32_expr(expr->pdapi_indication, sctp_event->pdapi_indication, "sctp_pdapi_event.pdapi_indication", error)) return STATUS_ERR; +#if defined(linux) + if (expr->pdapi_stream->type != EXPR_ELLIPSIS) { + asprintf(error, "Linux doesn't support sctp_pdapi_event.pdapi_stream"); + return STATUS_ERR; + } +#else if (check_u32_expr(expr->pdapi_stream, sctp_event->pdapi_stream, "sctp_pdapi_event.pdapi_stream", error)) return STATUS_ERR; +#endif +#if defined(linux) + if (expr->pdapi_seq->type != EXPR_ELLIPSIS) { + asprintf(error, "Linux doesn't support sctp_pdapi_event.pdapi_seq"); + return STATUS_ERR; + } +#else if (check_u32_expr(expr->pdapi_seq, sctp_event->pdapi_seq, "sctp_pdapi_event.pdapi_seq", error)) return STATUS_ERR; +#endif if (check_u32_expr(expr->pdapi_assoc_id, sctp_event->pdapi_assoc_id, "sctp_pdapi_event.pdapi_assoc_id", error)) return STATUS_ERR;