From e8f90976639ebc6948ca9e76f03716f295a6920e Mon Sep 17 00:00:00 2001
From: Phil <phil@secdev.org>
Date: Thu, 8 Jan 2009 21:07:36 +0100
Subject: [PATCH] Fixed bug in [1187384cfa85]: replaced conf.use_inet6 by
 conf.ipv6_enabled

---
 scapy/layers/inet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scapy/layers/inet.py b/scapy/layers/inet.py
index d9032dab..1eb02370 100644
--- a/scapy/layers/inet.py
+++ b/scapy/layers/inet.py
@@ -925,7 +925,7 @@ class TracerouteResult(SndRcvList):
                 trace_id = (s.src,s.dst,s.proto,0)
             trace = rt.get(trace_id,{})
             ttl = conf.ipv6_enabled and inet6.IPv6 in s and s.hlim or s.ttl
-            if not (ICMP in r and r[ICMP].type == 11) and not (conf.use_inet6 and inet6.IPv6 in r and ICMPv6TimeExceeded in r):
+            if not (ICMP in r and r[ICMP].type == 11) and not (conf.ipv6_enabled and inet6.IPv6 in r and ICMPv6TimeExceeded in r):
                 if trace_id in ports_done:
                     continue
                 ports_done[trace_id] = None
-- 
GitLab