Diff for /embedaddon/mtr/test/probe.py between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2021/03/17 00:07:30 version 1.1.1.3, 2023/09/27 11:18:58
Line 17 Line 17
 #   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.  #   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #  #
   
'''Test sending probes and receiving respones.''''''Test sending probes and receiving responses.'''
   
 import socket  import socket
 import sys  import sys
Line 136  class TestProbeICMPv4(mtrpacket.MtrPacketTest): Line 136  class TestProbeICMPv4(mtrpacket.MtrPacketTest):
         'Test timeouts when sending to a non-existant address'          'Test timeouts when sending to a non-existant address'
   
         #          #
        #  Probe a non-existant address, and expect no reply        #  Probe a non-existent address, and expect no reply
         #          #
         #  I'm not sure what the best way to find an address that doesn't          #  I'm not sure what the best way to find an address that doesn't
         #  exist, but is still route-able.  If we use a reserved IP          #  exist, but is still route-able.  If we use a reserved IP
Line 268  class TestProbeICMPv6(mtrpacket.MtrPacketTest): Line 268  class TestProbeICMPv6(mtrpacket.MtrPacketTest):
     '''Test sending probes using IP version 6'''      '''Test sending probes using IP version 6'''
   
     def __init__(self, *args):      def __init__(self, *args):
        google_addr = resolve_ipv6_address(mtrpacket.IPV6_TEST_HOST)        if mtrpacket.HAVE_IPV6:
             google_addr = resolve_ipv6_address(mtrpacket.IPV6_TEST_HOST)
   
        self.google_addr = google_addr  # type: str            self.google_addr = google_addr  # type: str
   
         super(TestProbeICMPv6, self).__init__(*args)          super(TestProbeICMPv6, self).__init__(*args)
   

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>