scapy.contrib.ppi_geotag

PPI-GEOLOCATION tags

class scapy.contrib.ppi_geotag.Fixed3_6Field(name, default, *args, **kargs)

Bases: scapy.contrib.ppi_geotag._RMMLEIntField

class scapy.contrib.ppi_geotag.Fixed3_7Field(name, default, *args, **kargs)

Bases: scapy.contrib.ppi_geotag._RMMLEIntField

class scapy.contrib.ppi_geotag.Fixed6_4Field(name, default, *args, **kargs)

Bases: scapy.contrib.ppi_geotag._RMMLEIntField

class scapy.contrib.ppi_geotag.GPSTime_Field(name, default)

Bases: scapy.contrib.ppi_geotag.LETimeField

class scapy.contrib.ppi_geotag.HCSIAppField(name, default)

Bases: scapy.fields.StrFixedLenField

class scapy.contrib.ppi_geotag.HCSIDescField(name, default)

Bases: scapy.fields.StrFixedLenField

class scapy.contrib.ppi_geotag.HCSIFlagsField(name, default, size, names)

Bases: scapy.fields.FlagsField

A FlagsField where each bit/flag turns a conditional field on or off.

If the value is None when building a packet, i2m() will check the value of every field in self.names. If the field’s value is not None, the corresponding flag will be set.

i2m(pkt, val)
class scapy.contrib.ppi_geotag.HCSINullField(name)

Bases: scapy.fields.Field

class scapy.contrib.ppi_geotag.HCSIPacket

Bases: scapy.layers.ppi.PPI_Element

aliastypes
post_build(p, pay)
class scapy.contrib.ppi_geotag.LETimeField(name, default, epoch=None, strf='%a, %d %b %Y %H:%M:%S %z')

Bases: scapy.fields.UTCTimeField, scapy.fields.LEIntField

delta
epoch
strf
class scapy.contrib.ppi_geotag.NSCounter_Field(name, default)

Bases: scapy.contrib.ppi_geotag._RMMLEIntField

class scapy.contrib.ppi_geotag.PPI_Geotag_Antenna

Bases: scapy.contrib.ppi_geotag.HCSIPacket

aliastypes
fields_desc
PPI_Geotag_Antenna fields

geotag_ver

ByteField

2

geotag_pad

ByteField

0

geotag_len

LEShortField

None

present

HCSIFlagsField (32 bits)

None

AntennaFlags

FlagsField (Cond) (32 bits)

None

Gain

ByteField (Cond)

None

HorizBw

Fixed3_6Field (Cond)

None

VertBw

Fixed3_6Field (Cond)

None

PrecisionGain

Fixed3_6Field (Cond)

None

BeamID

XLEShortField (Cond)

None

Reserved06

HCSINullField (Cond)

None

Reserved07

HCSINullField (Cond)

None

Reserved08

HCSINullField (Cond)

None

Reserved09

HCSINullField (Cond)

None

Reserved10

HCSINullField (Cond)

None

Reserved11

HCSINullField (Cond)

None

Reserved12

HCSINullField (Cond)

None

Reserved13

HCSINullField (Cond)

None

Reserved14

HCSINullField (Cond)

None

Reserved15

HCSINullField (Cond)

None

Reserved16

HCSINullField (Cond)

None

Reserved17

HCSINullField (Cond)

None

Reserved18

HCSINullField (Cond)

None

Reserved19

HCSINullField (Cond)

None

Reserved20

HCSINullField (Cond)

None

Reserved21

HCSINullField (Cond)

None

Reserved22

HCSINullField (Cond)

None

Reserved23

HCSINullField (Cond)

None

Reserved24

HCSINullField (Cond)

None

Reserved25

HCSINullField (Cond)

None

SerialNumber

HCSIDescField (Cond)

None

ModelName

HCSIDescField (Cond)

None

DescString

HCSIDescField (Cond)

None

AppId

XLEIntField (Cond)

None

AppData

HCSIAppField (Cond)

None

Extended

HCSINullField (Cond)

None

