scapy.contrib.homeplugav module

class scapy.contrib.homeplugav.AggregateConfigEntrie

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.AggregateConfigEntrie'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (AggregateConfigEntrie).TrafficTypeID>, <Field (AggregateConfigEntrie).AggregationConfigID>]
class scapy.contrib.homeplugav.AutoConnection

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.AutoConnection'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (AutoConnection).Action>, <Field (AutoConnection).ClassificationOperand>, <Field (AutoConnection).NumClassifiers>, <Field (AutoConnection).ClassifierObjs>, <Field (AutoConnection).CSPECversion>, <Field (AutoConnection).ConnCAP>, <Field (AutoConnection).ConnCoQoSPrio>, <Field (AutoConnection).ConnRate>, <Field (AutoConnection).ConnTTL>, <Field (AutoConnection).CSPECversion>, <Field (AutoConnection).VlanTag>, <Field (AutoConnection).reserved_1>, <Field (AutoConnection).reserved_2>]
class scapy.contrib.homeplugav.BackoffDeferalCountTable

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.BackoffDeferalCountTable'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (BackoffDeferalCountTable).element>]
class scapy.contrib.homeplugav.BehaviorBlockArray

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.BehaviorBlockArray'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (BehaviorBlockArray).BehId>, <Field (BehaviorBlockArray).NoOfSteps>, <Field (BehaviorBlockArray).DurationInMs>, <Field (BehaviorBlockArray).GPIOMaskBits_1>, <Field (BehaviorBlockArray).GPIOMaskBits_2>, <Field (BehaviorBlockArray).GPIOMaskBits_3>, <Field (BehaviorBlockArray).GPIOMaskBits_4>, <Field (BehaviorBlockArray).GPIOMaskBits_5>, <Field (BehaviorBlockArray).GPIOMaskBits_6>, <Field (BehaviorBlockArray).reserved_beh>]
class scapy.contrib.homeplugav.ClassifierObj

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ClassifierObj'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (ClassifierObj).ClassifierPID>, <Field (ClassifierObj).IndividualOperand>, <Field (ClassifierObj).ClassifierValue>]
class scapy.contrib.homeplugav.ClassifierPriorityMap

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ClassifierPriorityMap'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (ClassifierPriorityMap).Priority>, <Field (ClassifierPriorityMap).PID>, <Field (ClassifierPriorityMap).IndividualOperand>, <Field (ClassifierPriorityMap).ClassifierValue>]
class scapy.contrib.homeplugav.ConfBlock

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ConfBlock'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ConfBlock).HeaderVersionNum>, <Field (ConfBlock).ImgAddrNVM>, <Field (ConfBlock).ImgAddrSDRAM>, <Field (ConfBlock).ImgLength>, <Field (ConfBlock).ImgCheckSum>, <Field (ConfBlock).EntryPoint>, <Field (ConfBlock).HeaderMinVersion>, <Field (ConfBlock).HeaderImgType>, <Field (ConfBlock).HeaderIgnoreMask>, <Field (ConfBlock).HeaderModuleID>, <Field (ConfBlock).HeaderModuleSubID>, <Field (ConfBlock).AddrNextHeaderNVM>, <Field (ConfBlock).HeaderChecksum>, <Field (ConfBlock).SDRAMsize>, <Field (ConfBlock).SDRAMConfRegister>, <Field (ConfBlock).SDRAMTimingRegister_0>, <Field (ConfBlock).SDRAMTimingRegister_1>, <Field (ConfBlock).SDRAMControlRegister>, <Field (ConfBlock).SDRAMRefreshRegister>, <Field (ConfBlock).MACClockRegister>, <Field (ConfBlock).reserved_1>]
class scapy.contrib.homeplugav.ConfigBit

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ConfigBit'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ConfigBit).OverrideSoundCap>, <Field (ConfigBit).OverrideFailHoldDefaults>, <Field (ConfigBit).OverrideResourceDefaults>, <Field (ConfigBit).OverrideContentionWindowDefaults>, <Field (ConfigBit).OverrideUnplugDetectionDefaults>, <Field (ConfigBit).OverrideResoundDefaults>, <Field (ConfigBit).OverrideExpiryDefaults>, <Field (ConfigBit).DisableWorseChannelTrigger>, <Field (ConfigBit).DisableBetterChannelTrigger>, <Field (ConfigBit).DisableNetworkEventTrigger>, <Field (ConfigBit).rsv1>]
class scapy.contrib.homeplugav.ContentionWindowTable

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ContentionWindowTable'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (ContentionWindowTable).element>]
class scapy.contrib.homeplugav.EventBlockArray

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.EventBlockArray'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (EventBlockArray).EventPriorityID>, <Field (EventBlockArray).EventID>, <Field (EventBlockArray).BehID_1>, <Field (EventBlockArray).BehID_2>, <Field (EventBlockArray).BehID_3>, <Field (EventBlockArray).ParticipatingGPIOs>, <Field (EventBlockArray).EventAttributes>, <Field (EventBlockArray).reserved_evb>]
scapy.contrib.homeplugav.FragmentCond(pkt)

