Exemple #1
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([Type4_LV('Facility', V='')])
     if self._initiator != 'Net':
         # MS to network direction
         self.extend([Type4_TLV('SSversion', T=0x7F, V='')])
     self._post_init(with_options, **kwargs)
Exemple #2
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('Cause', V='\0\x80'),
         Str('CallState', Pt='\0', Len=1, Repr='hex'),
         Type4_TLV('AuxState', T=0x24, V=AuxState())])
     self._post_init(with_options, **kwargs)
Exemple #3
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('Level', Pt=0, BitLen=4, Repr='hum'),
         Bit('spare', Pt=0, BitLen=4),
         Type4_TLV('Cause', T=0x8, V='\0\x80')])
     self._post_init(with_options, **kwargs)
Exemple #4
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([Type4_LV('Facility', V='')])
     if self._initiator != 'Net':
         # MS to network direction
         self.extend([Type4_TLV('SSversion', T=0x7F, V='')])
     self._post_init(with_options, **kwargs)
Exemple #5
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Exemple #6
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Str('RES', Pt='\0\0\0\0', Len=4, Repr='hex'),
         Type4_TLV('RESext', T=0x21, V='\0\0\0\0')])
     self.RESext.V.Repr = 'hex'
     self._post_init(with_options, **kwargs)
Exemple #7
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('Cause', V='\0\x80'),
         Str('CallState', Pt='\0', Len=1, Repr='hex'),
         Type4_TLV('AuxState', T=0x24, V=AuxState())])
     self._post_init(with_options, **kwargs)
Exemple #8
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('Level', Pt=0, BitLen=4, Repr='hum'),
         Bit('spare', Pt=0, BitLen=4),
         Type4_TLV('Cause', T=0x8, V='\0\x80')])
     self._post_init(with_options, **kwargs)
Exemple #9
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('Cause', Pt=2, Type='uint8', Dict=Reject_dict),
         Type4_TLV('AUTS', T=0x22, V=16*'\0')])
     self.AUTS.V.Repr = 'hex'
     self._post_init(with_options, **kwargs)
Exemple #10
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Exemple #11
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('spare', Pt=0, BitLen=2),
         Bit('SAPI', Pt=0, BitLen=2),
         Bit('SAPI_PD', Pt=6, BitLen=4, Dict=PD_dict, Repr='hum')])
     self._post_init(with_options, **kwargs)
Exemple #12
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('ForceStdby', ReprName='Force to standby', Pt=0, BitLen=4,
             Repr='hum', Dict=ForceStdby_dict),
         Bit('AttachResFOP', ReprName='Attach follow-on proceed',
             Pt=0, BitLen=1, Repr='hum', Dict=AttachResFOP_dict),
         Bit('AttachRes', ReprName='Attach result', Pt=1, BitLen=3,
             Repr='hum', Dict=AttachRes_dict),
         Int('GPRSTimer', ReprName='Periodic RA update timer', Pt=0,
             Type='uint8'),
         Bit('RadioPrio_2', ReprName='Radio priority 2', Pt=1, BitLen=4),
         Bit('RadioPrio', ReprName='Radio priority', Pt=1, BitLen=4),
         Str('RAI', ReprName='Routing area identification', Pt=6*'\0',
             Len=6),
         Type3_TV('PTMSISign', ReprName='Old P-TMSI signature', T=0x19,
                  V=3*'\0', Len=3),
         Type3_TV('GPRSTimer_2', ReprName='Negotiated READY timer', T=0x17,
                  V='\0', Len=1),
         Type4_TLV('ID', ReprName='Allocated P-TMSI', T=0x18,
                   V=ID(type='TMSI')),
         Type4_TLV('ID_2', ReprName='MS identity', T=0x23, V=ID()),
         Type3_TV('GMMCause', T=0x25, V='\x01', Len=1), # see GMMCause_dict
         Type4_TLV('T3302', T=0x2A, V='\0'),
         Type2('CellNotif', T=0x8C),
         Type4_TLV('PLMNList', ReprName='Equivalent PLMNs', T=0x4A, 
                   V=PLMNList()),
         Type1_TV('NetFeatSupport', T=0xA, V=0),
         Type4_TLV('T3319', T=0x37, V='\0'),
         Type4_TLV('T3323', T=0x38, V='\0'),
         ])
     self._post_init(with_options, **kwargs)
