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############################################################################## 20# Defines 21 22# IPv4 ping utility name 23PING=ping 24# IPv6 ping utility name. Some distributions use 'ping' for IPv6. 25PING6=ping6 26# Packet generator. Some distributions use 'mz'. 27MZ=mausezahn 28# Time to wait after interfaces participating in the test are all UP 29WAIT_TIME=5 30# Whether to pause on failure or not. 31PAUSE_ON_FAIL=no 32# Whether to pause on cleanup or not. 33PAUSE_ON_CLEANUP=no 34# Type of network interface to create 35NETIF_TYPE=veth 36# Whether to create virtual interfaces (veth) or not 37NETIF_CREATE=yes 38# Timeout (in seconds) before ping exits regardless of how many packets have 39# been sent or received 40PING_TIMEOUT=5 41