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-4/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing/wt-4/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-4/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing/wt-4/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # overriding timeout to 21600 # selftests: net/forwarding: sch_red.sh # 16.55 [+16.55] TEST: ping from host 1 [ OK ] # 17.85 [+1.31] TEST: ping from host 2 [ OK ] # 18.12 [+0.27] RED: set bandwidth to 10Mbit # 29.19 [+11.07] TEST: ECN backlog < limit [ OK ] # 40.08 [+10.89] TEST: ECN backlog > limit [ OK ] # 57.50 [+17.42] TEST: ECN backlog > limit: UDP early-dropped [ OK ] # 58.04 [+0.54] RED: set bandwidth to 10Mbit # 68.00 [+9.96] TEST: ECN nodrop backlog < limit [ OK ] # 75.65 [+7.65] TEST: ECN nodrop backlog > limit [XFAIL] # 75.65 [+0.00] backlog 45074 / 30000 Got 20% marked packets, expected >= 95. # 83.59 [+7.94] TEST: ECN nodrop backlog > limit: UDP not dropped [ OK ] # 84.11 [+0.51] RED: set bandwidth to 10Mbit # 93.06 [+8.95] TEST: RED backlog < limit [ OK ] # 116.16 [+23.10] TEST: RED backlog > limit [ OK ] # 116.64 [+0.48] RED: set bandwidth to 10Mbit # 138.87 [+22.23] TEST: RED early_dropped packets mirrored [XFAIL] # 138.88 [+0.00] Dropped packets not observed: 100 expected, 95 seen # 139.38 [+0.51] RED: set bandwidth to 10Mbit # 140.85 [+1.46] mz/getopts: libnet_init() failed (libnet_check_iface() ioctl: No such device) Invalid command line parameters! # 140.85 [+0.01] # 140.85 [+0.00] mausezahn 0.6.8+, a fast versatile traffic generator # 140.85 [+0.00] http://www.netsniff-ng.org # 140.86 [+0.00] # 140.86 [+0.00] Usage: mausezahn [options] [interface] || # 140.86 [+0.00] Options: # 140.86 [+0.00] -x Interactive mode with telnet CLI, default port: 25542 # 140.86 [+0.00] -l Listen address to bind to when in interactive mode, default: 0.0.0.0 # 140.86 [+0.00] -4 IPv4 mode (default) # 140.87 [+0.00] -6 IPv6 mode # 140.87 [+0.00] -R Set socket priority # 140.87 [+0.00] -c Send packet count times, default:1, infinite:0 # 140.87 [+0.00] -d Apply delay between transmissions. The delay value can be # 140.87 [+0.00] specified in usec (default, no additional unit needed), or in # 140.88 [+0.00] msec (e.g. 100m or 100msec), or in seconds (e.g. 100s or 100sec) # 140.88 [+0.00] -r Multiplies the specified delay with a random value # 140.88 [+0.00] -p Pad the raw frame to specified length (using random bytes) # 140.89 [+0.00] -a Use specified source mac address, no matter what has # 140.89 [+0.00] been specified with other arguments; keywords see below, # 140.89 [+0.00] Default is own interface # 140.89 [+0.00] -b Same with destination mac address; keywords: # 140.89 [+0.00] rand Use a random MAC address # 140.90 [+0.00] bc Use a broadcast MAC address # 140.90 [+0.00] own Use own interface MAC address (default for source MAC) # 140.90 [+0.00] stp Use IEEE 802.1d STP multicast address # 140.90 [+0.00] cisco Use Cisco multicast address as used for CDP, VTP, or PVST+ # 140.90 [+0.00] -A Use specified source IP address (default is own interface IP) # 140.91 [+0.00] -B Send packet to specified destination IP or domain name # 140.91 [+0.00] -P Use the specified ASCII payload # 140.91 [+0.00] -f Read the ASCII payload from a file # 140.91 [+0.00] -F Read the hexadecimal payload from a file # 140.91 [+0.00] -Q <[CoS:]vlan> Specify 802.1Q VLAN tag and optional Class of Service, you can # 140.92 [+0.00] specify multiple 802.1Q VLAN tags (QinQ...) by separating them # 140.92 [+0.00] via a comma or a period (e.g. '5:10,20,2:30') # 140.92 [+0.00] -t Specify packet type for autobuild (you don't need to care for # 140.92 [+0.00] encapsulations in lower layers, most packet types allow/require # 140.93 [+0.00] additional packet-specific arguments in an ; # 140.93 [+0.00] Currently supported types: arp, bpdu, cdp, ip, icmp, udp, tcp, # 140.93 [+0.00] dns, rtp, syslog, lldp and more; # 140.93 [+0.00] For context-help use 'help' as ! # 140.94 [+0.00] -T Specify packet type for server mode, currently only rtp is supported; # 140.94 [+0.00] Enter -T help or -T rtp help for further information # 140.94 [+0.00] -M Insert a MPLS label, enter '-M help' for a syntax description # 140.94 [+0.00] -V|VV|... Verbose and more verbose mode # 140.95 [+0.00] -q Quiet mode, even omit 'important' standard short messages # 140.95 [+0.00] -S Simulation mode: DOES NOT put anything on the wire, this is # 140.95 [+0.00] typically combined with one of the verbose modes (v or V) # 140.95 [+0.00] -v Show version # 140.96 [+0.00] -h Print this help # 140.96 [+0.00] # 140.96 [+0.00] Examples: # 140.96 [+0.00] mausezahn -x 99 # 140.96 [+0.00] mausezahn -c 0 -d 2s -t bpdu conf # 140.96 [+0.00] mausezahn -t cdp change -c 0 # 140.96 [+0.00] mausezahn -t syslog sev=3 -P "You have been mausezahned." -A 10.1.1.109 -B 192.168.7.7 # 140.96 [+0.00] mausezahn eth0 -A rand -B 1.1.1.1 -c 0 -t tcp "dp=1-1023, flags=syn" # 140.96 [+0.00] # 140.96 [+0.00] Note: # 140.97 [+0.00] This tool is targeted for network developers! You should # 140.97 [+0.00] be aware of what you are doing and what these options above # 140.97 [+0.00] mean! Only use this tool in an isolated LAN that you own! # 140.97 [+0.00] # 140.97 [+0.00] Please report bugs to # 140.97 [+0.00] Copyright (C) 2008-2010 Herbert Haas , # 140.97 [+0.00] Copyright (C) 2011 Daniel Borkmann , # 140.98 [+0.00] Swiss federal institute of technology (ETH Zurich) # 140.98 [+0.00] License: GNU GPL version 2.0 # 140.98 [+0.00] This is free software: you are free to change and redistribute it. # 140.98 [+0.00] There is NO WARRANTY, to the extent permitted by law. # 140.98 [+0.00] # 163.61 [+22.63] ./sch_red.sh: line 229: 100 * nmirrored_d / npackets_d: division by 0 (error token is "npackets_d") # 185.37 [+21.76] ./sch_red.sh: line 229: 100 * nmirrored_d / npackets_d: division by 0 (error token is "npackets_d") # 185.53 [+0.16] TEST: ECN marked packets mirrored [XFAIL] # 185.54 [+0.00] backlog 0 / 30000 Got % mirrored packets, expected >= 95. ok 1 selftests: net/forwarding: sch_red.sh make[1]: Leaving directory '/home/virtme/testing/wt-4/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing/wt-4/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->