aboutsummaryrefslogtreecommitdiff
path: root/example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh
diff options
context:
space:
mode:
authorAakash Sasidharan <asasidharan@marvell.com>2021-01-06 02:44:46 +0000
committerPetri Savolainen <petri.savolainen@nokia.com>2021-02-04 14:54:44 +0200
commitafd39af41057246799275caa90d92f3a564670e8 (patch)
tree93bff734d3a7bca9288ec2e8daca0caccbcb1547 /example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh
parent2010f8f62a58d032c3f1ec3987200e5101284eb1 (diff)
example: ipsec: use comma as separator in args
As part of -i option, interface name could be in PCI Domain Bus Device Function (DBDF) format to represent the device. Application will throw error during argument parsing as DBDF format itself contains colon(:). So updating parsing logic to use comma(,) as a separator instead of colon(:). Also updating MAC address representation to use colons as colon is no longer reserved for field separation. Signed-off-by: Aakash Sasidharan <asasidharan@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh')
-rwxr-xr-xexample/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh b/example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh
index 62f73cf7d..cdf84c517 100755
--- a/example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh
+++ b/example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh
@@ -5,9 +5,9 @@
# - 10 packets
# - Specify API mode on command line
./odp_ipsec_crypto -i loop1,loop2 \
--r 192.168.111.2/32:loop1:08.00.27.76.B5.E0 \
--p 192.168.222.0/24:192.168.111.0/24:in:esp \
--e 192.168.222.2:192.168.111.2:\
-3des:301:c966199f24d095f3990a320d749056401e82b26570320292 \
--s 192.168.222.2:192.168.111.2:loop2:loop1:10:100 \
+-r 192.168.111.2/32,loop1,08:00:27:76:B5:E0 \
+-p 192.168.222.0/24,192.168.111.0/24,in,esp \
+-e 192.168.222.2,192.168.111.2,\
+3des,301,c966199f24d095f3990a320d749056401e82b26570320292 \
+-s 192.168.222.2,192.168.111.2,loop2,loop1,10,100 \
-c 2 -m $1