Example #1
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)
Example #2
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)
Example #3
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)
Example #4
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)
Example #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'),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config options',
                   T=0x35, V='\0')
         ])
     self._post_init(with_options, **kwargs)
Example #6
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)
Example #7
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)
Example #8
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)
Example #9
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)
Example #10
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)
Example #11
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type3_TV('LLC_SAPI', ReprName='Requested LLC service access point id',
                  T=0x32, V='\0', Len=1),
         Type4_TLV('QoS', ReprName='New QoS', T=0x30, V=QoS()),
         Type4_TLV('TFT', ReprName='New traffic flow template', T=0x31, V='\0'),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Example #12
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)
Example #13
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)
Example #14
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('SMCause', Pt=111, Type='uint8', Dict=SMCause_dict),
         Type1_TV('TearDownInd', ReprName='TI tear down requested',
                  T=0x9, V=0),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80'),
         Type4_TLV('MBMSProtConfig', ReprName='MBMS Protocol Config Options',
                   T=0x35, V='\0')
         ])
     self._post_init(with_options, **kwargs)
Example #15
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('QoS', ReprName='Negociated QoS', T=0x30, V=QoS()),
         Type3_TV('LLC_SAPI', ReprName='Negociated LLC service access point id',
                  T=0x32, V='\0', Len=1),
         Type1_TV('RadioPrio', ReprName='New padio priority', T=0x8, V=1),
         Type4_TLV('PFlowID', ReprName='Packet flow id', T=0x34, V='\0'),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Example #16
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('Facility', T=0x1C, V=''),
         Type4_TLV('ProgressInd', T=0x1E, V='\x80\x80'),
         Type1_TV('Priority', T=0x8, V=0),
         Type4_TLV('NetCCCap', T=0x2F, V='\0')])
     self._post_init(with_options, **kwargs)
Example #17
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('spare', Pt=0, BitLen=4, Repr='hex'),
         Bit('ACRef', ReprName='A&C reference numver', Pt=0, BitLen=4,
             Repr='hex'),
         Type3_TV('RES', T=0x22, V='\0\0\0\0', Len=4),
         Type4_TLV('IMEISV', T=0x23, V=9*'\0'),
         Type4_TLV('RESext', T=0x29, V='\0\0\0\0'),
         ])
     self.RES.V.Repr = 'hex'
     self.RESext.V.Repr = 'hex'
     self._post_init(with_options, **kwargs)
Example #18
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('LLC_SAPI', ReprName='Negociated LLC service access point id',
             Pt=0, Type='uint8', Dict=LLCSAPI_dict),
         Type4_LV('QoS', ReprName='Negociated QoS', V=QoS()),
         Bit('spare', Pt=0, BitLen=4),
         Bit('RadioPrio', ReprName='Radio priority', Pt=1, BitLen=4),
         Type4_TLV('PFlowID', ReprName='Packet flow id', T=0x34, V='\0'),
         Type4_TLV('ProtConfig', ReprName='Protocol Config Options',
                   T=0x27, V='\x80')
         ])
     self._post_init(with_options, **kwargs)
Example #19
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_TLV('NetFullName', T=0x43, V='\0'),
         Type4_TLV('NetShortName', T=0x45, V='\0'),
         Type3_TV('TZ', ReprName='Local Time Zone', T=0x46, \
            V='\0', Len=1),
         Type3_TV('TZTime', ReprName='Time Zone and Time',\
                  T=0x47, V='\0\0\0\0\0\0\0', Len=7),
         Type4_TLV('LSAid', ReprName='Localised Service Area Identity', \
                   T=0x48, V=''),
         Type4_TLV('DTime', ReprName='Daylight Saving Time',\
                   T=0x49, V='\0')])
     self._post_init(with_options, **kwargs)
Example #20
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('NSAPI', ReprName='Requested network access point id',
             Pt=5, Type='uint8'),
         Int('LLC_SAPI', ReprName='Requested LLC service access point id',
             Pt=0, Type='uint8', Dict=LLCSAPI_dict),
         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)
Example #21
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)
Example #22
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)
Example #23
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)
Example #24
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)
Example #25
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)
Example #26
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Int('NSAPI', ReprName='Requested Network Access Point ID',
             Pt=5, Type='uint8'),
         Int('LLC_SAPI', ReprName='Requested LLC Service Access Point ID',
             Pt=0, Type='uint8', Dict=LLCSAPI_dict),
         Type4_LV('QoS', ReprName='Requested QoS', V=QoS()),
         Type4_LV('PDPAddr', ReprName='Requested 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'),
         Type1_TV('ReqType', ReprName='Request type', T=0xA, V=1,
                  Dict=RequestType_dict)
         ])
     self._post_init(with_options, **kwargs)
Example #27
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)
Example #28
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Bit('ServiceType', Pt=0, BitLen=4, Repr='hum',
             Dict=ServiceType_dict),
         Bit('CKSN', ReprName='GPRS ciphering key sequence number',
             Pt=0, BitLen=4, Dict=CKSN_dict),
         Type4_LV('ID', V=ID(type='TMSI')),
         Type4_TLV('PDPCtxStat', ReprName='PDP context status', T=0x32,
                   V='\0\0'),
         Type4_TLV('MBMSCtxStat', ReprName='MBMS context status', T=0x35,
                   V=''),
         Type4_TLV('ULDataStat', ReprName='Uplink data status', T=0x36,
                   V='\0\0'),
         ])
     self._post_init(with_options, **kwargs)
Example #29
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)
Example #30
0
 def __init__(self, with_options=True, **kwargs):
     Layer3.__init__(self)
     self.extend([ \
         Type4_LV('Cause',V='\0\x80'),
         Type4_TLV('Facility', T=0x1C, V='')])
     if self._initiator == 'Net':
         # network to MS direction
         self.extend([ \
         Type4_TLV('ProgressInd', T=0x1E, V='\x80\x80'),
         Type4_TLV('UU', ReprName='User-User', T=0x7E, \
                   V='\0'),
         Type4_TLV('AA', ReprName='Allowed Actions (CCBS)', \
                   T=0x7B, V='\0')])
     else:
         # MS to network direction
         self.extend([Type4_TLV('SSversion', T=0x7F, V='')])
     self._post_init(with_options, **kwargs)