A fragmentation field condition TODO: To complete

class scapy.contrib.homeplugav.GPIOMap

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.GPIOMap'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (GPIOMap).GPIOvalue>]
class scapy.contrib.homeplugav.GetDeviceVersion

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.GetDeviceVersion'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GetDeviceVersion).Status>, <Field (GetDeviceVersion).DeviceID>, <Field (GetDeviceVersion).VersionLen>, <Field (GetDeviceVersion).DeviceVersion>, <Field (GetDeviceVersion).DeviceVersion_pad>, <Field (GetDeviceVersion).Upgradable>]
class scapy.contrib.homeplugav.GetNVMParametersConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.GetNVMParametersConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (GetNVMParametersConfirmation).Status>, <Field (GetNVMParametersConfirmation).NVMType>, <Field (GetNVMParametersConfirmation).NVMPageSize>, <Field (GetNVMParametersConfirmation).NVMBlockSize>, <Field (GetNVMParametersConfirmation).NVMMemorySize>]
class scapy.contrib.homeplugav.GetNVMParametersRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.GetNVMParametersRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = []
class scapy.contrib.homeplugav.HomePlugAV

Bases: scapy.packet.Packet

HomePlugAV Packet - by default => gets devices information

aliastypes = [<class 'scapy.contrib.homeplugav.HomePlugAV'>, <class 'scapy.packet.Packet'>]
answers(other)

DEV: true if self is an answer from other

fields_desc = [<Field (MACManagementHeader,HomePlugAV).version>, <Field (MACManagementHeader,HomePlugAV).HPtype>, <scapy.fields.ConditionalField object>, <Field (VendorMME,HomePlugAV).OUI>]
payload_guess = [({'HPtype': 40961}, <class 'scapy.contrib.homeplugav.GetDeviceVersion'>), ({'HPtype': 40972}, <class 'scapy.contrib.homeplugav.StartMACRequest'>), ({'HPtype': 40973}, <class 'scapy.contrib.homeplugav.StartMACConfirmation'>), ({'HPtype': 40988}, <class 'scapy.contrib.homeplugav.ResetDeviceRequest'>), ({'HPtype': 40989}, <class 'scapy.contrib.homeplugav.ResetDeviceConfirmation'>), ({'HPtype': 41016}, <class 'scapy.contrib.homeplugav.NetworkInformationRequest'>), ({'HPtype': 40968}, <class 'scapy.contrib.homeplugav.ReadMACMemoryRequest'>), ({'HPtype': 40969}, <class 'scapy.contrib.homeplugav.ReadMACMemoryConfirmation'>), ({'HPtype': 40996}, <class 'scapy.contrib.homeplugav.ReadModuleDataRequest'>), ({'HPtype': 40997}, <class 'scapy.contrib.homeplugav.ReadModuleDataConfirmation'>), ({'HPtype': 40992}, <class 'scapy.contrib.homeplugav.WriteModuleDataRequest'>), ({'HPtype': 41000}, <class 'scapy.contrib.homeplugav.WriteModuleData2NVMRequest'>), ({'HPtype': 41001}, <class 'scapy.contrib.homeplugav.WriteModuleData2NVMConfirmation'>), ({'HPtype': 41017, 'version': 0}, <class 'scapy.contrib.homeplugav.NetworkInfoConfirmationV10'>), ({'HPtype': 41017, 'version': 1}, <class 'scapy.contrib.homeplugav.NetworkInfoConfirmationV11'>), ({'HPtype': 41058}, <class 'scapy.contrib.homeplugav.HostActionRequired'>), ({'HPtype': 41032}, <class 'scapy.contrib.homeplugav.LoopbackRequest'>), ({'HPtype': 41033}, <class 'scapy.contrib.homeplugav.LoopbackConfirmation'>), ({'HPtype': 41040}, <class 'scapy.contrib.homeplugav.SetEncryptionKeyRequest'>), ({'HPtype': 41041}, <class 'scapy.contrib.homeplugav.SetEncryptionKeyConfirmation'>), ({'HPtype': 41048}, <class 'scapy.contrib.homeplugav.ReadConfBlockRequest'>), ({'HPtype': 41049}, <class 'scapy.contrib.homeplugav.ReadConfBlockConfirmation'>), ({'HPtype': 41085}, <class 'scapy.contrib.homeplugav.QUAResetFactoryConfirm'>), ({'HPtype': 40976}, <class 'scapy.contrib.homeplugav.GetNVMParametersRequest'>), ({'HPtype': 40977}, <class 'scapy.contrib.homeplugav.GetNVMParametersConfirmation'>), ({'HPtype': 41012}, <class 'scapy.contrib.homeplugav.SnifferRequest'>), ({'HPtype': 41013}, <class 'scapy.contrib.homeplugav.SnifferConfirmation'>), ({'HPtype': 41014}, <class 'scapy.contrib.homeplugav.SnifferIndicate'>)]
class scapy.contrib.homeplugav.HostActionRequired

