< 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 # 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 # connected # >>>> 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 373ms # rtt min/avg/max/mdev = 0.473/0.684/9.954/1.026 ms, ipg/ewma 0.747/0.954 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 1244ms # rtt min/avg/max/mdev = 1.654/2.318/11.280/1.630 ms, pipe 2, ipg/ewma 2.493/2.238 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 873ms # rtt min/avg/max/mdev = 0.472/1.744/17.779/3.458 ms, pipe 2, ipg/ewma 1.746/11.515 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 1183ms # rtt min/avg/max/mdev = 1.636/2.214/9.043/1.473 ms, ipg/ewma 2.370/2.312 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 357ms # rtt min/avg/max/mdev = 0.472/0.633/12.613/0.871 ms, pipe 2, ipg/ewma 0.714/0.546 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 1190ms # rtt min/avg/max/mdev = 1.667/2.210/9.936/1.419 ms, pipe 2, ipg/ewma 2.384/2.000 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 345ms # rtt min/avg/max/mdev = 0.480/0.626/9.489/0.745 ms, ipg/ewma 0.690/0.551 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 1416ms # rtt min/avg/max/mdev = 1.644/2.637/13.827/1.862 ms, pipe 2, ipg/ewma 2.837/2.338 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 375ms # rtt min/avg/max/mdev = 0.476/0.679/6.791/0.713 ms, ipg/ewma 0.751/0.506 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 1230ms # rtt min/avg/max/mdev = 1.663/2.285/10.732/1.507 ms, pipe 2, ipg/ewma 2.464/2.312 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 356ms # rtt min/avg/max/mdev = 0.477/0.631/5.160/0.627 ms, ipg/ewma 0.713/0.781 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 1235ms # rtt min/avg/max/mdev = 1.645/2.286/12.819/1.503 ms, pipe 2, ipg/ewma 2.475/2.797 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 385ms # rtt min/avg/max/mdev = 0.475/0.697/7.897/0.795 ms, ipg/ewma 0.771/0.562 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 46544 # [ 7] local 5.5.5.2 port 46550 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 46550 # [ 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 185 KBytes # [ 7] 1.00-2.00 sec 3.50 MBytes 29.4 Mbits/sec # [ 7] 1.00-2.00 sec 3.50 MBytes 29.5 Mbits/sec 4 185 KBytes # [ 7] 2.00-3.00 sec 3.50 MBytes 29.3 Mbits/sec # [ 7] 3.00-3.10 sec 128 KBytes 10.9 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.10 sec 10.0 MBytes 27.1 Mbits/sec receiver # [ 7] 2.00-3.01 sec 3.38 MBytes 27.9 Mbits/sec 0 185 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.01 sec 10.0 MBytes 27.8 Mbits/sec 4 sender # [ 7] 0.00-3.10 sec 10.0 MBytes 27.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: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # 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: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # 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: 12655379 # VPN TX bytes: 1643024 # VPN RX packets: 10468 # VPN TX packets: 2973 # LINK RX bytes: 12906755 # LINK TX bytes: 1714376 # LINK RX packets: 10470 # LINK TX packets: 2973 # * 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: 1576084 # VPN TX bytes: 1576084 # VPN RX packets: 2001 # VPN TX packets: 2001 # LINK RX bytes: 1624252 # LINK TX bytes: 1624108 # LINK RX packets: 2003 # 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: 1643024 # VPN TX bytes: 12655523 # VPN RX packets: 2973 # VPN TX packets: 10471 # LINK RX bytes: 1714376 # LINK TX bytes: 12906755 # LINK RX packets: 2973 # LINK TX packets: 10470 # 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: 12655379 # VPN TX bytes: 1643024 # VPN RX packets: 10468 # VPN TX packets: 2973 # LINK RX bytes: 12906755 # LINK TX bytes: 1714376 # LINK RX packets: 10470 # LINK TX packets: 2973 # 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 --- # 2914 packets transmitted, 2742 received, 5.90254% packet loss, time 3992ms # rtt min/avg/max/mdev = 0.438/0.666/9.703/0.902 ms, ipg/ewma 1.370/0.496 ms # Setting timeout to 3s P2P: # ./common.sh: line 150: kill: (5435) - No such process # Checking notifications for peer 0... OK # ./common.sh: line 150: kill: (5439) - No such process # Checking notifications for peer 1... OK # ./common.sh: line 150: kill: (5441) - No such process # Checking notifications for peer 2... OK # ./common.sh: line 150: kill: (5443) - No such process # Checking notifications for peer 3... OK # ./common.sh: line 150: kill: (5445) - No such process # Checking notifications for peer 4... OK # ./common.sh: line 150: kill: (5447) - No such process # Checking notifications for peer 5... OK # ./common.sh: line 150: kill: (5449) - 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__->