aboutsummaryrefslogtreecommitdiff
path: root/utils/sctp/func_tests/test_1_to_1_rtoinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/sctp/func_tests/test_1_to_1_rtoinfo.c')
-rw-r--r--utils/sctp/func_tests/test_1_to_1_rtoinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/sctp/func_tests/test_1_to_1_rtoinfo.c b/utils/sctp/func_tests/test_1_to_1_rtoinfo.c
index cb46e3920..98e4ea185 100644
--- a/utils/sctp/func_tests/test_1_to_1_rtoinfo.c
+++ b/utils/sctp/func_tests/test_1_to_1_rtoinfo.c
@@ -52,6 +52,7 @@
#include <sys/uio.h>
#include <netinet/sctp.h>
#include <sctputil.h>
+#include "tst_kernel.h"
char *TCID = __FILE__;
int TST_TOTAL = 3;
@@ -66,6 +67,9 @@ main(void)
struct sctp_rtoinfo srtoinfo; /*setting the variables*/
struct sctp_rtoinfo grtoinfo; /*Getting the variables*/
+ if (tst_check_driver("sctp"))
+ tst_brkm(TCONF, tst_exit, "sctp driver not available");
+
sd = test_socket (PF_INET, SOCK_STREAM, IPPROTO_SCTP);
len = sizeof(struct sctp_rtoinfo);