2.7. ipfix module

class ipfix.Data(*args, **kwargs)

Bases: scapy.all.Packet

extract_padding(s)
fields_desc = [scapy.all.StrLenField]
name = 'Data'
class ipfix.FieldSpecifier(*args, **kwargs)

Bases: scapy.all.Packet

extract_padding(s)
fields_desc = [scapy.all.ShortEnumField, scapy.all.ShortField]
name = 'Field Specifier'
class ipfix.IPFIX(*args, **kwargs)

Bases: scapy.all.Packet

fields_desc = [scapy.all.ShortField, scapy.all.ShortField, scapy.all.IntField, scapy.all.IntField, scapy.all.IntField]
name = 'IPFIX'
class ipfix.IPFIXDecoder

Bases: object

IPFIX data set decoder

add_template(template)

Add IPFIX template

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(*args, **kwargs)

Bases: scapy.all.Packet

fields_desc = [scapy.all.ShortField, scapy.all.ShortField]
guess_payload_class(payload)
name = 'Set'
class ipfix.Template(*args, **kwargs)

Bases: scapy.all.Packet

fields_desc = [scapy.all.ShortField, scapy.all.FieldLenField, scapy.all.PacketListField]
name = 'Template'