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