blob: 1a3cc51a24b6ef19b85091a33ad053c1c75b5ca8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2020 Marvell
#
# Script to setup interfaces used for running application on linux-generic.
#
# For linux-generic the default behavior is to create one pcap interface
# which uses udp64.pcap to inject traffic.
#
# Network set-up
# +---------+ +-----------+
# |pcap intf| IF0<---> | Classifier|
# +--------- +-----------+
#
PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit`
echo "using PCAP in=${PCAP_IN}"
IF0=pcap:in=${PCAP_IN}
TIME_OUT_VAL=1
CPASS_COUNT_ARG1=100
CPASS_COUNT_ARG2=100
if [ "$0" = "$BASH_SOURCE" ]; then
echo "Error: Platform specific env file has to be sourced."
fi
validate_result()
{
return 0;
}
setup_interfaces()
{
return 0
}
cleanup_interfaces()
{
return 0
}
|