Exemple #13
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('GMMCause', Pt=1, Type='uint8', Dict=GMMCause_dict),
         Type4_TLV('T3302', T=0x2A, V='\0'),
         ])
     self._post_init(with_options, **kwargs)
Exemple #14
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('BearerCap', V=BearerCap()),
         Type4_LV('Cause', V='\0\x80'),
         Type4_TLV('LowLayerComp', T=0x7C, V=''),
         Type4_TLV('HighLayerComp', T=0x7D, V='')])
     self._post_init(with_options, **kwargs)
Exemple #15
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('BearerCap', V=BearerCap()),
         Type4_LV('Cause', V='\0\x80'),
         Type4_TLV('LowLayerComp', T=0x7C, V=''),
         Type4_TLV('HighLayerComp', T=0x7D, V='')])
     self._post_init(with_options, **kwargs)
Exemple #16
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('SMCause', Pt=111, Type='uint8', Dict=SMCause_dict),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config Options',
                   T=0x35, V='\0')
         ])
     self._post_init(with_options, **kwargs)
Exemple #17
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('GMMCause', Pt=1, Type='uint8', Dict=GMMCause_dict),
         Type4_TLV('AUTS', T=0x30, V=14*'\0'),
         ])
     self.AUTS.V.Repr = 'hex'
     self._post_init(with_options, **kwargs)
Exemple #18
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('ForceStdby', ReprName='Force to standby', Pt=0, BitLen=4,
             Repr='hum', Dict=ForceStdby_dict),
         Bit('IDtype', Pt=1, BitLen=4, Repr='hum', Dict=IDType_dict)
         ])
     self._post_init(with_options, **kwargs)
Exemple #19
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('SMCause', Pt=111, Type='uint8', Dict=SMCause_dict),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config Options',
                   T=0x35, V='\0')
         ])
     self._post_init(with_options, **kwargs)
Exemple #20
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('BearerCap', V=BearerCap()),
         Type4_TLV('LowLayerComp', T=0x7C, V=''),
         Type4_TLV('HighLayerComp', T=0x7D, V=''),
         Type2('Reverse', T=0xA3),
         Type2('UpgradeInd', T=0xA4)])
     self._post_init(with_options, **kwargs)
Exemple #21
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('PDPAddr', ReprName='Offered PDP address', V='\0\x01'),
         Type4_TLV('APN', ReprName='Access point name', T=0x28, V='\0'),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Exemple #22
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('PDPCtxStat', ReprName='PDP context status', T=0x32,
                   V='\0\0'),
         Type4_TLV('MBMSCtxStat', ReprName='MBMS context status', T=0x35,
                   V=''),
         ])
     self._post_init(with_options, **kwargs)
Exemple #23
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('BearerCap', V=BearerCap()),
         Type4_TLV('LowLayerComp', T=0x7C, V=''),
         Type4_TLV('HighLayerComp', T=0x7D, V=''),
         Type2('Reverse', T=0xA3),
         Type2('UpgradeInd', T=0xA4)])
     self._post_init(with_options, **kwargs)
Exemple #24
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('IRAT_HO', ReprName='Inter-RAT HO info container',
                   T=0x27, V='\0'),
         Type4_TLV('EUTRAN_IRAT_HO', ReprName='EUTRAN Inter-RAT HO info container',
                   T=0x2B, V='\0'),
         ])
     self._post_init(with_options, **kwargs)
