< 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 # 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 # 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 # 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 339ms # rtt min/avg/max/mdev = 0.461/0.612/8.183/0.830 ms, ipg/ewma 0.680/0.474 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 1132ms # rtt min/avg/max/mdev = 1.586/2.073/8.517/1.302 ms, ipg/ewma 2.268/2.256 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 2921ms # rtt min/avg/max/mdev = 0.471/6.197/19.780/5.983 ms, pipe 2, ipg/ewma 5.842/12.340 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 1368ms # rtt min/avg/max/mdev = 1.609/2.510/12.306/1.721 ms, pipe 2, ipg/ewma 2.741/1.794 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 329ms # rtt min/avg/max/mdev = 0.468/0.569/5.063/0.566 ms, ipg/ewma 0.659/0.487 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 1105ms # rtt min/avg/max/mdev = 1.582/2.004/8.341/1.158 ms, ipg/ewma 2.215/2.110 ms # PING 5.5.5.5 (5.5.5.5) 56(84) bytes of data. # # --- 5.5.5.5 ping statistics --- # 501 packets transmitted, 500 received, 0.199601% packet loss, time 2871ms # rtt min/avg/max/mdev = 0.471/6.071/20.274/6.051 ms, pipe 2, ipg/ewma 5.742/14.113 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 1361ms # rtt min/avg/max/mdev = 1.588/2.490/13.517/1.568 ms, pipe 2, ipg/ewma 2.727/2.041 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 356ms # rtt min/avg/max/mdev = 0.462/0.630/5.378/0.625 ms, ipg/ewma 0.714/0.476 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 1126ms # rtt min/avg/max/mdev = 1.595/2.053/8.022/1.213 ms, ipg/ewma 2.255/1.988 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 457ms # rtt min/avg/max/mdev = 0.472/0.811/7.761/0.816 ms, ipg/ewma 0.916/0.601 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 1419ms # rtt min/avg/max/mdev = 1.616/2.597/12.507/1.629 ms, pipe 2, ipg/ewma 2.844/2.295 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 414ms # rtt min/avg/max/mdev = 0.464/0.736/7.214/0.718 ms, ipg/ewma 0.829/0.745 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 60180 # [ 7] local 5.5.5.2 port 60186 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 60186 # [ ID] Interval Transfer Bitrate # [ 7] 0.00-1.00 sec 3.38 MBytes 28.3 Mbits/sec # [ ID] Interval Transfer Bitrate Retr Cwnd # [ 7] 0.00-1.00 sec 3.50 MBytes 29.3 Mbits/sec 0 246 KBytes # [ 7] 1.00-2.00 sec 3.75 MBytes 31.5 Mbits/sec # [ 7] 1.00-2.00 sec 3.62 MBytes 30.4 Mbits/sec 0 246 KBytes # [ 7] 2.00-3.00 sec 3.38 MBytes 28.3 Mbits/sec # [ 7] 3.00-3.08 sec 256 KBytes 25.0 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.08 sec 10.8 MBytes 29.2 Mbits/sec receiver # [ 7] 2.00-3.05 sec 3.50 MBytes 28.1 Mbits/sec 0 246 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.05 sec 10.8 MBytes 29.6 Mbits/sec 0 sender # [ 7] 0.00-3.08 sec 10.8 MBytes 29.2 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: 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 # * 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: 13398876 # VPN TX bytes: 1639866 # VPN RX packets: 11002 # VPN TX packets: 2913 # LINK RX bytes: 13663068 # LINK TX bytes: 1709778 # LINK RX packets: 11004 # LINK TX packets: 2913 # * 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: 1624288 # LINK TX bytes: 1624000 # LINK RX packets: 2004 # 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: 1639866 # VPN TX bytes: 13399020 # VPN RX packets: 2913 # VPN TX packets: 11005 # LINK RX bytes: 1709778 # LINK TX bytes: 13663068 # LINK RX packets: 2913 # LINK TX packets: 11004 # 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: 13398876 # VPN TX bytes: 1639866 # VPN RX packets: 11002 # VPN TX packets: 2913 # LINK RX bytes: 13663068 # LINK TX bytes: 1709778 # LINK RX packets: 11004 # LINK TX packets: 2913 # 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 --- # 2889 packets transmitted, 2707 received, 6.29976% packet loss, time 3995ms # rtt min/avg/max/mdev = 0.458/0.661/11.244/0.844 ms, pipe 2, ipg/ewma 1.383/0.952 ms # Setting timeout to 3s P2P: # ./common.sh: line 150: kill: (2546) - 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: (2548) - No such process # Checking notifications for peer 1... OK # ./common.sh: line 150: kill: (2550) - No such process # Checking notifications for peer 2... OK # ./common.sh: line 150: kill: (2552) - 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: (2554) - 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: (2556) - 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: (2558) - 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 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__->