added SPA packet aging tests

This commit is contained in:
Michael Rash
2011-11-22 22:56:48 -05:00
parent 72a4353fd8
commit 9e884e9759
+27
View File
@@ -582,6 +582,33 @@ my @tests = (
'fw_rule_removed' => $NEW_RULE_REMOVED,
'fatal' => $NO
},
{
'category' => 'Rijndael SPA',
'subcategory' => 'client+server',
'detail' => 'packet aging (past) (tcp/22 ssh)',
'err_msg' => 'old SPA packet accepted',
'function' => \&spa_cycle,
'cmdline' => "$default_client_args --time-offset-minus 300s",
'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir $valgrind_str " .
"$fwknopdCmd $default_server_conf_args $intf_str",
'server_positive_output_matches' => [qr/SPA\sdata\stime\sdifference/],
'fw_rule_created' => $REQUIRE_NO_NEW_RULE,
'fatal' => $NO
},
{
'category' => 'Rijndael SPA',
'subcategory' => 'client+server',
'detail' => 'packet aging (future) (tcp/22 ssh)',
'err_msg' => 'future SPA packet accepted',
'function' => \&spa_cycle,
'cmdline' => "$default_client_args --time-offset-plus 300s",
'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir $valgrind_str " .
"$fwknopdCmd $default_server_conf_args $intf_str",
'server_positive_output_matches' => [qr/SPA\sdata\stime\sdifference/],
'fw_rule_created' => $REQUIRE_NO_NEW_RULE,
'fatal' => $NO
},
{
'category' => 'Rijndael SPA',
'subcategory' => 'client+server',