< TEST_PROGS=test-tcp.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/srv/vmksft/testing/wt-6/tools/testing/selftests' make[1]: Entering directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' make[1]: Entering directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' TAP version 13 1..1 # overriding timeout to 240 # selftests: net/ovpn: test-tcp.sh # Deleting interface tun1 ifindex 4 # Deleting interface tun2 ifindex 4 # Deleting interface tun3 ifindex 4 # Creating interface tun0 with mode 1 # Creating interface tun1 with mode 0 # Creating interface tun2 with mode 0 # Creating interface tun3 with mode 0 # Creating interface tun4 with mode 0 # Creating interface tun5 with mode 0 # Creating interface tun6 with mode 0 # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # Sent 1002 bytes over TCP socket # >>>> Received 1002 bytes over TCP socket, header: 1000 # PING 5.5.5.2 (5.5.5.2) 56(84) bytes of data. # # --- 5.5.5.2 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 404ms # rtt min/avg/max/mdev = 0.494/0.744/15.131/1.248 ms, pipe 2, ipg/ewma 0.809/1.214 ms # PING 5.5.5.2 (5.5.5.2) 3000(3028) bytes of data. # # --- 5.5.5.2 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1305ms # rtt min/avg/max/mdev = 1.719/2.407/12.666/1.703 ms, pipe 2, ipg/ewma 2.615/2.118 ms # PING 5.5.5.3 (5.5.5.3) 56(84) bytes of data. # # --- 5.5.5.3 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 371ms # rtt min/avg/max/mdev = 0.491/0.673/10.477/0.812 ms, pipe 2, ipg/ewma 0.743/0.518 ms # PING 5.5.5.3 (5.5.5.3) 3000(3028) bytes of data. # # --- 5.5.5.3 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1335ms # rtt min/avg/max/mdev = 1.710/2.459/9.015/1.534 ms, ipg/ewma 2.675/2.101 ms # PING 5.5.5.4 (5.5.5.4) 56(84) bytes of data. # # --- 5.5.5.4 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 358ms # rtt min/avg/max/mdev = 0.492/0.638/5.413/0.672 ms, ipg/ewma 0.718/0.595 ms # PING 5.5.5.4 (5.5.5.4) 3000(3028) bytes of data. # # --- 5.5.5.4 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1337ms # rtt min/avg/max/mdev = 1.726/2.481/9.994/1.588 ms, pipe 2, ipg/ewma 2.679/1.989 ms # PING 5.5.5.5 (5.5.5.5) 56(84) bytes of data. # # --- 5.5.5.5 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 388ms # rtt min/avg/max/mdev = 0.497/0.692/6.098/0.733 ms, ipg/ewma 0.778/0.779 ms # PING 5.5.5.5 (5.5.5.5) 3000(3028) bytes of data. # # --- 5.5.5.5 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1301ms # rtt min/avg/max/mdev = 1.717/2.396/11.868/1.518 ms, pipe 2, ipg/ewma 2.607/2.259 ms # PING 5.5.5.6 (5.5.5.6) 56(84) bytes of data. # # --- 5.5.5.6 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 360ms # rtt min/avg/max/mdev = 0.494/0.670/5.872/0.683 ms, ipg/ewma 0.722/0.870 ms # PING 5.5.5.6 (5.5.5.6) 3000(3028) bytes of data. # # --- 5.5.5.6 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1253ms # rtt min/avg/max/mdev = 1.729/2.318/15.572/1.633 ms, pipe 2, ipg/ewma 2.510/2.393 ms # PING 5.5.5.7 (5.5.5.7) 56(84) bytes of data. # # --- 5.5.5.7 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 366ms # rtt min/avg/max/mdev = 0.495/0.677/12.189/0.911 ms, pipe 2, ipg/ewma 0.733/0.587 ms # PING 5.5.5.7 (5.5.5.7) 3000(3028) bytes of data. # # --- 5.5.5.7 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1258ms # rtt min/avg/max/mdev = 1.718/2.320/10.774/1.480 ms, pipe 2, ipg/ewma 2.520/2.234 ms # PING 11.11.11.11 (11.11.11.11) 56(84) bytes of data. # # --- 11.11.11.11 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 369ms # rtt min/avg/max/mdev = 0.495/0.648/5.586/0.688 ms, ipg/ewma 0.740/0.548 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 49004 # [ 7] local 5.5.5.2 port 49014 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 49014 # [ ID] Interval Transfer Bitrate # [ 7] 0.00-1.00 sec 2.88 MBytes 24.1 Mbits/sec # [ ID] Interval Transfer Bitrate Retr Cwnd # [ 7] 0.00-1.00 sec 3.00 MBytes 25.1 Mbits/sec 0 89.2 KBytes # [ 7] 1.00-2.00 sec 3.25 MBytes 27.2 Mbits/sec # [ 7] 1.00-2.00 sec 3.25 MBytes 27.3 Mbits/sec 0 89.2 KBytes # [ 7] 2.00-3.00 sec 3.50 MBytes 29.4 Mbits/sec # [ 7] 3.00-3.08 sec 256 KBytes 25.6 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.08 sec 9.88 MBytes 26.9 Mbits/sec receiver # [ 7] 2.00-3.04 sec 2.62 MBytes 21.1 Mbits/sec 0 89.2 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.04 sec 9.88 MBytes 27.2 Mbits/sec 0 sender # [ 7] 0.00-3.08 sec 9.88 MBytes 26.9 Mbits/sec receiver # # iperf Done. # Adding secondary key and then swap: # Querying all peers: # List of peers connected to: tun0 # * Peer 4 # TX peer ID 13 # VPN IPv4: 5.5.5.5 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624216 # LINK TX bytes: 1624000 # LINK RX packets: 2003 # LINK TX packets: 2000 # * Peer 3 # TX peer ID 12 # VPN IPv4: 5.5.5.4 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624216 # LINK TX bytes: 1624000 # LINK RX packets: 2003 # LINK TX packets: 2000 # * Peer 5 # TX peer ID 14 # VPN IPv4: 5.5.5.6 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # * Peer 1 # TX peer ID 10 # VPN IPv4: 5.5.5.2 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 12445658 # VPN TX bytes: 1644015 # VPN RX packets: 10316 # VPN TX packets: 2993 # LINK RX bytes: 12693458 # LINK TX bytes: 1715847 # LINK RX packets: 10319 # LINK TX packets: 2993 # * Peer 6 # TX peer ID 15 # VPN IPv4: 5.5.5.7 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # * Peer 2 # TX peer ID 11 # VPN IPv4: 5.5.5.3 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # List of peers connected to: tun1 # * Peer 10 # TX peer ID 1 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1644015 # VPN TX bytes: 12445802 # VPN RX packets: 2993 # VPN TX packets: 10319 # LINK RX bytes: 1715847 # LINK TX bytes: 12693458 # LINK RX packets: 2993 # LINK TX packets: 10319 # Querying peer 1: # * Peer 1 # TX peer ID 10 # VPN IPv4: 5.5.5.2 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 12445658 # VPN TX bytes: 1644015 # VPN RX packets: 10316 # VPN TX packets: 2993 # LINK RX bytes: 12693458 # LINK TX bytes: 1715847 # LINK RX packets: 10319 # LINK TX packets: 2993 # Querying non-existent peer 20: # kernel error: ovpn: cannot find peer with id 20 # netlink reports error (-12): Object not found # failed to send netlink message: No such file or directory (-2) # Cannot execute command: No such file or directory (-2) # Deleting peer 1: # Querying keys: # * Peer 11 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 11 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 12 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 12 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 13 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 13 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 14 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 14 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 15 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 15 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # Deleting peer while sending traffic: # PING 5.5.5.1 (5.5.5.1) 56(84) bytes of data. # Deleting keys: # Setting timeout to 3s MP: # # --- 5.5.5.1 ping statistics --- # 2898 packets transmitted, 2723 received, 6.03865% packet loss, time 3998ms # rtt min/avg/max/mdev = 0.463/0.671/14.117/0.911 ms, pipe 2, ipg/ewma 1.380/0.526 ms # Setting timeout to 3s P2P: # ./common.sh: line 126: kill: (2615) - No such process # Checking notifications for peer 0... OK # ./common.sh: line 126: kill: (2617) - No such process # Checking notifications for peer 1... OK # ./common.sh: line 126: kill: (2619) - No such process # Checking notifications for peer 2... OK # ./common.sh: line 126: kill: (2621) - No such process # Checking notifications for peer 3... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 12 # < } # < } # < } WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout ^Cmake[1]: *** [../../lib.mk:142: run_tests] Interrupt make: *** [Makefile:223: run_tests] Interrupt xx__-> echo scan > /sys/kernel/debug/kmemleak xx__->