scapy.contrib.ife module

IFE - ForCES Inter-FE LFB type


Alexander Aring,



This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


This module provides Scapy layers for the IFE protocol.

normative references:
class scapy.contrib.ife.IFE

Bases: scapy.packet.Packet

Main IFE Packet Class

aliastypes = [<class 'scapy.contrib.ife.IFE'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IFE).mdlen>, <Field (IFE).tlvs>]
class scapy.contrib.ife.IFETlv

Bases: scapy.packet.Packet

Parent Class interhit by all ForCES TLV strucutures

aliastypes = [<class 'scapy.contrib.ife.IFETlv'>, <class 'scapy.packet.Packet'>]

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 (IFETlv).type>, <Field (IFETlv).length>, <scapy.fields.MultipleTypeField object>]
class scapy.contrib.ife.IFETlvStr

Bases: scapy.contrib.ife.IFETlv

A IFE TLV with variable payload

aliastypes = [<class 'scapy.contrib.ife.IFETlvStr'>, <class 'scapy.contrib.ife.IFETlv'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (IFETlvStr).type>, <Field (IFETlvStr).length>, <Field (IFETlvStr).value>]