blob: 1b43091c6c50c7ed4f4122fe5c0779d5d801faa9 [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:
10 import scapy.layers.l2
11 import scapy.layers.inet
12 import scapy.layers.inet6
13except ImportError:
14 sys.exit("Need to install scapy for packet parsing")
15
16Ether = scapy.layers.l2.Ether
17LLC = scapy.layers.l2.LLC
18SNAP = scapy.layers.l2.SNAP
19Dot1Q = scapy.layers.l2.Dot1Q
20IP = scapy.layers.inet.IP
21IPOption = scapy.layers.inet.IPOption
22IPv6 = scapy.layers.inet6.IPv6
23ARP = scapy.layers.inet.ARP
24TCP = scapy.layers.inet.TCP
25UDP = scapy.layers.inet.UDP
26ICMP = scapy.layers.inet.ICMP
27ICMPv6Unknown = scapy.layers.inet6.ICMPv6Unknown
28ICMPv6EchoRequest = scapy.layers.inet6.ICMPv6EchoRequest