Bases: scapy.packet.Packet

Embedded Host Action Required Indice

aliastypes = [<class 'scapy.contrib.homeplugav.HostActionRequired'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (HostActionRequired).ActionRequired>]
class scapy.contrib.homeplugav.LoopbackConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.LoopbackConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (LoopbackConfirmation).Status>, <Field (LoopbackConfirmation).Duration>, <Field (LoopbackConfirmation).LRlength>]
class scapy.contrib.homeplugav.LoopbackRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.LoopbackRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (LoopbackRequest).Duration>, <Field (LoopbackRequest).reserved_l1>, <Field (LoopbackRequest).LRlength>]
class scapy.contrib.homeplugav.MACManagementHeader

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.MACManagementHeader'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (MACManagementHeader,HomePlugAV).version>, <Field (MACManagementHeader,HomePlugAV).HPtype>]
class scapy.contrib.homeplugav.ModulePIB(packet='', offset=0, length=1024)

Bases: scapy.packet.Packet

Simple Module PIB Decoder.
/!/ A wrong slice would produce ‘bad’ results
aliastypes = [<class 'scapy.contrib.homeplugav.ModulePIB'>, <class 'scapy.packet.Packet'>]
fields_desc = [<scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
class scapy.contrib.homeplugav.NetworkInfoConfirmationV10

Bases: scapy.packet.Packet

Network Information Confirmation following the MAC Management version 1.0 # noqa: E501

aliastypes = [<class 'scapy.contrib.homeplugav.NetworkInfoConfirmationV10'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (NetworkInfoConfirmationV10).LogicalNetworksNumber>, <Field (NetworkInfoConfirmationV10).NetworksInfos>, <Field (NetworkInfoConfirmationV10).StationsNumber>, <Field (NetworkInfoConfirmationV10).StationsInfos>]
payload_guess = [({'HPtype': 41017, 'version': 0}, <class 'scapy.contrib.homeplugav.NetworkInfoV10'>)]
class scapy.contrib.homeplugav.NetworkInfoConfirmationV11

Bases: scapy.packet.Packet

Network Information Confirmation following the MAC Management version 1.1 # noqa: E501 This introduce few ‘crazy’ reserved bytes -> have fun!

aliastypes = [<class 'scapy.contrib.homeplugav.NetworkInfoConfirmationV11'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (NetworkInfoConfirmationV11).reserved_n1>, <Field (NetworkInfoConfirmationV11).LogicalNetworksNumber>, <Field (NetworkInfoConfirmationV11).NetworksInfos>, <Field (NetworkInfoConfirmationV11).StationsNumber>, <Field (NetworkInfoConfirmationV11).reserverd_s1>, <Field (NetworkInfoConfirmationV11).StationsInfos>]
payload_guess = [({'HPtype': 41017, 'version': 1}, <class 'scapy.contrib.homeplugav.NetworkInfoV11'>)]
class scapy.contrib.homeplugav.NetworkInfoV10

Bases: scapy.packet.Packet

Network Information Element

aliastypes = [<class 'scapy.contrib.homeplugav.NetworkInfoV10'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (NetworkInfoV10).NetworkID>, <Field (NetworkInfoV10).ShortNetworkID>, <Field (NetworkInfoV10).TerminalEID>, <Field (NetworkInfoV10).StationRole>, <Field (NetworkInfoV10).CCoMACAdress>, <Field (NetworkInfoV10).CCoTerminalEID>]
class scapy.contrib.homeplugav.NetworkInfoV11

Bases: scapy.packet.Packet

Network Information Element

aliastypes = [<class 'scapy.contrib.homeplugav.NetworkInfoV11'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (NetworkInfoV11).NetworkID>, <Field (NetworkInfoV11).reserved_1>, <Field (NetworkInfoV11).ShortNetworkID>, <Field (NetworkInfoV11).TerminalEID>, <Field (NetworkInfoV11).reserved_2>, <Field (NetworkInfoV11).StationRole>, <Field (NetworkInfoV11).CCoMACAdress>, <Field (NetworkInfoV11).CCoTerminalEID>, <Field (NetworkInfoV11).reserved_3>]
class scapy.contrib.homeplugav.NetworkInformationRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.NetworkInformationRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = []
class scapy.contrib.homeplugav.PeerNode

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.PeerNode'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (PeerNode).PeerTEI>, <Field (PeerNode).PIBMACAddr>]
class scapy.contrib.homeplugav.PrescalerValue

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.PrescalerValue'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (PrescalerValue).prescaler>]
class scapy.contrib.homeplugav.QUAResetFactoryConfirm

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.QUAResetFactoryConfirm'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (QUAResetFactoryConfirm).Status>]
class scapy.contrib.homeplugav.RSVD_CustomAggregationParameter

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.RSVD_CustomAggregationParameter'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (RSVD_CustomAggregationParameter).CustomAggregationParameter>]
class scapy.contrib.homeplugav.ReadConfBlockConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ReadConfBlockConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ReadConfBlockConfirmation).Status>, <Field (ReadConfBlockConfirmation).BlockLen>, <Field (ReadConfBlockConfirmation).ConfigurationBlock>]
class scapy.contrib.homeplugav.ReadConfBlockRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ReadConfBlockRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = []
class scapy.contrib.homeplugav.ReadMACMemoryConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ReadMACMemoryConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ReadMACMemoryConfirmation).Status>, <Field (ReadMACMemoryConfirmation).Address>, <Field (ReadMACMemoryConfirmation).MACLen>, <Field (ReadMACMemoryConfirmation).MACData>]
class scapy.contrib.homeplugav.ReadMACMemoryRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ReadMACMemoryRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ReadMACMemoryRequest).Address>, <Field (ReadMACMemoryRequest).Length>]
class scapy.contrib.homeplugav.ReadModuleDataConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ReadModuleDataConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ReadModuleDataConfirmation).Status>, <Field (ReadModuleDataConfirmation).reserved_1>, <Field (ReadModuleDataConfirmation).ModuleID>, <Field (ReadModuleDataConfirmation).reserved_2>, <Field (ReadModuleDataConfirmation).DataLen>, <Field (ReadModuleDataConfirmation).Offset>, <Field (ReadModuleDataConfirmation).checksum>, <Field (ReadModuleDataConfirmation).ModuleData>]
post_build(p, pay)

