#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2018 Petr Vorel # Copyright (c) 2017 Oracle and/or its affiliates. All Rights Reserved. # Author: Alexey Kodanev TST_NEEDS_TMPDIR=1 TST_SETUP=tst_ipsec_setup_vti TST_CLEANUP=tst_ipsec_cleanup TST_TESTFUNC=do_test . ipsec_lib.sh do_test() { local opts="-n $2 -N $2" local rand_opt="$(echo $2 | cut -d'R' -f2)" [ "$2" != "$rand_opt" ] && opts="-A $rand_opt" tst_netload -H $ip_rmt_tun -T sctp $opts -r $IPSEC_REQUESTS \ -S $ip_loc_tun -D $tst_vti } tst_run