blob: 9631e026c7fec0525fb3dd15c46d61651c99ebe3 [file] [log] [blame]
Rich Lanea68176f2013-08-09 17:41:05 -07001# Distributed under the OpenFlow Software License (see LICENSE)
2# Copyright (c) 2010 The Board of Trustees of The Leland Stanford Junior University
3# Copyright (c) 2012, 2013 Big Switch Networks, Inc.
4"""
5Wrap scapy to satisfy pylint
6"""
Rich Lane720eaf22013-08-09 18:00:45 -07007import sys
Rich Lanea68176f2013-08-09 17:41:05 -07008
9try:
Rich Lane024f9d52013-08-12 15:56:39 -070010 import scapy.config
11 import scapy.route
12 import scapy.route6
Rich Lanea68176f2013-08-09 17:41:05 -070013 import scapy.layers.l2
14 import scapy.layers.inet
15 import scapy.layers.inet6
16except ImportError:
17 sys.exit("Need to install scapy for packet parsing")
18
19Ether = scapy.layers.l2.Ether
20LLC = scapy.layers.l2.LLC
21SNAP = scapy.layers.l2.SNAP
22Dot1Q = scapy.layers.l2.Dot1Q
23IP = scapy.layers.inet.IP
24IPOption = scapy.layers.inet.IPOption
25IPv6 = scapy.layers.inet6.IPv6
26ARP = scapy.layers.inet.ARP
27TCP = scapy.layers.inet.TCP
28UDP = scapy.layers.inet.UDP
29ICMP = scapy.layers.inet.ICMP
30ICMPv6Unknown = scapy.layers.inet6.ICMPv6Unknown
31ICMPv6EchoRequest = scapy.layers.inet6.ICMPv6EchoRequest