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 16NETIFS[p9]=veth8 17NETIFS[p10]=veth9 18 19# Port that does not have a cable connected. 20NETIF_NO_CABLE=eth8 21 22############################################################################## 23# Defines 24 25# IPv4 ping utility name 26PING=ping 27# IPv6 ping utility name. Some distributions use 'ping' for IPv6. 28PING6=ping6 29# Packet generator. Some distributions use 'mz'. 30MZ=mausezahn 31# Time to wait after interfaces participating in the test are all UP 32WAIT_TIME=5 33# Whether to pause on failure or not. 34PAUSE_ON_FAIL=no 35# Whether to pause on cleanup or not. 36PAUSE_ON_CLEANUP=no 37# Type of network interface to create 38NETIF_TYPE=veth 39# Whether to create virtual interfaces (veth) or not 40NETIF_CREATE=yes 41# Timeout (in seconds) before ping exits regardless of how many packets have 42# been sent or received 43PING_TIMEOUT=5 44# IPv6 traceroute utility name. 45TROUTE6=traceroute6 46