aboutsummaryrefslogtreecommitdiffstats
path: root/resources/traffic_scripts/ipv4_ping_ttl_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/traffic_scripts/ipv4_ping_ttl_check.py')
-rwxr-xr-xresources/traffic_scripts/ipv4_ping_ttl_check.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/traffic_scripts/ipv4_ping_ttl_check.py b/resources/traffic_scripts/ipv4_ping_ttl_check.py
index 050a1d7b29..1286b46876 100755
--- a/resources/traffic_scripts/ipv4_ping_ttl_check.py
+++ b/resources/traffic_scripts/ipv4_ping_ttl_check.py
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from scapy.all import *
+from scapy.all import Ether, IP, ICMP
from resources.libraries.python.PacketVerifier \
import Interface, create_gratuitous_arp_request, auto_pad
from optparse import OptionParser
@@ -25,8 +25,8 @@ def check_ttl(ttl_begin, ttl_end, ttl_diff):
if dst_if_defined:
dst_if.close()
raise Exception(
- "TTL changed from {} to {} but decrease by {} expected")\
- .format(ttl_begin, ttl_end, hops)
+ "TTL changed from {} to {} but decrease by {} expected"
+ .format(ttl_begin, ttl_end, hops))
def ckeck_packets_equal(pkt_send, pkt_recv):