hcsi_fields = [<Field (PPI_Geotag_Antenna).AntennaFlags>, <Field (PPI_Geotag_Antenna).Gain>, <Field (PPI_Geotag_Antenna).HorizBw>, <Field (PPI_Geotag_Antenna).VertBw>, <Field (PPI_Geotag_Antenna).PrecisionGain>, <Field (PPI_Geotag_Antenna).BeamID>, <Field (PPI_Geotag_Antenna).Reserved06>, <Field (PPI_Geotag_Antenna).Reserved07>, <Field (PPI_Geotag_Antenna).Reserved08>, <Field (PPI_Geotag_Antenna).Reserved09>, <Field (PPI_Geotag_Antenna).Reserved10>, <Field (PPI_Geotag_Antenna).Reserved11>, <Field (PPI_Geotag_Antenna).Reserved12>, <Field (PPI_Geotag_Antenna).Reserved13>, <Field (PPI_Geotag_Antenna).Reserved14>, <Field (PPI_Geotag_Antenna).Reserved15>, <Field (PPI_Geotag_Antenna).Reserved16>, <Field (PPI_Geotag_Antenna).Reserved17>, <Field (PPI_Geotag_Antenna).Reserved18>, <Field (PPI_Geotag_Antenna).Reserved19>, <Field (PPI_Geotag_Antenna).Reserved20>, <Field (PPI_Geotag_Antenna).Reserved21>, <Field (PPI_Geotag_Antenna).Reserved22>, <Field (PPI_Geotag_Antenna).Reserved23>, <Field (PPI_Geotag_Antenna).Reserved24>, <Field (PPI_Geotag_Antenna).Reserved25>, <Field (PPI_Geotag_Antenna).SerialNumber>, <Field (PPI_Geotag_Antenna).ModelName>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).DescString>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppId>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppData>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).Extended>]
class scapy.contrib.ppi_geotag.PPI_Geotag_GPS

Bases: scapy.contrib.ppi_geotag.HCSIPacket

aliastypes
fields_desc
PPI_Geotag_GPS fields

geotag_ver

ByteField

2

geotag_pad

ByteField

0

geotag_len

LEShortField

None

present

HCSIFlagsField (32 bits)

None

GPSFlags

FlagsField (Cond) (32 bits)

None

Latitude

Fixed3_7Field (Cond)

None

Longitude

Fixed3_7Field (Cond)

None

Altitude

Fixed6_4Field (Cond)

None

Altitude_g

Fixed6_4Field (Cond)

None

GPSTime

GPSTime_Field (Cond)

None

FractionalTime

NSCounter_Field (Cond)

None

eph

Fixed3_6Field (Cond)

None

epv

Fixed3_6Field (Cond)

None

ept

NSCounter_Field (Cond)

None

Reserved10

HCSINullField (Cond)

None

Reserved11

HCSINullField (Cond)

None

Reserved12

HCSINullField (Cond)

None

Reserved13

HCSINullField (Cond)

None

Reserved14

HCSINullField (Cond)

None

Reserved15

HCSINullField (Cond)

None

Reserved16

HCSINullField (Cond)

None

Reserved17

HCSINullField (Cond)

None

Reserved18

HCSINullField (Cond)

None

Reserved19

HCSINullField (Cond)

None

Reserved20

HCSINullField (Cond)

None

Reserved21

HCSINullField (Cond)

None

Reserved22

HCSINullField (Cond)

None

Reserved23

HCSINullField (Cond)

None

Reserved24

HCSINullField (Cond)

None

Reserved25

HCSINullField (Cond)

None

Reserved26

HCSINullField (Cond)

None

Reserved27

HCSINullField (Cond)

None

DescString

HCSIDescField (Cond)

None

AppId

XLEIntField (Cond)

None

AppData

HCSIAppField (Cond)

None

Extended

HCSINullField (Cond)

None

hcsi_fields = [<Field (PPI_Geotag_GPS).GPSFlags>, <Field (PPI_Geotag_GPS).Latitude>, <Field (PPI_Geotag_GPS).Longitude>, <Field (PPI_Geotag_GPS).Altitude>, <Field (PPI_Geotag_GPS).Altitude_g>, <Field (PPI_Geotag_GPS).GPSTime>, <Field (PPI_Geotag_GPS).FractionalTime>, <Field (PPI_Geotag_GPS).eph>, <Field (PPI_Geotag_GPS).epv>, <Field (PPI_Geotag_GPS).ept>, <Field (PPI_Geotag_GPS).Reserved10>, <Field (PPI_Geotag_GPS).Reserved11>, <Field (PPI_Geotag_GPS).Reserved12>, <Field (PPI_Geotag_GPS).Reserved13>, <Field (PPI_Geotag_GPS).Reserved14>, <Field (PPI_Geotag_GPS).Reserved15>, <Field (PPI_Geotag_GPS).Reserved16>, <Field (PPI_Geotag_GPS).Reserved17>, <Field (PPI_Geotag_GPS).Reserved18>, <Field (PPI_Geotag_GPS).Reserved19>, <Field (PPI_Geotag_GPS).Reserved20>, <Field (PPI_Geotag_GPS).Reserved21>, <Field (PPI_Geotag_GPS).Reserved22>, <Field (PPI_Geotag_GPS).Reserved23>, <Field (PPI_Geotag_GPS).Reserved24>, <Field (PPI_Geotag_GPS).Reserved25>, <Field (PPI_Geotag_GPS).Reserved26>, <Field (PPI_Geotag_GPS).Reserved27>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).DescString>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppId>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppData>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).Extended>]
class scapy.contrib.ppi_geotag.PPI_Geotag_Sensor

