1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3
4##############################################################################
5# Topology description. p1 looped back to p2, p3 to p4 and so on.
6declare -A NETIFS
7
8NETIFS[p1]=veth0
9NETIFS[p2]=veth1
10NETIFS[p3]=veth2
11NETIFS[p4]=veth3
12NETIFS[p5]=veth4
13NETIFS[p6]=veth5
14NETIFS[p7]=veth6
15NETIFS[p8]=veth7
16
17# Port that does not have a cable connected.
18NETIF_NO_CABLE=eth8
19
20##############################################################################
21# Defines
22
23# IPv4 ping utility name
24PING=ping
25# IPv6 ping utility name. Some distributions use 'ping' for IPv6.
26PING6=ping6
27# Packet generator. Some distributions use 'mz'.
28MZ=mausezahn
29# Time to wait after interfaces participating in the test are all UP
30WAIT_TIME=5
31# Whether to pause on failure or not.
32PAUSE_ON_FAIL=no
33# Whether to pause on cleanup or not.
34PAUSE_ON_CLEANUP=no
35# Type of network interface to create
36NETIF_TYPE=veth
37# Whether to create virtual interfaces (veth) or not
38NETIF_CREATE=yes
39# Timeout (in seconds) before ping exits regardless of how many packets have
40# been sent or received
41PING_TIMEOUT=5
42# Flag for tc match, supposed to be skip_sw/skip_hw which means do not process
43# filter by software/hardware
44TC_FLAG=skip_hw
45# IPv6 traceroute utility name.
46TROUTE6=traceroute6
47
48