< 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' # 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 350ms # rtt min/avg/max/mdev = 0.438/0.645/9.285/0.906 ms, ipg/ewma 0.701/0.520 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 1045ms # rtt min/avg/max/mdev = 1.493/1.899/8.310/1.212 ms, ipg/ewma 2.095/1.755 ms # PING 5.5.5.3 (5.5.5.3) 56(84) bytes of data. # # --- 5.5.5.3 ping statistics --- # 501 packets transmitted, 500 received, 0.199601% packet loss, time 828ms # rtt min/avg/max/mdev = 0.438/1.636/15.569/3.407 ms, pipe 2, ipg/ewma 1.655/12.287 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 1037ms # rtt min/avg/max/mdev = 1.489/1.876/10.406/1.164 ms, pipe 2, ipg/ewma 2.077/1.687 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 302ms # rtt min/avg/max/mdev = 0.437/0.548/5.006/0.570 ms, ipg/ewma 0.604/0.462 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 1045ms # rtt min/avg/max/mdev = 1.491/1.898/7.746/1.127 ms, ipg/ewma 2.093/1.824 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 302ms # rtt min/avg/max/mdev = 0.437/0.543/4.950/0.518 ms, ipg/ewma 0.605/0.448 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 1034ms # rtt min/avg/max/mdev = 1.489/1.876/7.635/1.117 ms, ipg/ewma 2.071/1.899 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 304ms # rtt min/avg/max/mdev = 0.439/0.532/8.288/0.570 ms, ipg/ewma 0.609/0.646 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 1025ms # rtt min/avg/max/mdev = 1.492/1.866/7.485/1.074 ms, ipg/ewma 2.054/1.723 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 299ms # rtt min/avg/max/mdev = 0.436/0.544/6.172/0.534 ms, ipg/ewma 0.599/0.527 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 1037ms # rtt min/avg/max/mdev = 1.491/1.892/8.624/1.186 ms, ipg/ewma 2.077/2.041 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 301ms # rtt min/avg/max/mdev = 0.436/0.541/5.772/0.516 ms, ipg/ewma 0.603/0.452 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 45758 # [ 7] local 5.5.5.2 port 45764 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 45764 # [ ID] Interval Transfer Bitrate # [ 7] 0.00-1.00 sec 3.88 MBytes 32.5 Mbits/sec # [ ID] Interval Transfer Bitrate Retr Cwnd # [ 7] 0.00-1.00 sec 4.00 MBytes 33.5 Mbits/sec 0 89.2 KBytes # [ 7] 1.00-2.00 sec 4.12 MBytes 34.6 Mbits/sec # [ 7] 1.00-2.00 sec 4.00 MBytes 33.6 Mbits/sec 0 89.2 KBytes # [ 7] 2.00-3.00 sec 4.12 MBytes 34.6 Mbits/sec # [ 7] 3.00-3.07 sec 384 KBytes 44.7 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.07 sec 12.5 MBytes 34.1 Mbits/sec receiver # [ 7] 2.00-3.03 sec 4.12 MBytes 33.6 Mbits/sec 0 113 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.03 sec 12.4 MBytes 34.2 Mbits/sec 0 sender # [ 7] 0.00-3.07 sec 12.5 MBytes 34.1 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: 15237096 # VPN TX bytes: 1649676 # VPN RX packets: 12325 # VPN TX packets: 3102 # LINK RX bytes: 15533040 # LINK TX bytes: 1724124 # LINK RX packets: 12327 # LINK TX packets: 3102 # * 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: 1576084 # VPN TX bytes: 1576084 # VPN RX packets: 2001 # VPN TX packets: 2001 # LINK RX bytes: 1624324 # LINK TX bytes: 1624108 # LINK RX packets: 2004 # LINK TX packets: 2001 # List of peers connected to: tun1 # * Peer 10 # TX peer ID 1 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1649676 # VPN TX bytes: 15237240 # VPN RX packets: 3102 # VPN TX packets: 12328 # LINK RX bytes: 1724124 # LINK TX bytes: 15533040 # LINK RX packets: 3102 # LINK TX packets: 12327 # 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: 15237096 # VPN TX bytes: 1649676 # VPN RX packets: 12325 # VPN TX packets: 3102 # LINK RX bytes: 15533040 # LINK TX bytes: 1724124 # LINK RX packets: 12327 # LINK TX packets: 3102 # 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 --- # 3476 packets transmitted, 3301 received, 5.03452% packet loss, time 3993ms # rtt min/avg/max/mdev = 0.405/0.543/7.034/0.653 ms, ipg/ewma 1.149/0.446 ms # Setting timeout to 3s P2P: # Checking notifications for peer 0... OK # ./common.sh: line 150: kill: (10670) - No such process # Checking notifications for peer 1... OK # Checking notifications for peer 2... OK # ./common.sh: line 150: kill: (10674) - No such process # Checking notifications for peer 3... OK # ./common.sh: line 150: kill: (10676) - No such process # Checking notifications for peer 4... OK # ./common.sh: line 150: kill: (10678) - No such process # Checking notifications for peer 5... OK # ./common.sh: line 150: kill: (10680) - 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 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__->