]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/torture: add torture_conn_set_sockopt() wrapper
authorRalph Boehme <slow@samba.org>
Thu, 15 Oct 2020 10:32:53 +0000 (12:32 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/proto.h
source3/torture/torture.c

index 18e686089ed2f147b92b255c8aa5dbe846daa24d..aab53605b29d5be985400386e8293511cf0349cc 100644 (file)
@@ -73,6 +73,7 @@ bool torture_close_connection(struct cli_state *c);
 bool torture_ioctl_test(int dummy);
 bool torture_chkpath_test(int dummy);
 NTSTATUS torture_setup_unix_extensions(struct cli_state *cli);
+void torture_conn_set_sockopt(struct cli_state *cli);
 
 /* The following definitions come from torture/utable.c  */
 
index 8ceaf831240292815579f67832198a0aeaf49f80..f2ef57b2253d04744a874ba7315a6c1bbc5d1bf4 100644 (file)
@@ -452,6 +452,10 @@ bool torture_close_connection(struct cli_state *c)
        return ret;
 }
 
+void torture_conn_set_sockopt(struct cli_state *cli)
+{
+       smbXcli_conn_set_sockopt(cli->conn, sockops);
+}
 
 /* check if the server produced the expected dos or nt error code */
 static bool check_both_error(int line, NTSTATUS status,