DEV: called right after the current layer is build.

Parameters:
  • pkt (str) – the current packet (build by self_buil function)
  • pay (str) – the packet payload (build by do_build_payload function)
Returns:

a string of the packet with the payload

class scapy.contrib.homeplugav.ReadModuleDataRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ReadModuleDataRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ReadModuleDataRequest).ModuleID>, <Field (ReadModuleDataRequest).reserved>, <Field (ReadModuleDataRequest).Length>, <Field (ReadModuleDataRequest).Offset>]
class scapy.contrib.homeplugav.ReservedPercentageForCap

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ReservedPercentageForCap'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (ReservedPercentageForCap).CAPpercent>]
class scapy.contrib.homeplugav.ResetDeviceConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ResetDeviceConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (ResetDeviceConfirmation).Status>]
class scapy.contrib.homeplugav.ResetDeviceRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.ResetDeviceRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = []
class scapy.contrib.homeplugav.SetEncryptionKeyConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.SetEncryptionKeyConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (SetEncryptionKeyConfirmation).Status>]
class scapy.contrib.homeplugav.SetEncryptionKeyRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.SetEncryptionKeyRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (SetEncryptionKeyRequest).EKS>, <Field (SetEncryptionKeyRequest).NMK>, <Field (SetEncryptionKeyRequest).PayloadEncKeySelect>, <Field (SetEncryptionKeyRequest).DestinationMAC>, <Field (SetEncryptionKeyRequest).DAK>]
class scapy.contrib.homeplugav.SnifferConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.SnifferConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (SnifferConfirmation).Status>]
class scapy.contrib.homeplugav.SnifferIndicate

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.SnifferIndicate'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (SnifferIndicate).SnifferType>, <Field (SnifferIndicate).Direction>, <Field (SnifferIndicate).SystemTime>, <Field (SnifferIndicate).BeaconTime>, <Field (SnifferIndicate).ShortNetworkID>, <Field (SnifferIndicate).SourceTermEqID>, <Field (SnifferIndicate).DestTermEqID>, <Field (SnifferIndicate).LinkID>, <Field (SnifferIndicate).PayloadEncrKeySelect>, <Field (SnifferIndicate).PendingPHYblock>, <Field (SnifferIndicate).BitLoadingEstim>, <Field (SnifferIndicate).ToneMapIndex>, <Field (SnifferIndicate).NumberofSymbols>, <Field (SnifferIndicate).PHYblockSize>, <Field (SnifferIndicate).FrameLength>, <Field (SnifferIndicate).ReversegrandLength>, <Field (SnifferIndicate).RequestSACKtrans>, <Field (SnifferIndicate).DataMACstreamCMD>, <Field (SnifferIndicate).ManNACFrameStreamCMD>, <Field (SnifferIndicate).reserved_1>, <Field (SnifferIndicate).MultinetBroadcast>, <Field (SnifferIndicate).DifferentCPPHYclock>, <Field (SnifferIndicate).Multicast>, <Field (SnifferIndicate).FrameControlCheckSeq>, <Field (SnifferIndicate).ShortNetworkID_>, <Field (SnifferIndicate).BeaconTimestamp>, <Field (SnifferIndicate).BeaconTransOffset_0>, <Field (SnifferIndicate).BeaconTransOffset_1>, <Field (SnifferIndicate).BeaconTransOffset_2>, <Field (SnifferIndicate).BeaconTransOffset_3>, <Field (SnifferIndicate).FrameContrchkSeq>]
class scapy.contrib.homeplugav.SnifferRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.SnifferRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (SnifferRequest).SnifferControl>]
class scapy.contrib.homeplugav.StartMACConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.StartMACConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (StartMACConfirmation).Status>, <Field (StartMACConfirmation).ModuleID>]
class scapy.contrib.homeplugav.StartMACRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.StartMACRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (StartMACRequest).ModuleID>, <Field (StartMACRequest).reserver_1>, <Field (StartMACRequest).ImgLoadStartAddr>, <Field (StartMACRequest).ImgLength>, <Field (StartMACRequest).ImgCheckSum>, <Field (StartMACRequest).ImgStartAddr>]
class scapy.contrib.homeplugav.StationInfoV10

