def traceroute6(target, dport=80, minttl=1, maxttl=30, sport=RandShort(), l4=None, timeout=2, verbose=None, **kargs):
 if (verbose is None):
  verbose = conf.verb
 if (l4 is None):
  (a, b) = sr((IPv6(dst=target, hlim=(minttl, maxttl)) / TCP(seq=RandInt(), sport=sport, dport=dport)), timeout=timeout, filter='icmp6 or tcp', verbose=verbose, **kargs)
 else:
  (a, b) = sr((IPv6(dst=target, hlim=(minttl, maxttl)) / l4), timeout=timeout, verbose=verbose, **kargs)
 a = TracerouteResult6(a.res)
 if verbose:
  a.display()
 return (a, b)

def traceroute6 ( target , dport = 80 , minttl = 1 , maxttl = 30 , sport = RandShort ( ) , l4 = None , timeout = 2 , verbose = None , ** kargs ) : if ( verbose is None ) : verbose = conf . verb if ( l4 is None ) : ( a , b ) = sr ( ( IPv6 ( dst = target , hlim = ( minttl , maxttl ) ) / TCP ( seq = RandInt ( ) , sport = sport , dport = dport ) ) , timeout = timeout , filter = 'icmp6 or tcp' , verbose = verbose , ** kargs ) else : ( a , b ) = sr ( ( IPv6 ( dst = target , hlim = ( minttl , maxttl ) ) / l4 ) , timeout = timeout , verbose = verbose , ** kargs ) a = TracerouteResult6 ( a . res ) if verbose : a . display ( ) return ( a , b )
instant tcp traceroute using ipv6 : traceroute6 -> none .