make -C tools/testing/selftests TARGETS="net/forwarding" TEST_PROGS=sch_reed.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing/wt-2/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing/wt-2/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-2/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing/wt-2/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # timeout set to 10800 # selftests: net/forwarding: sch_red.sh # 6.95 [+6.95] TEST: ping from host 1 [ OK ] # 7.92 [+0.98] TEST: ping from host 2 [ OK ] # 7.95 [+0.02] RED: set bandwidth to 10Mbit # 16.13 [+8.18] TEST: ECN backlog < limit [ OK ] # 22.27 [+6.14] TEST: ECN backlog > limit [ OK ] # 33.87 [+11.61] TEST: ECN backlog > limit: UDP early-dropped [ OK ] # 33.92 [+0.05] RED: set bandwidth to 10Mbit # 42.08 [+8.16] TEST: ECN nodrop backlog < limit [ OK ] # 48.23 [+6.15] TEST: ECN nodrop backlog > limit [ OK ] # 49.30 [+1.07] TEST: ECN nodrop backlog > limit: UDP not dropped [ OK ] # 49.34 [+0.04] RED: set bandwidth to 10Mbit # 56.50 [+7.16] TEST: RED backlog < limit [ OK ] # 73.19 [+16.69] TEST: RED backlog > limit [ OK ] # 73.25 [+0.06] RED: set bandwidth to 10Mbit # 89.10 [+15.85] TEST: RED early_dropped packets mirrored [ OK ] # 89.14 [+0.04] RED: set bandwidth to 10Mbit # 90.20 [+1.05] mz/getopts: libnet_init() failed (libnet_check_iface() ioctl: No such device) Invalid command line parameters! # 90.20 [+0.00] # 90.20 [+0.00] mausezahn 0.6.8+, a fast versatile traffic generator # 90.20 [+0.00] http://www.netsniff-ng.org # 90.20 [+0.00] # 90.20 [+0.00] Usage: mausezahn [options] [interface] || # 90.20 [+0.00] Options: # 90.20 [+0.00] -x Interactive mode with telnet CLI, default port: 25542 # 90.20 [+0.00] -l Listen address to bind to when in interactive mode, default: 0.0.0.0 # 90.20 [+0.00] -4 IPv4 mode (default) # 90.21 [+0.00] -6 IPv6 mode # 90.21 [+0.00] -R Set socket priority # 90.21 [+0.00] -c Send packet count times, default:1, infinite:0 # 90.21 [+0.00] -d Apply delay between transmissions. The delay value can be # 90.21 [+0.00] specified in usec (default, no additional unit needed), or in # 90.21 [+0.00] msec (e.g. 100m or 100msec), or in seconds (e.g. 100s or 100sec) # 90.21 [+0.00] -r Multiplies the specified delay with a random value # 90.21 [+0.00] -p Pad the raw frame to specified length (using random bytes) # 90.21 [+0.00] -a Use specified source mac address, no matter what has # 90.21 [+0.00] been specified with other arguments; keywords see below, # 90.22 [+0.00] Default is own interface # 90.22 [+0.00] -b Same with destination mac address; keywords: # 90.22 [+0.00] rand Use a random MAC address # 90.22 [+0.00] bc Use a broadcast MAC address # 90.22 [+0.00] own Use own interface MAC address (default for source MAC) # 90.22 [+0.00] stp Use IEEE 802.1d STP multicast address # 90.22 [+0.00] cisco Use Cisco multicast address as used for CDP, VTP, or PVST+ # 90.22 [+0.00] -A Use specified source IP address (default is own interface IP) # 90.22 [+0.00] -B Send packet to specified destination IP or domain name # 90.22 [+0.00] -P Use the specified ASCII payload # 90.22 [+0.00] -f Read the ASCII payload from a file # 90.22 [+0.00] -F Read the hexadecimal payload from a file # 90.23 [+0.00] -Q <[CoS:]vlan> Specify 802.1Q VLAN tag and optional Class of Service, you can # 90.23 [+0.00] specify multiple 802.1Q VLAN tags (QinQ...) by separating them # 90.23 [+0.00] via a comma or a period (e.g. '5:10,20,2:30') # 90.23 [+0.00] -t Specify packet type for autobuild (you don't need to care for # 90.23 [+0.00] encapsulations in lower layers, most packet types allow/require # 90.23 [+0.00] additional packet-specific arguments in an ; # 90.23 [+0.00] Currently supported types: arp, bpdu, cdp, ip, icmp, udp, tcp, # 90.23 [+0.00] dns, rtp, syslog, lldp and more; # 90.24 [+0.00] For context-help use 'help' as ! # 90.24 [+0.00] -T Specify packet type for server mode, currently only rtp is supported; # 90.24 [+0.00] Enter -T help or -T rtp help for further information # 90.24 [+0.00] -M Insert a MPLS label, enter '-M help' for a syntax description # 90.24 [+0.00] -V|VV|... Verbose and more verbose mode # 90.24 [+0.00] -q Quiet mode, even omit 'important' standard short messages # 90.24 [+0.00] -S Simulation mode: DOES NOT put anything on the wire, this is # 90.25 [+0.00] typically combined with one of the verbose modes (v or V) # 90.25 [+0.00] -v Show version # 90.25 [+0.00] -h Print this help # 90.25 [+0.00] # 90.25 [+0.00] Examples: # 90.25 [+0.00] mausezahn -x 99 # 90.25 [+0.00] mausezahn -c 0 -d 2s -t bpdu conf # 90.25 [+0.00] mausezahn -t cdp change -c 0 # 90.25 [+0.00] mausezahn -t syslog sev=3 -P "You have been mausezahned." -A 10.1.1.109 -B 192.168.7.7 # 90.25 [+0.00] mausezahn eth0 -A rand -B 1.1.1.1 -c 0 -t tcp "dp=1-1023, flags=syn" # 90.25 [+0.00] # 90.25 [+0.00] Note: # 90.26 [+0.00] This tool is targeted for network developers! You should # 90.26 [+0.00] be aware of what you are doing and what these options above # 90.26 [+0.00] mean! Only use this tool in an isolated LAN that you own! # 90.26 [+0.00] # 90.26 [+0.00] Please report bugs to # 90.26 [+0.00] Copyright (C) 2008-2010 Herbert Haas , # 90.26 [+0.00] Copyright (C) 2011 Daniel Borkmann , # 90.26 [+0.00] Swiss federal institute of technology (ETH Zurich) # 90.26 [+0.00] License: GNU GPL version 2.0 # 90.26 [+0.00] This is free software: you are free to change and redistribute it. # 90.26 [+0.00] There is NO WARRANTY, to the extent permitted by law. # 90.26 [+0.00] # 107.86 [+17.60] ./sch_red.sh: line 229: 100 * nmirrored_d / npackets_d: division by 0 (error token is "npackets_d") # 124.57 [+16.71] TEST: ECN marked packets mirrored [FAIL] # 124.57 [+0.00] backlog 0 / 30000 Got 0% mirrored packets, expected >= 95. not ok 1 selftests: net/forwarding: sch_red.sh # exit=1 make[1]: Leaving directory '/home/virtme/testing/wt-2/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing/wt-2/tools/testing/selftests' xx__-> echo $? 0 xx__->