Exemple #25
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('PDPAddr', ReprName='Offered PDP address', V='\0\x01'),
         Type4_TLV('APN', ReprName='Access point name', T=0x28, V='\0'),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Exemple #26
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('TMGI', ReprName='Temporary mobile group id', V='\0\0\0'),
         Int('LLC_SAPI', ReprName='Negociated LLC service access point id',
             Pt=0, Type='uint8', Dict=LLCSAPI_dict),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config Options',
                   T=0x35, V='\0')
         ])
     self._post_init(with_options, **kwargs)
Exemple #27
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('Facility', T=0x1C, V=''),
         Type4_TLV('ProgressInd', T=0x1E, V='\x80\x80'),
         Type4_TLV('UU', ReprName='User-User', T=0x7E, \
                   V='\0'),
         Type4_TLV('SS', ReprName='Supplementary Service version indicator',\
                   T=0x7F, V='', Trans=True)])
     self._post_init(with_options, **kwargs)
Exemple #28
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('QoS', ReprName='Requested QoS', V=QoS()),
         Type4_LV('LinkedTI', V='\0'),
         Type4_TLV('TFT', ReprName='Traffic flow template', T=0x36, V='\0'),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Exemple #29
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     if self._initiator != 'Net':
         # Mobile originating detach procedure
         self.extend([ \
         Bit('spare', Pt=0, BitLen=4, Repr='hex'),
         Bit('ForceStdby', ReprName='Force to standby', Pt=0, BitLen=4,
             Repr='hum', Dict=ForceStdby_dict),
             ])
     self._post_init(with_options, **kwargs)
Exemple #30
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('TMGI', ReprName='Temporary mobile group id', V='\0\0\0'),
         Int('LLC_SAPI', ReprName='Negociated LLC service access point id',
             Pt=0, Type='uint8', Dict=LLCSAPI_dict),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config Options',
                   T=0x35, V='\0')
         ])
     self._post_init(with_options, **kwargs)
Exemple #31
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('StreamId', T=0x2D, V='\0'),
         Type4_TLV('SuppCodecs', ReprName='Supported codecs list', \
                   T=0x40, V='\0\0\0'),
         Type4_TLV('EC', ReprName='Emergency Category', \
                   T=0x2E, V='\0')])
     self._post_init(with_options, **kwargs)
Exemple #32
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('Facility', T=0x1C, V=''),
         Type4_TLV('ProgressInd', T=0x1E, V='\x80\x80'),
         Type4_TLV('UU', ReprName='User-User', T=0x7E, \
                   V='\0'),
         Type4_TLV('SS', ReprName='Supplementary Service version indicator',\
                   T=0x7F, V='', Trans=True)])
     self._post_init(with_options, **kwargs)
Exemple #33
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('CKSN', ReprName='Ciphering Key Sequence Number', \
             Pt=0, BitLen=4, Dict=CKSN_dict, Repr='hum'),
         Bit('Service', Pt=1, BitLen=4, Dict=CMService_dict, Repr='hum'),
         Type4_LV('MSCm2', V=MSCm2()),
         Type4_LV('ID', V=ID()),
         Type1_TV('Priority', T=0x8, V=0)])
     self._post_init(with_options, **kwargs)
Exemple #34
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('spare', Pt=0, BitLen=4),
         Bit('CKSN', ReprName='Ciphering Key Sequence Number', \
             Pt=0, BitLen=4, Dict=CKSN_dict, Repr='hum'),
         Str('RAND', Pt=16*'\0', Len=16, Repr='hex'),
         Type4_TLV('AUTN', T=0x20, V=16*'\0')])
     self.AUTN.V.Repr = 'hex'
     self._post_init(with_options, **kwargs)
Exemple #35
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('StreamId', T=0x2D, V='\0'),
         Type4_TLV('SuppCodecs', ReprName='Supported codecs list', \
                   T=0x40, V='\0\0\0'),
         Type4_TLV('EC', ReprName='Emergency Category', \
                   T=0x2E, V='\0')])
     self._post_init(with_options, **kwargs)
