scapy.contrib.ife

IFE - ForCES Inter-FE LFB type

author:

Alexander Aring, aring@mojatatu.com

description:

This module provides Scapy layers for the IFE protocol.

normative references:
class scapy.contrib.ife.IFE(_pkt, /, *, mdlen=None, tlvs=[])[源代码]

基类:Packet

Main IFE Packet Class

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             MDLEN             |              TLVS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                             Fig. IFE                             
IFE fields

mdlen

FieldLenField

None

tlvs

PacketListField

[]

class scapy.contrib.ife.IFETlv(_pkt, /, *, type=0, length=None, value=None)[源代码]

基类:Packet

Parent Class interhit by all ForCES TLV strucutures

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |             LENGTH            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             VALUE                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           Fig. IFETlv                            
IFETlv fields

type

ShortEnumField

0

length

FieldLenField

None

value

MultipleTypeField (PadField, PadField, PadField)

0

class scapy.contrib.ife.IFETlvStr(_pkt, /, *, type=0, length=None, value=b'')[源代码]

基类:IFETlv

A IFE TLV with variable payload

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |             LENGTH            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             VALUE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. IFETlvStr                          
IFETlvStr fields

type

ShortEnumField

0

length

FieldLenField

None

value

StrField

b''