Bases: scapy.contrib.ppi_geotag.HCSIPacket

aliastypes
fields_desc
PPI_Geotag_Sensor fields

geotag_ver

ByteField

2

geotag_pad

ByteField

0

geotag_len

LEShortField

None

present

HCSIFlagsField (32 bits)

None

SensorType

LEShortEnumField (Cond)

None

ScaleFactor

SignedByteField (Cond)

None

Val_X

Fixed6_4Field (Cond)

None

Val_Y

Fixed6_4Field (Cond)

None

Val_Z

Fixed6_4Field (Cond)

None

Val_T

Fixed6_4Field (Cond)

None

Val_E

Fixed6_4Field (Cond)

None

Reserved07

HCSINullField (Cond)

None

Reserved08

HCSINullField (Cond)

None

Reserved09

HCSINullField (Cond)

None

Reserved10

HCSINullField (Cond)

None

Reserved11

HCSINullField (Cond)

None

Reserved12

HCSINullField (Cond)

None

Reserved13

HCSINullField (Cond)

None

Reserved14

HCSINullField (Cond)

None

Reserved15

HCSINullField (Cond)

None

Reserved16

HCSINullField (Cond)

None

Reserved17

HCSINullField (Cond)

None

Reserved18

HCSINullField (Cond)

None

Reserved19

HCSINullField (Cond)

None

Reserved20

HCSINullField (Cond)

None

Reserved21

HCSINullField (Cond)

None

Reserved22

HCSINullField (Cond)

None

Reserved23

HCSINullField (Cond)

None

Reserved24

HCSINullField (Cond)

None

Reserved25

HCSINullField (Cond)

None

Reserved26

HCSINullField (Cond)

None

Reserved27

HCSINullField (Cond)

None

DescString

HCSIDescField (Cond)

None

AppId

XLEIntField (Cond)

None

AppData

HCSIAppField (Cond)

None

Extended

HCSINullField (Cond)

None

hcsi_fields = [<Field (PPI_Geotag_Sensor).SensorType>, <Field (PPI_Geotag_Sensor).ScaleFactor>, <Field (PPI_Geotag_Sensor).Val_X>, <Field (PPI_Geotag_Sensor).Val_Y>, <Field (PPI_Geotag_Sensor).Val_Z>, <Field (PPI_Geotag_Sensor).Val_T>, <Field (PPI_Geotag_Sensor).Val_E>, <Field (PPI_Geotag_Sensor).Reserved07>, <Field (PPI_Geotag_Sensor).Reserved08>, <Field (PPI_Geotag_Sensor).Reserved09>, <Field (PPI_Geotag_Sensor).Reserved10>, <Field (PPI_Geotag_Sensor).Reserved11>, <Field (PPI_Geotag_Sensor).Reserved12>, <Field (PPI_Geotag_Sensor).Reserved13>, <Field (PPI_Geotag_Sensor).Reserved14>, <Field (PPI_Geotag_Sensor).Reserved15>, <Field (PPI_Geotag_Sensor).Reserved16>, <Field (PPI_Geotag_Sensor).Reserved17>, <Field (PPI_Geotag_Sensor).Reserved18>, <Field (PPI_Geotag_Sensor).Reserved19>, <Field (PPI_Geotag_Sensor).Reserved20>, <Field (PPI_Geotag_Sensor).Reserved21>, <Field (PPI_Geotag_Sensor).Reserved22>, <Field (PPI_Geotag_Sensor).Reserved23>, <Field (PPI_Geotag_Sensor).Reserved24>, <Field (PPI_Geotag_Sensor).Reserved25>, <Field (PPI_Geotag_Sensor).Reserved26>, <Field (PPI_Geotag_Sensor).Reserved27>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).DescString>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppId>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppData>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).Extended>]
class scapy.contrib.ppi_geotag.PPI_Geotag_Vector

