Rich Lane | a68176f | 2013-08-09 17:41:05 -0700 | [diff] [blame^] | 1 | # 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 | """ |
| 5 | Wrap scapy to satisfy pylint |
| 6 | """ |
| 7 | |
| 8 | try: |
| 9 | import scapy.layers.l2 |
| 10 | import scapy.layers.inet |
| 11 | import scapy.layers.inet6 |
| 12 | except ImportError: |
| 13 | sys.exit("Need to install scapy for packet parsing") |
| 14 | |
| 15 | Ether = scapy.layers.l2.Ether |
| 16 | LLC = scapy.layers.l2.LLC |
| 17 | SNAP = scapy.layers.l2.SNAP |
| 18 | Dot1Q = scapy.layers.l2.Dot1Q |
| 19 | IP = scapy.layers.inet.IP |
| 20 | IPOption = scapy.layers.inet.IPOption |
| 21 | IPv6 = scapy.layers.inet6.IPv6 |
| 22 | ARP = scapy.layers.inet.ARP |
| 23 | TCP = scapy.layers.inet.TCP |
| 24 | UDP = scapy.layers.inet.UDP |
| 25 | ICMP = scapy.layers.inet.ICMP |
| 26 | ICMPv6Unknown = scapy.layers.inet6.ICMPv6Unknown |
| 27 | ICMPv6EchoRequest = scapy.layers.inet6.ICMPv6EchoRequest |