Exemple #36
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('QoS', ReprName='Requested QoS', V=QoS()),
         Type4_LV('LinkedTI', V='\0'),
         Type4_TLV('TFT', ReprName='Traffic flow template', T=0x36, V='\0'),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Exemple #37
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('GMMCause', Pt=1, Type='uint8', Dict=GMMCause_dict),
         Bit('spare', Pt=0, BitLen=4, Repr='hex'),
         Bit('ForceStdby', ReprName='Force to standby', Pt=0, BitLen=4,
             Repr='hum', Dict=ForceStdby_dict),
         Type4_TLV('T3302', T=0x2A, V='\0'),
         ])
     self._post_init(with_options, **kwargs)
Exemple #38
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('spare', Pt=0, BitLen=4),
         Bit('CKSN', ReprName='Ciphering Key Sequence Number', \
             Pt=0, BitLen=4, Dict=CKSN_dict, Repr='hum'),
         Type4_LV('MSCm2', V=MSCm2()),
         Type4_LV('ID', V=ID()),
         Type3_TV('LAI', T=0x13, V=LAI(), Len=5)])
     self._post_init(with_options, **kwargs)
Exemple #39
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('NSAPI', ReprName='Linked network access point id',
             Pt=128, Type='uint8'),
         Type4_LV('PDPAddr', ReprName='Offered multicast address', V='\0\x01'),
         Type4_LV('APN', ReprName='Access point name', V='\0'),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config Options',
                   T=0x35, V='\0') 
         ])
     self._post_init(with_options, **kwargs)
Exemple #40
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('NSAPI', ReprName='Linked network access point id',
             Pt=128, Type='uint8'),
         Type4_LV('PDPAddr', ReprName='Offered multicast address', V='\0\x01'),
         Type4_LV('APN', ReprName='Access point name', V='\0'),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config Options',
                   T=0x35, V='\0')
         ])
     self._post_init(with_options, **kwargs)
Exemple #41
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('Cause', T=0x08, V='\0\x80'),
         Type4_TLV('Facility', T=0x1C, V=''),
         Type4_TLV('UU', ReprName='User-User', T=0x7E, \
                   V='\0')])
     if self._initiator != 'Net':
         # MS to network direction
         self.extend([Type4_TLV('SSversion', T=0x7F, V='')])
     self._post_init(with_options, **kwargs)
Exemple #42
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('Cause', T=0x08, V='\0\x80'),
         Type4_TLV('Facility', T=0x1C, V=''),
         Type4_TLV('UU', ReprName='User-User', T=0x7E, \
                   V='\0')])
     if self._initiator != 'Net':
         # MS to network direction
         self.extend([Type4_TLV('SSversion', T=0x7F, V='')])
     self._post_init(with_options, **kwargs)
Exemple #43
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Str('LAI', Pt=LAI(), Len=5),
         Type4_TLV('ID', T=0x17, V=ID()),
         Type2('FollowOnProceed', T=0xA1),
         Type2('CTSperm', T=0xA2),
         Type4_TLV('PLMNList', T=0x4A, V=PLMNList()),
         Type4_TLV('ECNList', ReprName='Emergency Number List', T=0x34, \
                   V='\0\0\0')])
     self._post_init(with_options, **kwargs)
Exemple #44
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('BearerCap_2', T=0x4, V=BearerCap(), Trans=True),
         Type4_TLV('Cause', T=0x8, V='\0\x80'),
         Type4_TLV('SuppCodecs', ReprName='Supported codecs list', \
                   T=0x40, V='\0\0\0')])
     self._post_init(with_options, **kwargs)
Exemple #45
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type1_TV('RepeatInd', T=0xD, V=1, Dict=Repeat_dict, \
                  Trans=True),
         Type4_TLV('BearerCap', T=0x4, V=BearerCap()),
         Type4_TLV('BearerCap_2', T=0x4, V=BearerCap(), Trans=True),
         Type4_TLV('Cause', T=0x8, V='\0\x80'),
         Type4_TLV('SuppCodecs', ReprName='Supported codecs list', \
                   T=0x40, V='\0\0\0')])
     self._post_init(with_options, **kwargs)