Right now majority of lib mode functional tests enable
library mode with '-w N' option.
It worked till recently, as legacy mode didn't support replay window.
Now it changed.
To fix - use '-l' option to enable library mode explicitly.
Fixes:
929784452094 ("examples/ipsec-secgw: add scripts for functional test")
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
cat ${SGW_CFG_FILE}
}
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_3descbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_3descbc_sha1_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/trs_3descbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_aescbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_aescbc_sha1_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/trs_aescbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_aesctr_sha1_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_aesctr_sha1_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/trs_aesctr_sha1_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_aesgcm_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/trs_aesgcm_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/trs_aesgcm_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_3descbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_3descbc_sha1_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/tun_3descbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_aescbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_aescbc_sha1_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/tun_aescbc_sha1_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_aesctr_sha1_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_aesctr_sha1_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/tun_aesctr_sha1_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_aesgcm_common_defs.sh
-SGW_CMD_XPRM='-w 300'
+SGW_CMD_XPRM='-w 300 -l'
config_remote_xfrm()
{
. ${DIR}/tun_aesgcm_esn_defs.sh
-SGW_CMD_XPRM='-e -a -w 300'
+SGW_CMD_XPRM='-e -a -w 300 -l'
. ${DIR}/tun_aesgcm_common_defs.sh
-SGW_CMD_XPRM='-e -w 300'
+SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{