Bases: scapy.packet.Packet

Station Information Element

aliastypes = [<class 'scapy.contrib.homeplugav.StationInfoV10'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (StationInfoV10).StationMAC>, <Field (StationInfoV10).StationTerminalEID>, <Field (StationInfoV10).firstnodeMAC>, <Field (StationInfoV10).TXaverage>, <Field (StationInfoV10).RXaverage>]
class scapy.contrib.homeplugav.StationInfoV11

Bases: scapy.packet.Packet

Station Information Element

aliastypes = [<class 'scapy.contrib.homeplugav.StationInfoV11'>, <class 'scapy.packet.Packet'>]
extract_padding(p)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (StationInfoV11).StationMAC>, <Field (StationInfoV11).StationTerminalEID>, <Field (StationInfoV11).reserved_s2>, <Field (StationInfoV11).firstnodeMAC>, <Field (StationInfoV11).TXaverage>, <Field (StationInfoV11).RxCoupling>, <Field (StationInfoV11).TxCoupling>, <Field (StationInfoV11).reserved_s3>, <Field (StationInfoV11).RXaverage>, <Field (StationInfoV11).reserved_s4>]
class scapy.contrib.homeplugav.VendorMME

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.VendorMME'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (VendorMME,HomePlugAV).OUI>]
class scapy.contrib.homeplugav.WriteModuleData2NVMConfirmation

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.WriteModuleData2NVMConfirmation'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (WriteModuleData2NVMConfirmation).Status>, <Field (WriteModuleData2NVMConfirmation).ModuleID>]
class scapy.contrib.homeplugav.WriteModuleData2NVMRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.WriteModuleData2NVMRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (WriteModuleData2NVMRequest).ModuleID>]
class scapy.contrib.homeplugav.WriteModuleDataRequest

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.homeplugav.WriteModuleDataRequest'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (WriteModuleDataRequest).ModuleID>, <Field (WriteModuleDataRequest).reserved_1>, <Field (WriteModuleDataRequest).DataLen>, <Field (WriteModuleDataRequest).Offset>, <Field (WriteModuleDataRequest).checksum>, <Field (WriteModuleDataRequest).ModuleData>]
post_build(p, pay)

DEV: called right after the current layer is build.

Parameters:
  • pkt (str) – the current packet (build by self_buil function)
  • pay (str) – the packet payload (build by do_build_payload function)
Returns:

a string of the packet with the payload

scapy.contrib.homeplugav.chksum32(data)