< 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 # 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 # >>>> Received 1002 bytes over TCP socket, header: 1000 # Sent 1002 bytes over TCP socket # 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 372ms # rtt min/avg/max/mdev = 0.447/0.689/13.567/1.232 ms, pipe 2, ipg/ewma 0.744/0.752 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 1105ms # rtt min/avg/max/mdev = 1.551/2.042/8.492/1.323 ms, ipg/ewma 2.215/2.060 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 337ms # rtt min/avg/max/mdev = 0.457/0.602/5.012/0.617 ms, ipg/ewma 0.675/0.516 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 1116ms # rtt min/avg/max/mdev = 1.564/2.074/9.326/1.246 ms, ipg/ewma 2.236/2.124 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 325ms # rtt min/avg/max/mdev = 0.457/0.570/4.331/0.524 ms, ipg/ewma 0.651/0.469 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 1097ms # rtt min/avg/max/mdev = 1.553/2.020/8.420/1.184 ms, ipg/ewma 2.197/1.985 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 314ms # rtt min/avg/max/mdev = 0.449/0.564/4.426/0.566 ms, ipg/ewma 0.629/0.461 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 1088ms # rtt min/avg/max/mdev = 1.550/2.013/8.199/1.199 ms, ipg/ewma 2.179/1.801 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 334ms # rtt min/avg/max/mdev = 0.457/0.593/7.745/0.660 ms, ipg/ewma 0.669/0.515 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 1111ms # rtt min/avg/max/mdev = 1.582/2.073/8.184/1.216 ms, ipg/ewma 2.226/1.896 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 331ms # rtt min/avg/max/mdev = 0.450/0.595/8.741/0.678 ms, ipg/ewma 0.664/0.648 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 1095ms # rtt min/avg/max/mdev = 1.554/2.032/8.013/1.235 ms, ipg/ewma 2.194/1.799 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 317ms # rtt min/avg/max/mdev = 0.448/0.564/5.514/0.551 ms, ipg/ewma 0.635/0.466 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 33948 # [ 7] local 5.5.5.2 port 33958 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 33958 # [ ID] Interval Transfer Bitrate # [ 7] 0.00-1.00 sec 3.62 MBytes 30.4 Mbits/sec # [ ID] Interval Transfer Bitrate Retr Cwnd # [ 7] 0.00-1.00 sec 3.75 MBytes 31.4 Mbits/sec 0 89.2 KBytes # [ 7] 1.00-2.00 sec 3.88 MBytes 32.5 Mbits/sec # [ 7] 1.00-2.00 sec 3.88 MBytes 32.5 Mbits/sec 0 89.2 KBytes # [ 7] 2.00-3.00 sec 3.88 MBytes 32.5 Mbits/sec # [ 7] 3.00-3.05 sec 256 KBytes 45.1 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.05 sec 11.6 MBytes 32.0 Mbits/sec receiver # [ 7] 2.00-3.01 sec 3.75 MBytes 31.2 Mbits/sec 0 89.2 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.01 sec 11.5 MBytes 32.1 Mbits/sec 0 sender # [ 7] 0.00-3.05 sec 11.6 MBytes 32.0 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: 1624216 # LINK TX bytes: 1624000 # LINK RX packets: 2003 # 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: 14284018 # VPN TX bytes: 1648377 # VPN RX packets: 11640 # VPN TX packets: 3077 # LINK RX bytes: 14563522 # LINK TX bytes: 1722225 # LINK RX packets: 11642 # LINK TX packets: 3077 # * 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: 1624216 # LINK TX bytes: 1624000 # LINK RX packets: 2003 # 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: 1648377 # VPN TX bytes: 14284162 # VPN RX packets: 3077 # VPN TX packets: 11643 # LINK RX bytes: 1722225 # LINK TX bytes: 14563522 # LINK RX packets: 3077 # LINK TX packets: 11642 # 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: 14284018 # VPN TX bytes: 1648377 # VPN RX packets: 11640 # VPN TX packets: 3077 # LINK RX bytes: 14563522 # LINK TX bytes: 1722225 # LINK RX packets: 11642 # LINK TX packets: 3077 # 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 --- # 3242 packets transmitted, 3075 received, 5.15114% packet loss, time 3991ms # rtt min/avg/max/mdev = 0.432/0.600/8.065/0.759 ms, ipg/ewma 1.231/0.988 ms # Setting timeout to 3s P2P: # Checking notifications for peer 0... OK # Checking notifications for peer 1... OK # ./common.sh: line 150: kill: (1336) - No such process # Checking notifications for peer 2... OK # ./common.sh: line 150: kill: (1338) - No such process # Checking notifications for peer 3... OK # ./common.sh: line 150: kill: (1340) - No such process # Checking notifications for peer 4... OK # ./common.sh: line 150: kill: (1342) - No such process # Checking notifications for peer 5... OK # ./common.sh: line 150: kill: (1344) - No such process # Checking notifications for peer 6... OK # Deleting interface tun1 ifindex 4 # Deleting interface tun2 ifindex 4 # Deleting interface tun3 ifindex 4 # Deleting interface tun4 ifindex 4 # Deleting interface tun5 ifindex 4 # Deleting interface tun6 ifindex 4 ok 1 selftests: net/ovpn: test-tcp.sh make[1]: Leaving directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' make: Leaving directory '/srv/vmksft/testing/wt-6/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak xx__->