File 5121-ssh-New-test-case-for-inet-raw-option.patch of Package erlang
From 10e8b00adc9bc36385dc29b16fc5992ead11268d Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 18 Nov 2020 15:11:25 +0100
Subject: [PATCH 1/3] ssh: New test case for inet raw-option
---
 lib/ssh/test/ssh_options_SUITE.erl | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/lib/ssh/test/ssh_options_SUITE.erl b/lib/ssh/test/ssh_options_SUITE.erl
index 39e2dd4c33..282a33e701 100644
--- a/lib/ssh/test/ssh_options_SUITE.erl
+++ b/lib/ssh/test/ssh_options_SUITE.erl
@@ -74,6 +74,7 @@
 	 hostkey_fingerprint_check_sha512/1,
 	 hostkey_fingerprint_check_list/1,
          save_accepted_host_option/1,
+         raw_option/1,
          config_file/1,
          config_file_modify_algorithms_order/1
 	]).
@@ -131,6 +132,7 @@ all() ->
      id_string_random_server,
      save_accepted_host_option,
      {group, hardening_tests},
+     raw_option,
      config_file,
      config_file_modify_algorithms_order
     ].
@@ -1390,6 +1392,12 @@ save_accepted_host_option(Config) ->
     {ok,_} = file:read_file(KnownHosts),
     ssh:stop_daemon(Pid).
 
+%%--------------------------------------------------------------------
+raw_option(_Config) ->
+    Opts = [{raw,1,2,3,4}],
+    #{socket_options := Opts} = ssh_options:handle_options(client, Opts),
+    #{socket_options := Opts} = ssh_options:handle_options(server, Opts).
+
 %%--------------------------------------------------------------------
 config_file(Config) ->
     %% First find common algs:
-- 
2.26.2