#!/usr/bin/python ############################################################################# # Copyright (C) 2011 Spidcom # # MME handler based on scapy. # # See http://www.secdev.org/projects/scapy/doc/build_dissect.html # # To see dissection errors add conf.debug_dissector = 1 anywhere in the # script. ############################################################################# from scapy.all import Ether, Packet, bind_layers from scapy.fields import * from commonfields import * from common import ETHER_TYPES, HPAV_MMTYPES, HPAV_MMTYPES_REVERSE class MME (Packet): """Create an Ethernet packet.""" name = "HomePlug AV MME" fields_desc = [ XByteField("mmv", 1), EnumField("mmtype", 0, HPAV_MMTYPES_REVERSE, fmt = "