Bases: scapy.contrib.ppi_geotag.HCSIPacket

aliastypes
fields_desc
PPI_Geotag_Vector fields

geotag_ver

ByteField

2

geotag_pad

ByteField

0

geotag_len

LEShortField

None

present

HCSIFlagsField (32 bits)

None

VectorFlags

VectorFlags_Field (Cond)

None

VectorChars

FlagsField (Cond) (32 bits)

None

Pitch

Fixed3_6Field (Cond)

None

Roll

Fixed3_6Field (Cond)

None

Heading

Fixed3_6Field (Cond)

None

Off_X

Fixed6_4Field (Cond)

None

Off_Y

Fixed6_4Field (Cond)

None

Off_Z

Fixed6_4Field (Cond)

None

Reserved08

HCSINullField (Cond)

None

Reserved09

HCSINullField (Cond)

None

Reserved10

HCSINullField (Cond)

None

Reserved11

HCSINullField (Cond)

None

Reserved12

HCSINullField (Cond)

None

Reserved13

HCSINullField (Cond)

None

Reserved14

HCSINullField (Cond)

None

Reserved15

HCSINullField (Cond)

None

Err_Rot

Fixed3_6Field (Cond)

None

Err_Off

Fixed6_4Field (Cond)

None

Reserved18

HCSINullField (Cond)

None

Reserved19

HCSINullField (Cond)

None

Reserved20

HCSINullField (Cond)

None

Reserved21

HCSINullField (Cond)

None

Reserved22

HCSINullField (Cond)

None

Reserved23

HCSINullField (Cond)

None

Reserved24

HCSINullField (Cond)

None

Reserved25

HCSINullField (Cond)

None

Reserved26

HCSINullField (Cond)

None

Reserved27

HCSINullField (Cond)

None

DescString

HCSIDescField (Cond)

None

AppId

XLEIntField (Cond)

None

AppData

HCSIAppField (Cond)

None

Extended

HCSINullField (Cond)

None

hcsi_fields = [<Field (PPI_Geotag_Vector).VectorFlags>, <Field (PPI_Geotag_Vector).VectorChars>, <Field (PPI_Geotag_Vector).Pitch>, <Field (PPI_Geotag_Vector).Roll>, <Field (PPI_Geotag_Vector).Heading>, <Field (PPI_Geotag_Vector).Off_X>, <Field (PPI_Geotag_Vector).Off_Y>, <Field (PPI_Geotag_Vector).Off_Z>, <Field (PPI_Geotag_Vector).Reserved08>, <Field (PPI_Geotag_Vector).Reserved09>, <Field (PPI_Geotag_Vector).Reserved10>, <Field (PPI_Geotag_Vector).Reserved11>, <Field (PPI_Geotag_Vector).Reserved12>, <Field (PPI_Geotag_Vector).Reserved13>, <Field (PPI_Geotag_Vector).Reserved14>, <Field (PPI_Geotag_Vector).Reserved15>, <Field (PPI_Geotag_Vector).Err_Rot>, <Field (PPI_Geotag_Vector).Err_Off>, <Field (PPI_Geotag_Vector).Reserved18>, <Field (PPI_Geotag_Vector).Reserved19>, <Field (PPI_Geotag_Vector).Reserved20>, <Field (PPI_Geotag_Vector).Reserved21>, <Field (PPI_Geotag_Vector).Reserved22>, <Field (PPI_Geotag_Vector).Reserved23>, <Field (PPI_Geotag_Vector).Reserved24>, <Field (PPI_Geotag_Vector).Reserved25>, <Field (PPI_Geotag_Vector).Reserved26>, <Field (PPI_Geotag_Vector).Reserved27>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).DescString>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppId>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).AppData>, <Field (PPI_Geotag_GPS,PPI_Geotag_Vector,PPI_Geotag_Sensor,PPI_Geotag_Antenna).Extended>]
class scapy.contrib.ppi_geotag.VectorFlags_Field(name, default)

Bases: scapy.fields.XLEIntField

Represents the VectorFlags field. Handles the RelativeTo:sub-field

any2i(pkt, x)
i2repr(pkt, x)