< 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 # Connection received! # connected # 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 584ms # rtt min/avg/max/mdev = 0.489/1.065/12.998/1.521 ms, pipe 2, ipg/ewma 1.169/0.778 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 1768ms # rtt min/avg/max/mdev = 1.703/3.267/14.870/2.161 ms, pipe 2, ipg/ewma 3.542/3.488 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 544ms # rtt min/avg/max/mdev = 0.494/0.980/15.403/1.229 ms, pipe 2, ipg/ewma 1.090/0.974 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 1847ms # rtt min/avg/max/mdev = 1.709/3.440/15.938/2.129 ms, pipe 2, ipg/ewma 3.700/3.369 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 524ms # rtt min/avg/max/mdev = 0.488/0.951/13.932/1.048 ms, pipe 2, ipg/ewma 1.049/0.701 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 1771ms # rtt min/avg/max/mdev = 1.710/3.297/13.264/1.953 ms, pipe 2, ipg/ewma 3.548/2.934 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 539ms # rtt min/avg/max/mdev = 0.486/0.976/8.252/0.897 ms, ipg/ewma 1.080/0.851 ms # PING 5.5.5.5 (5.5.5.5) 3000(3028) bytes of data. # # --- 5.5.5.5 ping statistics --- # 501 packets transmitted, 500 received, 0.199601% packet loss, time 1980ms # rtt min/avg/max/mdev = 1.730/3.835/22.660/3.523 ms, pipe 2, ipg/ewma 3.959/16.821 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 539ms # rtt min/avg/max/mdev = 0.493/0.977/16.231/1.173 ms, pipe 2, ipg/ewma 1.079/0.582 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 1738ms # rtt min/avg/max/mdev = 1.717/3.220/12.829/1.942 ms, pipe 2, ipg/ewma 3.482/2.867 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 577ms # rtt min/avg/max/mdev = 0.490/1.053/11.633/1.041 ms, pipe 2, ipg/ewma 1.156/1.777 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 1736ms # rtt min/avg/max/mdev = 1.708/3.225/14.960/1.941 ms, pipe 2, ipg/ewma 3.479/3.355 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 541ms # rtt min/avg/max/mdev = 0.489/0.953/7.742/0.909 ms, ipg/ewma 1.083/0.889 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 43410 # [ 7] local 5.5.5.2 port 43416 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 43416 # [ ID] Interval Transfer Bitrate # [ 7] 0.00-1.00 sec 2.12 MBytes 17.8 Mbits/sec # [ ID] Interval Transfer Bitrate Retr Cwnd # [ 7] 0.00-1.00 sec 2.25 MBytes 18.9 Mbits/sec 0 290 KBytes # [ 7] 1.00-2.00 sec 2.25 MBytes 18.9 Mbits/sec # [ 7] 1.00-2.00 sec 2.12 MBytes 17.8 Mbits/sec 0 290 KBytes # [ 7] 2.00-3.00 sec 2.38 MBytes 19.9 Mbits/sec # [ 7] 3.00-3.11 sec 256 KBytes 19.7 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.11 sec 7.00 MBytes 18.9 Mbits/sec receiver # [ 7] 2.00-3.03 sec 2.25 MBytes 18.4 Mbits/sec 3 290 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.03 sec 6.88 MBytes 19.1 Mbits/sec 3 sender # [ 7] 0.00-3.11 sec 7.00 MBytes 18.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: 1579068 # VPN TX bytes: 1579068 # VPN RX packets: 2003 # VPN TX packets: 2003 # LINK RX bytes: 1627356 # LINK TX bytes: 1627140 # LINK RX packets: 2006 # LINK TX packets: 2003 # * 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: 9249590 # VPN TX bytes: 1635843 # VPN RX packets: 8015 # VPN TX packets: 2836 # LINK RX bytes: 9442166 # LINK TX bytes: 1703907 # LINK RX packets: 8018 # LINK TX packets: 2836 # * 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: 1635843 # VPN TX bytes: 9249734 # VPN RX packets: 2836 # VPN TX packets: 8018 # LINK RX bytes: 1703907 # LINK TX bytes: 9442166 # LINK RX packets: 2836 # LINK TX packets: 8018 # 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: 9249590 # VPN TX bytes: 1635843 # VPN RX packets: 8015 # VPN TX packets: 2836 # LINK RX bytes: 9442166 # LINK TX bytes: 1703907 # LINK RX packets: 8018 # LINK TX packets: 2836 # 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 --- # 667 packets transmitted, 492 received, 26.2369% packet loss, time 3988ms # rtt min/avg/max/mdev = 0.492/4.568/42.025/6.248 ms, pipe 4, ipg/ewma 5.988/14.594 ms # Setting timeout to 3s P2P: # ./common.sh: line 150: kill: (2856) - No such process # Checking notifications for peer 0... 19,54d18 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 3 # < } # < } # < } # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 4 # < } # < } # < } # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 5 # < } # < } # < } # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 6 # < } # < } # < } # ./common.sh: line 150: kill: (2858) - No such process # Checking notifications for peer 1... OK # ./common.sh: line 150: kill: (2860) - No such process # Checking notifications for peer 2... OK # ./common.sh: line 150: kill: (2862) - No such process # Checking notifications for peer 3... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 12 # < } # < } # < } # ./common.sh: line 150: kill: (2864) - No such process # Checking notifications for peer 4... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 13 # < } # < } # < } # ./common.sh: line 150: kill: (2866) - No such process # Checking notifications for peer 5... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 14 # < } # < } # < } # ./common.sh: line 150: kill: (2868) - No such process # Checking notifications for peer 6... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 15 # < } # < } # < } # 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__->