Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/bash
0002 # SPDX-License-Identifier: GPL-2.0
0003 
0004 ##############################################################################
0005 # Topology description. p1 looped back to p2, p3 to p4 and so on.
0006 declare -A NETIFS
0007 
0008 NETIFS[p1]=veth0
0009 NETIFS[p2]=veth1
0010 NETIFS[p3]=veth2
0011 NETIFS[p4]=veth3
0012 NETIFS[p5]=veth4
0013 NETIFS[p6]=veth5
0014 NETIFS[p7]=veth6
0015 NETIFS[p8]=veth7
0016 NETIFS[p9]=veth8
0017 NETIFS[p10]=veth9
0018 
0019 # Port that does not have a cable connected.
0020 NETIF_NO_CABLE=eth8
0021 
0022 ##############################################################################
0023 # Defines
0024 
0025 # IPv4 ping utility name
0026 PING=ping
0027 # IPv6 ping utility name. Some distributions use 'ping' for IPv6.
0028 PING6=ping6
0029 # Packet generator. Some distributions use 'mz'.
0030 MZ=mausezahn
0031 # Time to wait after interfaces participating in the test are all UP
0032 WAIT_TIME=5
0033 # Whether to pause on failure or not.
0034 PAUSE_ON_FAIL=no
0035 # Whether to pause on cleanup or not.
0036 PAUSE_ON_CLEANUP=no
0037 # Type of network interface to create
0038 NETIF_TYPE=veth
0039 # Whether to create virtual interfaces (veth) or not
0040 NETIF_CREATE=yes
0041 # Timeout (in seconds) before ping exits regardless of how many packets have
0042 # been sent or received
0043 PING_TIMEOUT=5
0044 # Minimum ageing_time (in centiseconds) supported by hardware
0045 LOW_AGEING_TIME=1000
0046 # Flag for tc match, supposed to be skip_sw/skip_hw which means do not process
0047 # filter by software/hardware
0048 TC_FLAG=skip_hw
0049 # IPv6 traceroute utility name.
0050 TROUTE6=traceroute6
0051