2.6. ipfix module

class ipfix.Data(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)

Bases: scapy.packet.Packet

aliastypes = [<class 'ipfix.Data'>, <class 'scapy.packet.Packet'>]
extract_padding(s)
fields_desc = [<Field (Data).data>]
class ipfix.FieldSpecifier(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)

Bases: scapy.packet.Packet

aliastypes = [<class 'ipfix.FieldSpecifier'>, <class 'scapy.packet.Packet'>]
extract_padding(s)
fields_desc = [<Field (FieldSpecifier).informationElement>, <Field (FieldSpecifier).fieldLength>]
class ipfix.IPFIX(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)

Bases: scapy.packet.Packet

aliastypes = [<class 'ipfix.IPFIX'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IPFIX).version>, <Field (IPFIX).length>, <Field (IPFIX).exportTime>, <Field (IPFIX).sequenceNumber>, <Field (IPFIX).observationDomainID>]
payload_guess = [({}, <class 'ipfix.Set'>)]
class ipfix.IPFIXDecoder

Bases: object

IPFIX data set decoder

add_template(template)

Add IPFIX tempalte

Parameters:template – IPFIX template
decode_data_set(data_set)

Decode IPFIX data

Parameters:data_set – IPFIX data set
Returns:List of decoded data records.
class ipfix.Set(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)

Bases: scapy.packet.Packet

aliastypes = [<class 'ipfix.Set'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (Set).setID>, <Field (Set).length>]
guess_payload_class(payload)
class ipfix.Template(_pkt='', post_transform=None, _internal=0, _underlayer=None, **fields)

Bases: scapy.packet.Packet

aliastypes = [<class 'ipfix.Template'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (Template).templateID>, <Field (Template).fieldCount>, <Field (Template).templateFields>]