id
int32 0
252k
| repo
stringlengths 7
55
| path
stringlengths 4
127
| func_name
stringlengths 1
88
| original_string
stringlengths 75
19.8k
| language
stringclasses 1
value | code
stringlengths 75
19.8k
| code_tokens
sequence | docstring
stringlengths 3
17.3k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 87
242
|
---|---|---|---|---|---|---|---|---|---|---|---|
4,300 | phaethon/kamene | kamene/utils.py | PcapWriter.get_packet_time | def get_packet_time(self, pkt):
"""Return the second and micro-second timestamp components for a packet."""
if pkt.sent_time:
t = pkt.sent_time
sec = int(t)
else:
t = pkt.time
sec = int(t)
usec = int(round((t-sec)*1000000))
return (sec,usec) | python | def get_packet_time(self, pkt):
"""Return the second and micro-second timestamp components for a packet."""
if pkt.sent_time:
t = pkt.sent_time
sec = int(t)
else:
t = pkt.time
sec = int(t)
usec = int(round((t-sec)*1000000))
return (sec,usec) | [
"def",
"get_packet_time",
"(",
"self",
",",
"pkt",
")",
":",
"if",
"pkt",
".",
"sent_time",
":",
"t",
"=",
"pkt",
".",
"sent_time",
"sec",
"=",
"int",
"(",
"t",
")",
"else",
":",
"t",
"=",
"pkt",
".",
"time",
"sec",
"=",
"int",
"(",
"t",
")",
"usec",
"=",
"int",
"(",
"round",
"(",
"(",
"t",
"-",
"sec",
")",
"*",
"1000000",
")",
")",
"return",
"(",
"sec",
",",
"usec",
")"
] | Return the second and micro-second timestamp components for a packet. | [
"Return",
"the",
"second",
"and",
"micro",
"-",
"second",
"timestamp",
"components",
"for",
"a",
"packet",
"."
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/utils.py#L949-L958 |
4,301 | phaethon/kamene | kamene/layers/ipsec.py | zero_mutable_fields | def zero_mutable_fields(pkt, sending=False):
"""
When using AH, all "mutable" fields must be "zeroed" before calculating
the ICV. See RFC 4302, Section 3.3.3.1. Handling Mutable Fields.
@param pkt: an IP(v6) packet containing an AH layer.
NOTE: The packet will be modified
@param sending: if true, ipv6 routing headers will not be reordered
"""
if pkt.haslayer(AH):
pkt[AH].icv = chr(0) * len(pkt[AH].icv)
else:
raise TypeError('no AH layer found')
if pkt.version == 4:
# the tos field has been replaced by DSCP and ECN
# Routers may rewrite the DS field as needed to provide a
# desired local or end-to-end service
pkt.tos = 0
# an intermediate router might set the DF bit, even if the source
# did not select it.
pkt.flags = 0
# changed en route as a normal course of processing by routers
pkt.ttl = 0
# will change if any of these other fields change
pkt.chksum = 0
immutable_opts = []
for opt in pkt.options:
if opt.option in IMMUTABLE_IPV4_OPTIONS:
immutable_opts.append(opt)
else:
immutable_opts.append(Raw(chr(0) * len(opt)))
pkt.options = immutable_opts
else:
# holds DSCP and ECN
pkt.tc = 0
# The flow label described in AHv1 was mutable, and in RFC 2460 [DH98]
# was potentially mutable. To retain compatibility with existing AH
# implementations, the flow label is not included in the ICV in AHv2.
pkt.fl = 0
# same as ttl
pkt.hlim = 0
next_hdr = pkt.payload
while isinstance(next_hdr, (IPv6ExtHdrHopByHop, IPv6ExtHdrRouting, IPv6ExtHdrDestOpt)):
if isinstance(next_hdr, (IPv6ExtHdrHopByHop, IPv6ExtHdrDestOpt)):
for opt in next_hdr.options:
if opt.otype & 0x20:
# option data can change en-route and must be zeroed
opt.optdata = chr(0) * opt.optlen
elif isinstance(next_hdr, IPv6ExtHdrRouting) and sending:
# The sender must order the field so that it appears as it
# will at the receiver, prior to performing the ICV computation.
next_hdr.segleft = 0
if next_hdr.addresses:
final = next_hdr.addresses.pop()
next_hdr.addresses.insert(0, pkt.dst)
pkt.dst = final
else:
break
next_hdr = next_hdr.payload
return pkt | python | def zero_mutable_fields(pkt, sending=False):
"""
When using AH, all "mutable" fields must be "zeroed" before calculating
the ICV. See RFC 4302, Section 3.3.3.1. Handling Mutable Fields.
@param pkt: an IP(v6) packet containing an AH layer.
NOTE: The packet will be modified
@param sending: if true, ipv6 routing headers will not be reordered
"""
if pkt.haslayer(AH):
pkt[AH].icv = chr(0) * len(pkt[AH].icv)
else:
raise TypeError('no AH layer found')
if pkt.version == 4:
# the tos field has been replaced by DSCP and ECN
# Routers may rewrite the DS field as needed to provide a
# desired local or end-to-end service
pkt.tos = 0
# an intermediate router might set the DF bit, even if the source
# did not select it.
pkt.flags = 0
# changed en route as a normal course of processing by routers
pkt.ttl = 0
# will change if any of these other fields change
pkt.chksum = 0
immutable_opts = []
for opt in pkt.options:
if opt.option in IMMUTABLE_IPV4_OPTIONS:
immutable_opts.append(opt)
else:
immutable_opts.append(Raw(chr(0) * len(opt)))
pkt.options = immutable_opts
else:
# holds DSCP and ECN
pkt.tc = 0
# The flow label described in AHv1 was mutable, and in RFC 2460 [DH98]
# was potentially mutable. To retain compatibility with existing AH
# implementations, the flow label is not included in the ICV in AHv2.
pkt.fl = 0
# same as ttl
pkt.hlim = 0
next_hdr = pkt.payload
while isinstance(next_hdr, (IPv6ExtHdrHopByHop, IPv6ExtHdrRouting, IPv6ExtHdrDestOpt)):
if isinstance(next_hdr, (IPv6ExtHdrHopByHop, IPv6ExtHdrDestOpt)):
for opt in next_hdr.options:
if opt.otype & 0x20:
# option data can change en-route and must be zeroed
opt.optdata = chr(0) * opt.optlen
elif isinstance(next_hdr, IPv6ExtHdrRouting) and sending:
# The sender must order the field so that it appears as it
# will at the receiver, prior to performing the ICV computation.
next_hdr.segleft = 0
if next_hdr.addresses:
final = next_hdr.addresses.pop()
next_hdr.addresses.insert(0, pkt.dst)
pkt.dst = final
else:
break
next_hdr = next_hdr.payload
return pkt | [
"def",
"zero_mutable_fields",
"(",
"pkt",
",",
"sending",
"=",
"False",
")",
":",
"if",
"pkt",
".",
"haslayer",
"(",
"AH",
")",
":",
"pkt",
"[",
"AH",
"]",
".",
"icv",
"=",
"chr",
"(",
"0",
")",
"*",
"len",
"(",
"pkt",
"[",
"AH",
"]",
".",
"icv",
")",
"else",
":",
"raise",
"TypeError",
"(",
"'no AH layer found'",
")",
"if",
"pkt",
".",
"version",
"==",
"4",
":",
"# the tos field has been replaced by DSCP and ECN",
"# Routers may rewrite the DS field as needed to provide a",
"# desired local or end-to-end service",
"pkt",
".",
"tos",
"=",
"0",
"# an intermediate router might set the DF bit, even if the source",
"# did not select it.",
"pkt",
".",
"flags",
"=",
"0",
"# changed en route as a normal course of processing by routers",
"pkt",
".",
"ttl",
"=",
"0",
"# will change if any of these other fields change",
"pkt",
".",
"chksum",
"=",
"0",
"immutable_opts",
"=",
"[",
"]",
"for",
"opt",
"in",
"pkt",
".",
"options",
":",
"if",
"opt",
".",
"option",
"in",
"IMMUTABLE_IPV4_OPTIONS",
":",
"immutable_opts",
".",
"append",
"(",
"opt",
")",
"else",
":",
"immutable_opts",
".",
"append",
"(",
"Raw",
"(",
"chr",
"(",
"0",
")",
"*",
"len",
"(",
"opt",
")",
")",
")",
"pkt",
".",
"options",
"=",
"immutable_opts",
"else",
":",
"# holds DSCP and ECN",
"pkt",
".",
"tc",
"=",
"0",
"# The flow label described in AHv1 was mutable, and in RFC 2460 [DH98]",
"# was potentially mutable. To retain compatibility with existing AH",
"# implementations, the flow label is not included in the ICV in AHv2.",
"pkt",
".",
"fl",
"=",
"0",
"# same as ttl",
"pkt",
".",
"hlim",
"=",
"0",
"next_hdr",
"=",
"pkt",
".",
"payload",
"while",
"isinstance",
"(",
"next_hdr",
",",
"(",
"IPv6ExtHdrHopByHop",
",",
"IPv6ExtHdrRouting",
",",
"IPv6ExtHdrDestOpt",
")",
")",
":",
"if",
"isinstance",
"(",
"next_hdr",
",",
"(",
"IPv6ExtHdrHopByHop",
",",
"IPv6ExtHdrDestOpt",
")",
")",
":",
"for",
"opt",
"in",
"next_hdr",
".",
"options",
":",
"if",
"opt",
".",
"otype",
"&",
"0x20",
":",
"# option data can change en-route and must be zeroed",
"opt",
".",
"optdata",
"=",
"chr",
"(",
"0",
")",
"*",
"opt",
".",
"optlen",
"elif",
"isinstance",
"(",
"next_hdr",
",",
"IPv6ExtHdrRouting",
")",
"and",
"sending",
":",
"# The sender must order the field so that it appears as it",
"# will at the receiver, prior to performing the ICV computation.",
"next_hdr",
".",
"segleft",
"=",
"0",
"if",
"next_hdr",
".",
"addresses",
":",
"final",
"=",
"next_hdr",
".",
"addresses",
".",
"pop",
"(",
")",
"next_hdr",
".",
"addresses",
".",
"insert",
"(",
"0",
",",
"pkt",
".",
"dst",
")",
"pkt",
".",
"dst",
"=",
"final",
"else",
":",
"break",
"next_hdr",
"=",
"next_hdr",
".",
"payload",
"return",
"pkt"
] | When using AH, all "mutable" fields must be "zeroed" before calculating
the ICV. See RFC 4302, Section 3.3.3.1. Handling Mutable Fields.
@param pkt: an IP(v6) packet containing an AH layer.
NOTE: The packet will be modified
@param sending: if true, ipv6 routing headers will not be reordered | [
"When",
"using",
"AH",
"all",
"mutable",
"fields",
"must",
"be",
"zeroed",
"before",
"calculating",
"the",
"ICV",
".",
"See",
"RFC",
"4302",
"Section",
"3",
".",
"3",
".",
"3",
".",
"1",
".",
"Handling",
"Mutable",
"Fields",
"."
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/layers/ipsec.py#L655-L722 |
4,302 | phaethon/kamene | kamene/layers/ipsec.py | CryptAlgo.decrypt | def decrypt(self, esp, key, icv_size=None):
"""
Decrypt an ESP packet
@param esp: an encrypted ESP packet
@param key: the secret key used for encryption
@param icv_size: the length of the icv used for integrity check
@return: a valid ESP packet encrypted with this algorithm
@raise IPSecIntegrityError: if the integrity check fails with an AEAD
algorithm
"""
if icv_size is None:
icv_size = self.icv_size if self.is_aead else 0
iv = esp.data[:self.iv_size]
data = esp.data[self.iv_size:len(esp.data) - icv_size]
icv = esp.data[len(esp.data) - icv_size:]
if self.cipher:
cipher = self.new_cipher(key, iv, icv)
decryptor = cipher.decryptor()
if self.is_aead:
# Tag value check is done during the finalize method
decryptor.authenticate_additional_data(
struct.pack('!LL', esp.spi, esp.seq)
)
try:
data = decryptor.update(data) + decryptor.finalize()
except InvalidTag as err:
raise IPSecIntegrityError(err)
# extract padlen and nh
padlen = (data[-2])
nh = data[-1]
# then use padlen to determine data and padding
data = data[:len(data) - padlen - 2]
padding = data[len(data) - padlen - 2: len(data) - 2]
return _ESPPlain(spi=esp.spi,
seq=esp.seq,
iv=iv,
data=data,
padding=padding,
padlen=padlen,
nh=nh,
icv=icv) | python | def decrypt(self, esp, key, icv_size=None):
"""
Decrypt an ESP packet
@param esp: an encrypted ESP packet
@param key: the secret key used for encryption
@param icv_size: the length of the icv used for integrity check
@return: a valid ESP packet encrypted with this algorithm
@raise IPSecIntegrityError: if the integrity check fails with an AEAD
algorithm
"""
if icv_size is None:
icv_size = self.icv_size if self.is_aead else 0
iv = esp.data[:self.iv_size]
data = esp.data[self.iv_size:len(esp.data) - icv_size]
icv = esp.data[len(esp.data) - icv_size:]
if self.cipher:
cipher = self.new_cipher(key, iv, icv)
decryptor = cipher.decryptor()
if self.is_aead:
# Tag value check is done during the finalize method
decryptor.authenticate_additional_data(
struct.pack('!LL', esp.spi, esp.seq)
)
try:
data = decryptor.update(data) + decryptor.finalize()
except InvalidTag as err:
raise IPSecIntegrityError(err)
# extract padlen and nh
padlen = (data[-2])
nh = data[-1]
# then use padlen to determine data and padding
data = data[:len(data) - padlen - 2]
padding = data[len(data) - padlen - 2: len(data) - 2]
return _ESPPlain(spi=esp.spi,
seq=esp.seq,
iv=iv,
data=data,
padding=padding,
padlen=padlen,
nh=nh,
icv=icv) | [
"def",
"decrypt",
"(",
"self",
",",
"esp",
",",
"key",
",",
"icv_size",
"=",
"None",
")",
":",
"if",
"icv_size",
"is",
"None",
":",
"icv_size",
"=",
"self",
".",
"icv_size",
"if",
"self",
".",
"is_aead",
"else",
"0",
"iv",
"=",
"esp",
".",
"data",
"[",
":",
"self",
".",
"iv_size",
"]",
"data",
"=",
"esp",
".",
"data",
"[",
"self",
".",
"iv_size",
":",
"len",
"(",
"esp",
".",
"data",
")",
"-",
"icv_size",
"]",
"icv",
"=",
"esp",
".",
"data",
"[",
"len",
"(",
"esp",
".",
"data",
")",
"-",
"icv_size",
":",
"]",
"if",
"self",
".",
"cipher",
":",
"cipher",
"=",
"self",
".",
"new_cipher",
"(",
"key",
",",
"iv",
",",
"icv",
")",
"decryptor",
"=",
"cipher",
".",
"decryptor",
"(",
")",
"if",
"self",
".",
"is_aead",
":",
"# Tag value check is done during the finalize method",
"decryptor",
".",
"authenticate_additional_data",
"(",
"struct",
".",
"pack",
"(",
"'!LL'",
",",
"esp",
".",
"spi",
",",
"esp",
".",
"seq",
")",
")",
"try",
":",
"data",
"=",
"decryptor",
".",
"update",
"(",
"data",
")",
"+",
"decryptor",
".",
"finalize",
"(",
")",
"except",
"InvalidTag",
"as",
"err",
":",
"raise",
"IPSecIntegrityError",
"(",
"err",
")",
"# extract padlen and nh",
"padlen",
"=",
"(",
"data",
"[",
"-",
"2",
"]",
")",
"nh",
"=",
"data",
"[",
"-",
"1",
"]",
"# then use padlen to determine data and padding",
"data",
"=",
"data",
"[",
":",
"len",
"(",
"data",
")",
"-",
"padlen",
"-",
"2",
"]",
"padding",
"=",
"data",
"[",
"len",
"(",
"data",
")",
"-",
"padlen",
"-",
"2",
":",
"len",
"(",
"data",
")",
"-",
"2",
"]",
"return",
"_ESPPlain",
"(",
"spi",
"=",
"esp",
".",
"spi",
",",
"seq",
"=",
"esp",
".",
"seq",
",",
"iv",
"=",
"iv",
",",
"data",
"=",
"data",
",",
"padding",
"=",
"padding",
",",
"padlen",
"=",
"padlen",
",",
"nh",
"=",
"nh",
",",
"icv",
"=",
"icv",
")"
] | Decrypt an ESP packet
@param esp: an encrypted ESP packet
@param key: the secret key used for encryption
@param icv_size: the length of the icv used for integrity check
@return: a valid ESP packet encrypted with this algorithm
@raise IPSecIntegrityError: if the integrity check fails with an AEAD
algorithm | [
"Decrypt",
"an",
"ESP",
"packet"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/layers/ipsec.py#L338-L387 |
4,303 | phaethon/kamene | kamene/contrib/igmp.py | IGMP.igmpize | def igmpize(self, ip=None, ether=None):
"""Called to explicitely fixup associated IP and Ethernet headers
Parameters:
self The instantiation of an IGMP class.
ip The instantiation of the associated IP class.
ether The instantiation of the associated Ethernet.
Returns:
True The tuple ether/ip/self passed all check and represents
a proper IGMP packet.
False One of more validation checks failed and no fields
were adjusted.
The function will examine the IGMP message to assure proper format.
Corrections will be attempted if possible. The IP header is then properly
adjusted to ensure correct formatting and assignment. The Ethernet header
is then adjusted to the proper IGMP packet format.
"""
# The rules are:
# 1. the Max Response time is meaningful only in Membership Queries and should be zero
# otherwise (RFC 2236, section 2.2)
if (self.type != 0x11): #rule 1
self.mrtime = 0
if (self.adjust_ip(ip) == True):
if (self.adjust_ether(ip, ether) == True): return True
return False | python | def igmpize(self, ip=None, ether=None):
"""Called to explicitely fixup associated IP and Ethernet headers
Parameters:
self The instantiation of an IGMP class.
ip The instantiation of the associated IP class.
ether The instantiation of the associated Ethernet.
Returns:
True The tuple ether/ip/self passed all check and represents
a proper IGMP packet.
False One of more validation checks failed and no fields
were adjusted.
The function will examine the IGMP message to assure proper format.
Corrections will be attempted if possible. The IP header is then properly
adjusted to ensure correct formatting and assignment. The Ethernet header
is then adjusted to the proper IGMP packet format.
"""
# The rules are:
# 1. the Max Response time is meaningful only in Membership Queries and should be zero
# otherwise (RFC 2236, section 2.2)
if (self.type != 0x11): #rule 1
self.mrtime = 0
if (self.adjust_ip(ip) == True):
if (self.adjust_ether(ip, ether) == True): return True
return False | [
"def",
"igmpize",
"(",
"self",
",",
"ip",
"=",
"None",
",",
"ether",
"=",
"None",
")",
":",
"# The rules are:",
"# 1. the Max Response time is meaningful only in Membership Queries and should be zero ",
"# otherwise (RFC 2236, section 2.2)",
"if",
"(",
"self",
".",
"type",
"!=",
"0x11",
")",
":",
"#rule 1",
"self",
".",
"mrtime",
"=",
"0",
"if",
"(",
"self",
".",
"adjust_ip",
"(",
"ip",
")",
"==",
"True",
")",
":",
"if",
"(",
"self",
".",
"adjust_ether",
"(",
"ip",
",",
"ether",
")",
"==",
"True",
")",
":",
"return",
"True",
"return",
"False"
] | Called to explicitely fixup associated IP and Ethernet headers
Parameters:
self The instantiation of an IGMP class.
ip The instantiation of the associated IP class.
ether The instantiation of the associated Ethernet.
Returns:
True The tuple ether/ip/self passed all check and represents
a proper IGMP packet.
False One of more validation checks failed and no fields
were adjusted.
The function will examine the IGMP message to assure proper format.
Corrections will be attempted if possible. The IP header is then properly
adjusted to ensure correct formatting and assignment. The Ethernet header
is then adjusted to the proper IGMP packet format. | [
"Called",
"to",
"explicitely",
"fixup",
"associated",
"IP",
"and",
"Ethernet",
"headers"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/igmp.py#L78-L107 |
4,304 | phaethon/kamene | kamene/contrib/gsm_um.py | additionalAssignment | def additionalAssignment(MobileAllocation_presence=0,
StartingTime_presence=0):
"""ADDITIONAL ASSIGNMENT Section 9.1.1"""
# Mandatory
a = TpPd(pd=0x6)
b = MessageType(mesType=0x3B) # 00111011
c = ChannelDescription()
packet = a / b / c
# Not Mandatory
if MobileAllocation_presence is 1:
d = MobileAllocationHdr(ieiMA=0x72, eightBitMA=0x0)
packet = packet / d
if StartingTime_presence is 1:
e = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / e
return packet | python | def additionalAssignment(MobileAllocation_presence=0,
StartingTime_presence=0):
"""ADDITIONAL ASSIGNMENT Section 9.1.1"""
# Mandatory
a = TpPd(pd=0x6)
b = MessageType(mesType=0x3B) # 00111011
c = ChannelDescription()
packet = a / b / c
# Not Mandatory
if MobileAllocation_presence is 1:
d = MobileAllocationHdr(ieiMA=0x72, eightBitMA=0x0)
packet = packet / d
if StartingTime_presence is 1:
e = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / e
return packet | [
"def",
"additionalAssignment",
"(",
"MobileAllocation_presence",
"=",
"0",
",",
"StartingTime_presence",
"=",
"0",
")",
":",
"# Mandatory",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3B",
")",
"# 00111011",
"c",
"=",
"ChannelDescription",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"# Not Mandatory",
"if",
"MobileAllocation_presence",
"is",
"1",
":",
"d",
"=",
"MobileAllocationHdr",
"(",
"ieiMA",
"=",
"0x72",
",",
"eightBitMA",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"StartingTime_presence",
"is",
"1",
":",
"e",
"=",
"StartingTimeHdr",
"(",
"ieiST",
"=",
"0x7C",
",",
"eightBitST",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"return",
"packet"
] | ADDITIONAL ASSIGNMENT Section 9.1.1 | [
"ADDITIONAL",
"ASSIGNMENT",
"Section",
"9",
".",
"1",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L180-L195 |
4,305 | phaethon/kamene | kamene/contrib/gsm_um.py | assignmentComplete | def assignmentComplete():
"""ASSIGNMENT COMPLETE Section 9.1.3"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x29) # 00101001
c = RrCause()
packet = a / b / c
return packet | python | def assignmentComplete():
"""ASSIGNMENT COMPLETE Section 9.1.3"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x29) # 00101001
c = RrCause()
packet = a / b / c
return packet | [
"def",
"assignmentComplete",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x29",
")",
"# 00101001",
"c",
"=",
"RrCause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | ASSIGNMENT COMPLETE Section 9.1.3 | [
"ASSIGNMENT",
"COMPLETE",
"Section",
"9",
".",
"1",
".",
"3"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L296-L302 |
4,306 | phaethon/kamene | kamene/contrib/gsm_um.py | channelModeModify | def channelModeModify(VgcsTargetModeIdentication_presence=0,
MultiRateConfiguration_presence=0):
"""CHANNEL MODE MODIFY Section 9.1.5"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x8) # 0001000
c = ChannelDescription2()
d = ChannelMode()
packet = a / b / c / d
if VgcsTargetModeIdentication is 1:
e = VgcsTargetModeIdenticationHdr(ieiVTMI=0x01, eightBitVTMI=0x0)
packet = packet / e
if MultiRateConfiguration is 1:
f = MultiRateConfigurationHdr(ieiMRC=0x03, eightBitMRC=0x0)
packet = packet / f
return packet | python | def channelModeModify(VgcsTargetModeIdentication_presence=0,
MultiRateConfiguration_presence=0):
"""CHANNEL MODE MODIFY Section 9.1.5"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x8) # 0001000
c = ChannelDescription2()
d = ChannelMode()
packet = a / b / c / d
if VgcsTargetModeIdentication is 1:
e = VgcsTargetModeIdenticationHdr(ieiVTMI=0x01, eightBitVTMI=0x0)
packet = packet / e
if MultiRateConfiguration is 1:
f = MultiRateConfigurationHdr(ieiMRC=0x03, eightBitMRC=0x0)
packet = packet / f
return packet | [
"def",
"channelModeModify",
"(",
"VgcsTargetModeIdentication_presence",
"=",
"0",
",",
"MultiRateConfiguration_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x8",
")",
"# 0001000",
"c",
"=",
"ChannelDescription2",
"(",
")",
"d",
"=",
"ChannelMode",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"if",
"VgcsTargetModeIdentication",
"is",
"1",
":",
"e",
"=",
"VgcsTargetModeIdenticationHdr",
"(",
"ieiVTMI",
"=",
"0x01",
",",
"eightBitVTMI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"MultiRateConfiguration",
"is",
"1",
":",
"f",
"=",
"MultiRateConfigurationHdr",
"(",
"ieiMRC",
"=",
"0x03",
",",
"eightBitMRC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | CHANNEL MODE MODIFY Section 9.1.5 | [
"CHANNEL",
"MODE",
"MODIFY",
"Section",
"9",
".",
"1",
".",
"5"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L316-L330 |
4,307 | phaethon/kamene | kamene/contrib/gsm_um.py | channelModeModifyAcknowledge | def channelModeModifyAcknowledge():
"""CHANNEL MODE MODIFY ACKNOWLEDGE Section 9.1.6"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x17) # 00010111
c = ChannelDescription2()
d = ChannelMode()
packet = a / b / c / d
return packet | python | def channelModeModifyAcknowledge():
"""CHANNEL MODE MODIFY ACKNOWLEDGE Section 9.1.6"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x17) # 00010111
c = ChannelDescription2()
d = ChannelMode()
packet = a / b / c / d
return packet | [
"def",
"channelModeModifyAcknowledge",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x17",
")",
"# 00010111",
"c",
"=",
"ChannelDescription2",
"(",
")",
"d",
"=",
"ChannelMode",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | CHANNEL MODE MODIFY ACKNOWLEDGE Section 9.1.6 | [
"CHANNEL",
"MODE",
"MODIFY",
"ACKNOWLEDGE",
"Section",
"9",
".",
"1",
".",
"6"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L333-L340 |
4,308 | phaethon/kamene | kamene/contrib/gsm_um.py | channelRelease | def channelRelease(BaRange_presence=0, GroupChannelDescription_presence=0,
GroupCipherKeyNumber_presence=0, GprsResumption_presence=0,
BaListPref_presence=0):
"""CHANNEL RELEASE Section 9.1.7"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0xD) # 00001101
c = RrCause()
packet = a / b / c
if BaRange_presence is 1:
d = BaRangeHdr(ieiBR=0x73, eightBitBR=0x0)
packet = packet / d
if GroupChannelDescription_presence is 1:
e = GroupChannelDescriptionHdr(ieiGCD=0x74, eightBitGCD=0x0)
packet = packet / e
if GroupCipherKeyNumber_presence is 1:
f = GroupCipherKeyNumber(ieiGCKN=0x8)
packet = packet / f
if GprsResumption_presence is 1:
g = GprsResumptionHdr(ieiGR=0xC, eightBitGR=0x0)
packet = packet / g
if BaListPref_presence is 1:
h = BaListPrefHdr(ieiBLP=0x75, eightBitBLP=0x0)
packet = packet / h
return packet | python | def channelRelease(BaRange_presence=0, GroupChannelDescription_presence=0,
GroupCipherKeyNumber_presence=0, GprsResumption_presence=0,
BaListPref_presence=0):
"""CHANNEL RELEASE Section 9.1.7"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0xD) # 00001101
c = RrCause()
packet = a / b / c
if BaRange_presence is 1:
d = BaRangeHdr(ieiBR=0x73, eightBitBR=0x0)
packet = packet / d
if GroupChannelDescription_presence is 1:
e = GroupChannelDescriptionHdr(ieiGCD=0x74, eightBitGCD=0x0)
packet = packet / e
if GroupCipherKeyNumber_presence is 1:
f = GroupCipherKeyNumber(ieiGCKN=0x8)
packet = packet / f
if GprsResumption_presence is 1:
g = GprsResumptionHdr(ieiGR=0xC, eightBitGR=0x0)
packet = packet / g
if BaListPref_presence is 1:
h = BaListPrefHdr(ieiBLP=0x75, eightBitBLP=0x0)
packet = packet / h
return packet | [
"def",
"channelRelease",
"(",
"BaRange_presence",
"=",
"0",
",",
"GroupChannelDescription_presence",
"=",
"0",
",",
"GroupCipherKeyNumber_presence",
"=",
"0",
",",
"GprsResumption_presence",
"=",
"0",
",",
"BaListPref_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0xD",
")",
"# 00001101",
"c",
"=",
"RrCause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"BaRange_presence",
"is",
"1",
":",
"d",
"=",
"BaRangeHdr",
"(",
"ieiBR",
"=",
"0x73",
",",
"eightBitBR",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"GroupChannelDescription_presence",
"is",
"1",
":",
"e",
"=",
"GroupChannelDescriptionHdr",
"(",
"ieiGCD",
"=",
"0x74",
",",
"eightBitGCD",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"GroupCipherKeyNumber_presence",
"is",
"1",
":",
"f",
"=",
"GroupCipherKeyNumber",
"(",
"ieiGCKN",
"=",
"0x8",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"GprsResumption_presence",
"is",
"1",
":",
"g",
"=",
"GprsResumptionHdr",
"(",
"ieiGR",
"=",
"0xC",
",",
"eightBitGR",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"if",
"BaListPref_presence",
"is",
"1",
":",
"h",
"=",
"BaListPrefHdr",
"(",
"ieiBLP",
"=",
"0x75",
",",
"eightBitBLP",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"h",
"return",
"packet"
] | CHANNEL RELEASE Section 9.1.7 | [
"CHANNEL",
"RELEASE",
"Section",
"9",
".",
"1",
".",
"7"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L344-L367 |
4,309 | phaethon/kamene | kamene/contrib/gsm_um.py | cipheringModeCommand | def cipheringModeCommand():
"""CIPHERING MODE COMMAND Section 9.1.9"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x35) # 00110101
c = RrCause()
#d=cipherModeSetting()
#e=cipherResponse()
# FIX
d = CipherModeSettingAndcipherResponse()
packet = a / b / c / d
return packet | python | def cipheringModeCommand():
"""CIPHERING MODE COMMAND Section 9.1.9"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x35) # 00110101
c = RrCause()
#d=cipherModeSetting()
#e=cipherResponse()
# FIX
d = CipherModeSettingAndcipherResponse()
packet = a / b / c / d
return packet | [
"def",
"cipheringModeCommand",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x35",
")",
"# 00110101",
"c",
"=",
"RrCause",
"(",
")",
"#d=cipherModeSetting()",
"#e=cipherResponse()",
"# FIX",
"d",
"=",
"CipherModeSettingAndcipherResponse",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | CIPHERING MODE COMMAND Section 9.1.9 | [
"CIPHERING",
"MODE",
"COMMAND",
"Section",
"9",
".",
"1",
".",
"9"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L383-L393 |
4,310 | phaethon/kamene | kamene/contrib/gsm_um.py | cipheringModeComplete | def cipheringModeComplete(MobileId_presence=0):
"""CIPHERING MODE COMPLETE Section 9.1.10"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x32) # 00110010
packet = a / b
if MobileId_presence is 1:
c = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / c
return packet | python | def cipheringModeComplete(MobileId_presence=0):
"""CIPHERING MODE COMPLETE Section 9.1.10"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x32) # 00110010
packet = a / b
if MobileId_presence is 1:
c = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / c
return packet | [
"def",
"cipheringModeComplete",
"(",
"MobileId_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x32",
")",
"# 00110010",
"packet",
"=",
"a",
"/",
"b",
"if",
"MobileId_presence",
"is",
"1",
":",
"c",
"=",
"MobileIdHdr",
"(",
"ieiMI",
"=",
"0x17",
",",
"eightBitMI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"return",
"packet"
] | CIPHERING MODE COMPLETE Section 9.1.10 | [
"CIPHERING",
"MODE",
"COMPLETE",
"Section",
"9",
".",
"1",
".",
"10"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L396-L404 |
4,311 | phaethon/kamene | kamene/contrib/gsm_um.py | classmarkChange | def classmarkChange(MobileStationClassmark3_presence=0):
"""CLASSMARK CHANGE Section 9.1.11"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x16) # 00010110
c = MobileStationClassmark2()
packet = a / b / c
if MobileStationClassmark3_presence is 1:
e = MobileStationClassmark3(ieiMSC3=0x20)
packet = packet / e
return packet | python | def classmarkChange(MobileStationClassmark3_presence=0):
"""CLASSMARK CHANGE Section 9.1.11"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x16) # 00010110
c = MobileStationClassmark2()
packet = a / b / c
if MobileStationClassmark3_presence is 1:
e = MobileStationClassmark3(ieiMSC3=0x20)
packet = packet / e
return packet | [
"def",
"classmarkChange",
"(",
"MobileStationClassmark3_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x16",
")",
"# 00010110",
"c",
"=",
"MobileStationClassmark2",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"MobileStationClassmark3_presence",
"is",
"1",
":",
"e",
"=",
"MobileStationClassmark3",
"(",
"ieiMSC3",
"=",
"0x20",
")",
"packet",
"=",
"packet",
"/",
"e",
"return",
"packet"
] | CLASSMARK CHANGE Section 9.1.11 | [
"CLASSMARK",
"CHANGE",
"Section",
"9",
".",
"1",
".",
"11"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L408-L417 |
4,312 | phaethon/kamene | kamene/contrib/gsm_um.py | classmarkEnquiry | def classmarkEnquiry():
"""CLASSMARK ENQUIRY Section 9.1.12"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x13) # 00010011
packet = a / b
return packet | python | def classmarkEnquiry():
"""CLASSMARK ENQUIRY Section 9.1.12"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x13) # 00010011
packet = a / b
return packet | [
"def",
"classmarkEnquiry",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x13",
")",
"# 00010011",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | CLASSMARK ENQUIRY Section 9.1.12 | [
"CLASSMARK",
"ENQUIRY",
"Section",
"9",
".",
"1",
".",
"12"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L421-L426 |
4,313 | phaethon/kamene | kamene/contrib/gsm_um.py | configurationChangeCommand | def configurationChangeCommand(ChannelMode_presence=0,
ChannelMode_presence1=0,
ChannelMode_presence2=0,
ChannelMode_presence3=0,
ChannelMode_presence4=0,
ChannelMode_presence5=0,
ChannelMode_presence6=0,
ChannelMode_presence7=0):
"""CONFIGURATION CHANGE COMMAND Section 9.1.12b"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x30) # 00110000
c = MultislotAllocation()
packet = a / b / c
if ChannelMode_presence is 1:
d = ChannelModeHdr(ieiCM=0x63, eightBitCM=0x0)
packet = packet / d
if ChannelMode_presence1 is 1:
e = ChannelModeHdr(ieiCM=0x11, eightBitCM=0x0)
packet = packet / e
if ChannelMode_presence2 is 1:
f = ChannelModeHdr(ieiCM=0x13, eightBitCM=0x0)
packet = packet / f
if ChannelMode_presence3 is 1:
g = ChannelModeHdr(ieiCM=0x14, eightBitCM=0x0)
packet = packet / g
if ChannelMode_presence4 is 1:
h = ChannelModeHdr(ieiCM=0x15, eightBitCM=0x0)
packet = packet / h
if ChannelMode_presence5 is 1:
i = ChannelModeHdr(ieiCM=0x16, eightBitCM=0x0)
packet = packet / i
if ChannelMode_presence6 is 1:
j = ChannelModeHdr(ieiCM=0x17, eightBitCM=0x0)
packet = packet / j
if ChannelMode_presence7 is 1:
k = ChannelModeHdr(ieiCM=0x18, eightBitCM=0x0)
packet = packet / k
return packet | python | def configurationChangeCommand(ChannelMode_presence=0,
ChannelMode_presence1=0,
ChannelMode_presence2=0,
ChannelMode_presence3=0,
ChannelMode_presence4=0,
ChannelMode_presence5=0,
ChannelMode_presence6=0,
ChannelMode_presence7=0):
"""CONFIGURATION CHANGE COMMAND Section 9.1.12b"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x30) # 00110000
c = MultislotAllocation()
packet = a / b / c
if ChannelMode_presence is 1:
d = ChannelModeHdr(ieiCM=0x63, eightBitCM=0x0)
packet = packet / d
if ChannelMode_presence1 is 1:
e = ChannelModeHdr(ieiCM=0x11, eightBitCM=0x0)
packet = packet / e
if ChannelMode_presence2 is 1:
f = ChannelModeHdr(ieiCM=0x13, eightBitCM=0x0)
packet = packet / f
if ChannelMode_presence3 is 1:
g = ChannelModeHdr(ieiCM=0x14, eightBitCM=0x0)
packet = packet / g
if ChannelMode_presence4 is 1:
h = ChannelModeHdr(ieiCM=0x15, eightBitCM=0x0)
packet = packet / h
if ChannelMode_presence5 is 1:
i = ChannelModeHdr(ieiCM=0x16, eightBitCM=0x0)
packet = packet / i
if ChannelMode_presence6 is 1:
j = ChannelModeHdr(ieiCM=0x17, eightBitCM=0x0)
packet = packet / j
if ChannelMode_presence7 is 1:
k = ChannelModeHdr(ieiCM=0x18, eightBitCM=0x0)
packet = packet / k
return packet | [
"def",
"configurationChangeCommand",
"(",
"ChannelMode_presence",
"=",
"0",
",",
"ChannelMode_presence1",
"=",
"0",
",",
"ChannelMode_presence2",
"=",
"0",
",",
"ChannelMode_presence3",
"=",
"0",
",",
"ChannelMode_presence4",
"=",
"0",
",",
"ChannelMode_presence5",
"=",
"0",
",",
"ChannelMode_presence6",
"=",
"0",
",",
"ChannelMode_presence7",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x30",
")",
"# 00110000",
"c",
"=",
"MultislotAllocation",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"ChannelMode_presence",
"is",
"1",
":",
"d",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x63",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"ChannelMode_presence1",
"is",
"1",
":",
"e",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x11",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"ChannelMode_presence2",
"is",
"1",
":",
"f",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x13",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"ChannelMode_presence3",
"is",
"1",
":",
"g",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x14",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"if",
"ChannelMode_presence4",
"is",
"1",
":",
"h",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x15",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"h",
"if",
"ChannelMode_presence5",
"is",
"1",
":",
"i",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x16",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"i",
"if",
"ChannelMode_presence6",
"is",
"1",
":",
"j",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x17",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"j",
"if",
"ChannelMode_presence7",
"is",
"1",
":",
"k",
"=",
"ChannelModeHdr",
"(",
"ieiCM",
"=",
"0x18",
",",
"eightBitCM",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"k",
"return",
"packet"
] | CONFIGURATION CHANGE COMMAND Section 9.1.12b | [
"CONFIGURATION",
"CHANGE",
"COMMAND",
"Section",
"9",
".",
"1",
".",
"12b"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L431-L468 |
4,314 | phaethon/kamene | kamene/contrib/gsm_um.py | configurationChangeAcknowledge | def configurationChangeAcknowledge():
"""CONFIGURATION CHANGE ACKNOWLEDGE Section 9.1.12c"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x31) # 00110001
c = MobileId()
packet = a / b / c
return packet | python | def configurationChangeAcknowledge():
"""CONFIGURATION CHANGE ACKNOWLEDGE Section 9.1.12c"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x31) # 00110001
c = MobileId()
packet = a / b / c
return packet | [
"def",
"configurationChangeAcknowledge",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x31",
")",
"# 00110001",
"c",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | CONFIGURATION CHANGE ACKNOWLEDGE Section 9.1.12c | [
"CONFIGURATION",
"CHANGE",
"ACKNOWLEDGE",
"Section",
"9",
".",
"1",
".",
"12c"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L471-L477 |
4,315 | phaethon/kamene | kamene/contrib/gsm_um.py | frequencyRedefinition | def frequencyRedefinition(CellChannelDescription_presence=0):
"""Frequency redefinition Section 9.1.13"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x14) # 00010100
c = ChannelDescription()
d = MobileAllocation()
e = StartingTime()
packet = a / b / c / d / e
if CellChannelDescription_presence is 1:
f = CellChannelDescriptionHdr(ieiCCD=0x62, eightBitCCD=0x0)
packet = packet / f
return packet | python | def frequencyRedefinition(CellChannelDescription_presence=0):
"""Frequency redefinition Section 9.1.13"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x14) # 00010100
c = ChannelDescription()
d = MobileAllocation()
e = StartingTime()
packet = a / b / c / d / e
if CellChannelDescription_presence is 1:
f = CellChannelDescriptionHdr(ieiCCD=0x62, eightBitCCD=0x0)
packet = packet / f
return packet | [
"def",
"frequencyRedefinition",
"(",
"CellChannelDescription_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x14",
")",
"# 00010100",
"c",
"=",
"ChannelDescription",
"(",
")",
"d",
"=",
"MobileAllocation",
"(",
")",
"e",
"=",
"StartingTime",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"if",
"CellChannelDescription_presence",
"is",
"1",
":",
"f",
"=",
"CellChannelDescriptionHdr",
"(",
"ieiCCD",
"=",
"0x62",
",",
"eightBitCCD",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | Frequency redefinition Section 9.1.13 | [
"Frequency",
"redefinition",
"Section",
"9",
".",
"1",
".",
"13"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L490-L501 |
4,316 | phaethon/kamene | kamene/contrib/gsm_um.py | pdchAssignmentCommand | def pdchAssignmentCommand(ChannelDescription_presence=0,
CellChannelDescription_presence=0,
MobileAllocation_presence=0,
StartingTime_presence=0, FrequencyList_presence=0,
ChannelDescription_presence1=0,
FrequencyChannelSequence_presence=0,
MobileAllocation_presence1=0,
PacketChannelDescription_presence=0,
DedicatedModeOrTBF_presence=0):
"""PDCH ASSIGNMENT COMMAND Section 9.1.13a"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x23) # 00100011
c = ChannelDescription()
packet = a / b / c
if ChannelDescription_presence is 1:
d = ChannelDescriptionHdr(ieiCD=0x62, eightBitCD=0x0)
packet = packet / d
if CellChannelDescription_presence is 1:
e = CellChannelDescriptionHdr(ieiCCD=0x05, eightBitCCD=0x0)
packet = packet / e
if MobileAllocation_presence is 1:
f = MobileAllocationHdr(ieiMA=0x72, eightBitMA=0x0)
packet = packet / f
if StartingTime_presence is 1:
g = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / g
if FrequencyList_presence is 1:
h = FrequencyListHdr(ieiFL=0x19, eightBitFL=0x0)
packet = packet / h
if ChannelDescription_presence1 is 1:
i = ChannelDescriptionHdr(ieiCD=0x1C, eightBitCD=0x0)
packet = packet / i
if FrequencyChannelSequence_presence is 1:
j = FrequencyChannelSequenceHdr(ieiFCS=0x1E, eightBitFCS=0x0)
packet = packet / j
if MobileAllocation_presence1 is 1:
k = MobileAllocationHdr(ieiMA=0x21, eightBitMA=0x0)
packet = packet / k
if PacketChannelDescription_presence is 1:
l = PacketChannelDescription(ieiPCD=0x22)
packet = packet / l
if DedicatedModeOrTBF_presence is 1:
m = DedicatedModeOrTBFHdr(ieiDMOT=0x23, eightBitDMOT=0x0)
packet = packet / m
return packet | python | def pdchAssignmentCommand(ChannelDescription_presence=0,
CellChannelDescription_presence=0,
MobileAllocation_presence=0,
StartingTime_presence=0, FrequencyList_presence=0,
ChannelDescription_presence1=0,
FrequencyChannelSequence_presence=0,
MobileAllocation_presence1=0,
PacketChannelDescription_presence=0,
DedicatedModeOrTBF_presence=0):
"""PDCH ASSIGNMENT COMMAND Section 9.1.13a"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x23) # 00100011
c = ChannelDescription()
packet = a / b / c
if ChannelDescription_presence is 1:
d = ChannelDescriptionHdr(ieiCD=0x62, eightBitCD=0x0)
packet = packet / d
if CellChannelDescription_presence is 1:
e = CellChannelDescriptionHdr(ieiCCD=0x05, eightBitCCD=0x0)
packet = packet / e
if MobileAllocation_presence is 1:
f = MobileAllocationHdr(ieiMA=0x72, eightBitMA=0x0)
packet = packet / f
if StartingTime_presence is 1:
g = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / g
if FrequencyList_presence is 1:
h = FrequencyListHdr(ieiFL=0x19, eightBitFL=0x0)
packet = packet / h
if ChannelDescription_presence1 is 1:
i = ChannelDescriptionHdr(ieiCD=0x1C, eightBitCD=0x0)
packet = packet / i
if FrequencyChannelSequence_presence is 1:
j = FrequencyChannelSequenceHdr(ieiFCS=0x1E, eightBitFCS=0x0)
packet = packet / j
if MobileAllocation_presence1 is 1:
k = MobileAllocationHdr(ieiMA=0x21, eightBitMA=0x0)
packet = packet / k
if PacketChannelDescription_presence is 1:
l = PacketChannelDescription(ieiPCD=0x22)
packet = packet / l
if DedicatedModeOrTBF_presence is 1:
m = DedicatedModeOrTBFHdr(ieiDMOT=0x23, eightBitDMOT=0x0)
packet = packet / m
return packet | [
"def",
"pdchAssignmentCommand",
"(",
"ChannelDescription_presence",
"=",
"0",
",",
"CellChannelDescription_presence",
"=",
"0",
",",
"MobileAllocation_presence",
"=",
"0",
",",
"StartingTime_presence",
"=",
"0",
",",
"FrequencyList_presence",
"=",
"0",
",",
"ChannelDescription_presence1",
"=",
"0",
",",
"FrequencyChannelSequence_presence",
"=",
"0",
",",
"MobileAllocation_presence1",
"=",
"0",
",",
"PacketChannelDescription_presence",
"=",
"0",
",",
"DedicatedModeOrTBF_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x23",
")",
"# 00100011",
"c",
"=",
"ChannelDescription",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"ChannelDescription_presence",
"is",
"1",
":",
"d",
"=",
"ChannelDescriptionHdr",
"(",
"ieiCD",
"=",
"0x62",
",",
"eightBitCD",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"CellChannelDescription_presence",
"is",
"1",
":",
"e",
"=",
"CellChannelDescriptionHdr",
"(",
"ieiCCD",
"=",
"0x05",
",",
"eightBitCCD",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"MobileAllocation_presence",
"is",
"1",
":",
"f",
"=",
"MobileAllocationHdr",
"(",
"ieiMA",
"=",
"0x72",
",",
"eightBitMA",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"StartingTime_presence",
"is",
"1",
":",
"g",
"=",
"StartingTimeHdr",
"(",
"ieiST",
"=",
"0x7C",
",",
"eightBitST",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"if",
"FrequencyList_presence",
"is",
"1",
":",
"h",
"=",
"FrequencyListHdr",
"(",
"ieiFL",
"=",
"0x19",
",",
"eightBitFL",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"h",
"if",
"ChannelDescription_presence1",
"is",
"1",
":",
"i",
"=",
"ChannelDescriptionHdr",
"(",
"ieiCD",
"=",
"0x1C",
",",
"eightBitCD",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"i",
"if",
"FrequencyChannelSequence_presence",
"is",
"1",
":",
"j",
"=",
"FrequencyChannelSequenceHdr",
"(",
"ieiFCS",
"=",
"0x1E",
",",
"eightBitFCS",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"j",
"if",
"MobileAllocation_presence1",
"is",
"1",
":",
"k",
"=",
"MobileAllocationHdr",
"(",
"ieiMA",
"=",
"0x21",
",",
"eightBitMA",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"k",
"if",
"PacketChannelDescription_presence",
"is",
"1",
":",
"l",
"=",
"PacketChannelDescription",
"(",
"ieiPCD",
"=",
"0x22",
")",
"packet",
"=",
"packet",
"/",
"l",
"if",
"DedicatedModeOrTBF_presence",
"is",
"1",
":",
"m",
"=",
"DedicatedModeOrTBFHdr",
"(",
"ieiDMOT",
"=",
"0x23",
",",
"eightBitDMOT",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"m",
"return",
"packet"
] | PDCH ASSIGNMENT COMMAND Section 9.1.13a | [
"PDCH",
"ASSIGNMENT",
"COMMAND",
"Section",
"9",
".",
"1",
".",
"13a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L505-L549 |
4,317 | phaethon/kamene | kamene/contrib/gsm_um.py | gprsSuspensionRequest | def gprsSuspensionRequest():
"""GPRS SUSPENSION REQUEST Section 9.1.13b"""
a = TpPd(pd=0x6)
b = MessageType()
c = Tlli()
d = RoutingAreaIdentification()
e = SuspensionCause()
packet = a / b / c / d / e
return packet | python | def gprsSuspensionRequest():
"""GPRS SUSPENSION REQUEST Section 9.1.13b"""
a = TpPd(pd=0x6)
b = MessageType()
c = Tlli()
d = RoutingAreaIdentification()
e = SuspensionCause()
packet = a / b / c / d / e
return packet | [
"def",
"gprsSuspensionRequest",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
")",
"c",
"=",
"Tlli",
"(",
")",
"d",
"=",
"RoutingAreaIdentification",
"(",
")",
"e",
"=",
"SuspensionCause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"return",
"packet"
] | GPRS SUSPENSION REQUEST Section 9.1.13b | [
"GPRS",
"SUSPENSION",
"REQUEST",
"Section",
"9",
".",
"1",
".",
"13b"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L552-L560 |
4,318 | phaethon/kamene | kamene/contrib/gsm_um.py | handoverComplete | def handoverComplete(MobileTimeDifference_presence=0):
"""HANDOVER COMPLETE Section 9.1.16"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x2c) # 00101100
c = RrCause()
packet = a / b / c
if MobileTimeDifference_presence is 1:
d = MobileTimeDifferenceHdr(ieiMTD=0x77, eightBitMTD=0x0)
packet = packet / d
return packet | python | def handoverComplete(MobileTimeDifference_presence=0):
"""HANDOVER COMPLETE Section 9.1.16"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x2c) # 00101100
c = RrCause()
packet = a / b / c
if MobileTimeDifference_presence is 1:
d = MobileTimeDifferenceHdr(ieiMTD=0x77, eightBitMTD=0x0)
packet = packet / d
return packet | [
"def",
"handoverComplete",
"(",
"MobileTimeDifference_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2c",
")",
"# 00101100",
"c",
"=",
"RrCause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"MobileTimeDifference_presence",
"is",
"1",
":",
"d",
"=",
"MobileTimeDifferenceHdr",
"(",
"ieiMTD",
"=",
"0x77",
",",
"eightBitMTD",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"return",
"packet"
] | HANDOVER COMPLETE Section 9.1.16 | [
"HANDOVER",
"COMPLETE",
"Section",
"9",
".",
"1",
".",
"16"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L693-L702 |
4,319 | phaethon/kamene | kamene/contrib/gsm_um.py | immediateAssignment | def immediateAssignment(ChannelDescription_presence=0,
PacketChannelDescription_presence=0,
StartingTime_presence=0):
"""IMMEDIATE ASSIGNMENT Section 9.1.18"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3F) # 00111111
d = PageModeAndDedicatedModeOrTBF()
packet = a / b / c / d
if ChannelDescription_presence is 1:
f = ChannelDescription()
packet = packet / f
if PacketChannelDescription_presence is 1:
g = PacketChannelDescription()
packet = packet / g
h = RequestReference()
i = TimingAdvance()
j = MobileAllocation()
packet = packet / h / i / j
if StartingTime_presence is 1:
k = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / k
l = IaRestOctets()
packet = packet / l
return packet | python | def immediateAssignment(ChannelDescription_presence=0,
PacketChannelDescription_presence=0,
StartingTime_presence=0):
"""IMMEDIATE ASSIGNMENT Section 9.1.18"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3F) # 00111111
d = PageModeAndDedicatedModeOrTBF()
packet = a / b / c / d
if ChannelDescription_presence is 1:
f = ChannelDescription()
packet = packet / f
if PacketChannelDescription_presence is 1:
g = PacketChannelDescription()
packet = packet / g
h = RequestReference()
i = TimingAdvance()
j = MobileAllocation()
packet = packet / h / i / j
if StartingTime_presence is 1:
k = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / k
l = IaRestOctets()
packet = packet / l
return packet | [
"def",
"immediateAssignment",
"(",
"ChannelDescription_presence",
"=",
"0",
",",
"PacketChannelDescription_presence",
"=",
"0",
",",
"StartingTime_presence",
"=",
"0",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3F",
")",
"# 00111111",
"d",
"=",
"PageModeAndDedicatedModeOrTBF",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"if",
"ChannelDescription_presence",
"is",
"1",
":",
"f",
"=",
"ChannelDescription",
"(",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"PacketChannelDescription_presence",
"is",
"1",
":",
"g",
"=",
"PacketChannelDescription",
"(",
")",
"packet",
"=",
"packet",
"/",
"g",
"h",
"=",
"RequestReference",
"(",
")",
"i",
"=",
"TimingAdvance",
"(",
")",
"j",
"=",
"MobileAllocation",
"(",
")",
"packet",
"=",
"packet",
"/",
"h",
"/",
"i",
"/",
"j",
"if",
"StartingTime_presence",
"is",
"1",
":",
"k",
"=",
"StartingTimeHdr",
"(",
"ieiST",
"=",
"0x7C",
",",
"eightBitST",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"k",
"l",
"=",
"IaRestOctets",
"(",
")",
"packet",
"=",
"packet",
"/",
"l",
"return",
"packet"
] | IMMEDIATE ASSIGNMENT Section 9.1.18 | [
"IMMEDIATE",
"ASSIGNMENT",
"Section",
"9",
".",
"1",
".",
"18"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L718-L742 |
4,320 | phaethon/kamene | kamene/contrib/gsm_um.py | immediateAssignmentExtended | def immediateAssignmentExtended(StartingTime_presence=0):
"""IMMEDIATE ASSIGNMENT EXTENDED Section 9.1.19"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x39) # 00111001
d = PageModeAndSpareHalfOctets()
f = ChannelDescription()
g = RequestReference()
h = TimingAdvance()
i = MobileAllocation()
packet = a / b / c / d / f / g / h / i
if StartingTime_presence is 1:
j = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / j
k = IaxRestOctets()
packet = packet / k
return packet | python | def immediateAssignmentExtended(StartingTime_presence=0):
"""IMMEDIATE ASSIGNMENT EXTENDED Section 9.1.19"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x39) # 00111001
d = PageModeAndSpareHalfOctets()
f = ChannelDescription()
g = RequestReference()
h = TimingAdvance()
i = MobileAllocation()
packet = a / b / c / d / f / g / h / i
if StartingTime_presence is 1:
j = StartingTimeHdr(ieiST=0x7C, eightBitST=0x0)
packet = packet / j
k = IaxRestOctets()
packet = packet / k
return packet | [
"def",
"immediateAssignmentExtended",
"(",
"StartingTime_presence",
"=",
"0",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x39",
")",
"# 00111001",
"d",
"=",
"PageModeAndSpareHalfOctets",
"(",
")",
"f",
"=",
"ChannelDescription",
"(",
")",
"g",
"=",
"RequestReference",
"(",
")",
"h",
"=",
"TimingAdvance",
"(",
")",
"i",
"=",
"MobileAllocation",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"f",
"/",
"g",
"/",
"h",
"/",
"i",
"if",
"StartingTime_presence",
"is",
"1",
":",
"j",
"=",
"StartingTimeHdr",
"(",
"ieiST",
"=",
"0x7C",
",",
"eightBitST",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"j",
"k",
"=",
"IaxRestOctets",
"(",
")",
"packet",
"=",
"packet",
"/",
"k",
"return",
"packet"
] | IMMEDIATE ASSIGNMENT EXTENDED Section 9.1.19 | [
"IMMEDIATE",
"ASSIGNMENT",
"EXTENDED",
"Section",
"9",
".",
"1",
".",
"19"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L750-L766 |
4,321 | phaethon/kamene | kamene/contrib/gsm_um.py | immediateAssignmentReject | def immediateAssignmentReject():
"""IMMEDIATE ASSIGNMENT REJECT Section 9.1.20"""
a = L2PseudoLength(l2pLength=0x13)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3a) # 00111010
d = PageModeAndSpareHalfOctets()
f = RequestReference()
g = WaitIndication()
h = RequestReference()
i = WaitIndication()
j = RequestReference()
k = WaitIndication()
l = RequestReference()
m = WaitIndication()
n = IraRestOctets()
packet = a / b / c / d / f / g / h / i / j / k / l / m / n
return packet | python | def immediateAssignmentReject():
"""IMMEDIATE ASSIGNMENT REJECT Section 9.1.20"""
a = L2PseudoLength(l2pLength=0x13)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3a) # 00111010
d = PageModeAndSpareHalfOctets()
f = RequestReference()
g = WaitIndication()
h = RequestReference()
i = WaitIndication()
j = RequestReference()
k = WaitIndication()
l = RequestReference()
m = WaitIndication()
n = IraRestOctets()
packet = a / b / c / d / f / g / h / i / j / k / l / m / n
return packet | [
"def",
"immediateAssignmentReject",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x13",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3a",
")",
"# 00111010",
"d",
"=",
"PageModeAndSpareHalfOctets",
"(",
")",
"f",
"=",
"RequestReference",
"(",
")",
"g",
"=",
"WaitIndication",
"(",
")",
"h",
"=",
"RequestReference",
"(",
")",
"i",
"=",
"WaitIndication",
"(",
")",
"j",
"=",
"RequestReference",
"(",
")",
"k",
"=",
"WaitIndication",
"(",
")",
"l",
"=",
"RequestReference",
"(",
")",
"m",
"=",
"WaitIndication",
"(",
")",
"n",
"=",
"IraRestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"f",
"/",
"g",
"/",
"h",
"/",
"i",
"/",
"j",
"/",
"k",
"/",
"l",
"/",
"m",
"/",
"n",
"return",
"packet"
] | IMMEDIATE ASSIGNMENT REJECT Section 9.1.20 | [
"IMMEDIATE",
"ASSIGNMENT",
"REJECT",
"Section",
"9",
".",
"1",
".",
"20"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L771-L787 |
4,322 | phaethon/kamene | kamene/contrib/gsm_um.py | measurementReport | def measurementReport():
"""MEASUREMENT REPORT Section 9.1.21"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x15) # 00010101
c = MeasurementResults()
packet = a / b / c
return packet | python | def measurementReport():
"""MEASUREMENT REPORT Section 9.1.21"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x15) # 00010101
c = MeasurementResults()
packet = a / b / c
return packet | [
"def",
"measurementReport",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x15",
")",
"# 00010101",
"c",
"=",
"MeasurementResults",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | MEASUREMENT REPORT Section 9.1.21 | [
"MEASUREMENT",
"REPORT",
"Section",
"9",
".",
"1",
".",
"21"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L790-L796 |
4,323 | phaethon/kamene | kamene/contrib/gsm_um.py | notificationResponse | def notificationResponse():
"""NOTIFICATION RESPONSE Section 9.1.21d"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x26) # 00100110
c = MobileStationClassmark2()
d = MobileId()
e = DescriptiveGroupOrBroadcastCallReference()
packet = a / b / c / d / e
return packet | python | def notificationResponse():
"""NOTIFICATION RESPONSE Section 9.1.21d"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x26) # 00100110
c = MobileStationClassmark2()
d = MobileId()
e = DescriptiveGroupOrBroadcastCallReference()
packet = a / b / c / d / e
return packet | [
"def",
"notificationResponse",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x26",
")",
"# 00100110",
"c",
"=",
"MobileStationClassmark2",
"(",
")",
"d",
"=",
"MobileId",
"(",
")",
"e",
"=",
"DescriptiveGroupOrBroadcastCallReference",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"return",
"packet"
] | NOTIFICATION RESPONSE Section 9.1.21d | [
"NOTIFICATION",
"RESPONSE",
"Section",
"9",
".",
"1",
".",
"21d"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L823-L831 |
4,324 | phaethon/kamene | kamene/contrib/gsm_um.py | rrCellChangeOrder | def rrCellChangeOrder():
"""RR-CELL CHANGE ORDER Section 9.1.21e"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x8) # 00001000
c = CellDescription()
d = NcModeAndSpareHalfOctets()
packet = a / b / c / d
return packet | python | def rrCellChangeOrder():
"""RR-CELL CHANGE ORDER Section 9.1.21e"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x8) # 00001000
c = CellDescription()
d = NcModeAndSpareHalfOctets()
packet = a / b / c / d
return packet | [
"def",
"rrCellChangeOrder",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x8",
")",
"# 00001000",
"c",
"=",
"CellDescription",
"(",
")",
"d",
"=",
"NcModeAndSpareHalfOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | RR-CELL CHANGE ORDER Section 9.1.21e | [
"RR",
"-",
"CELL",
"CHANGE",
"ORDER",
"Section",
"9",
".",
"1",
".",
"21e"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L835-L842 |
4,325 | phaethon/kamene | kamene/contrib/gsm_um.py | pagingRequestType1 | def pagingRequestType1(MobileId_presence=0):
"""PAGING REQUEST TYPE 1 Section 9.1.22"""
#The L2 pseudo length of this message is the sum of lengths of all
#information elements present in the message except
#the P1 Rest Octets and L2 Pseudo Length information elements.
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x21) # 00100001
d = PageModeAndChannelNeeded()
f = MobileId()
packet = a / b / c / d / f
if MobileId_presence is 1:
g = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / g
h = P1RestOctets()
packet = packet / h
return packet | python | def pagingRequestType1(MobileId_presence=0):
"""PAGING REQUEST TYPE 1 Section 9.1.22"""
#The L2 pseudo length of this message is the sum of lengths of all
#information elements present in the message except
#the P1 Rest Octets and L2 Pseudo Length information elements.
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x21) # 00100001
d = PageModeAndChannelNeeded()
f = MobileId()
packet = a / b / c / d / f
if MobileId_presence is 1:
g = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / g
h = P1RestOctets()
packet = packet / h
return packet | [
"def",
"pagingRequestType1",
"(",
"MobileId_presence",
"=",
"0",
")",
":",
"#The L2 pseudo length of this message is the sum of lengths of all",
"#information elements present in the message except",
"#the P1 Rest Octets and L2 Pseudo Length information elements.",
"a",
"=",
"L2PseudoLength",
"(",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x21",
")",
"# 00100001",
"d",
"=",
"PageModeAndChannelNeeded",
"(",
")",
"f",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"f",
"if",
"MobileId_presence",
"is",
"1",
":",
"g",
"=",
"MobileIdHdr",
"(",
"ieiMI",
"=",
"0x17",
",",
"eightBitMI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"h",
"=",
"P1RestOctets",
"(",
")",
"packet",
"=",
"packet",
"/",
"h",
"return",
"packet"
] | PAGING REQUEST TYPE 1 Section 9.1.22 | [
"PAGING",
"REQUEST",
"TYPE",
"1",
"Section",
"9",
".",
"1",
".",
"22"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L846-L862 |
4,326 | phaethon/kamene | kamene/contrib/gsm_um.py | pagingRequestType2 | def pagingRequestType2(MobileId_presence=0):
"""PAGING REQUEST TYPE 2 Section 9.1.23"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x22) # 00100010
d = PageModeAndChannelNeeded()
f = MobileId()
g = MobileId()
packet = a / b / c / d / f / g
if MobileId_presence is 1:
h = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / h
i = P2RestOctets()
packet = packet / i
return packet | python | def pagingRequestType2(MobileId_presence=0):
"""PAGING REQUEST TYPE 2 Section 9.1.23"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x22) # 00100010
d = PageModeAndChannelNeeded()
f = MobileId()
g = MobileId()
packet = a / b / c / d / f / g
if MobileId_presence is 1:
h = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / h
i = P2RestOctets()
packet = packet / i
return packet | [
"def",
"pagingRequestType2",
"(",
"MobileId_presence",
"=",
"0",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x22",
")",
"# 00100010",
"d",
"=",
"PageModeAndChannelNeeded",
"(",
")",
"f",
"=",
"MobileId",
"(",
")",
"g",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"f",
"/",
"g",
"if",
"MobileId_presence",
"is",
"1",
":",
"h",
"=",
"MobileIdHdr",
"(",
"ieiMI",
"=",
"0x17",
",",
"eightBitMI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"h",
"i",
"=",
"P2RestOctets",
"(",
")",
"packet",
"=",
"packet",
"/",
"i",
"return",
"packet"
] | PAGING REQUEST TYPE 2 Section 9.1.23 | [
"PAGING",
"REQUEST",
"TYPE",
"2",
"Section",
"9",
".",
"1",
".",
"23"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L868-L882 |
4,327 | phaethon/kamene | kamene/contrib/gsm_um.py | pagingRequestType3 | def pagingRequestType3():
"""PAGING REQUEST TYPE 3 Section 9.1.24"""
# This message has a L2 Pseudo Length of 19
a = L2PseudoLength(l2pLength=0x13)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x24) # 00100100
d = PageModeAndChannelNeeded()
e = TmsiPTmsi()
f = TmsiPTmsi()
g = TmsiPTmsi()
h = TmsiPTmsi()
i = P3RestOctets()
packet = a / b / c / d / e / f / g / h / i
return packet | python | def pagingRequestType3():
"""PAGING REQUEST TYPE 3 Section 9.1.24"""
# This message has a L2 Pseudo Length of 19
a = L2PseudoLength(l2pLength=0x13)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x24) # 00100100
d = PageModeAndChannelNeeded()
e = TmsiPTmsi()
f = TmsiPTmsi()
g = TmsiPTmsi()
h = TmsiPTmsi()
i = P3RestOctets()
packet = a / b / c / d / e / f / g / h / i
return packet | [
"def",
"pagingRequestType3",
"(",
")",
":",
"# This message has a L2 Pseudo Length of 19",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x13",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x24",
")",
"# 00100100",
"d",
"=",
"PageModeAndChannelNeeded",
"(",
")",
"e",
"=",
"TmsiPTmsi",
"(",
")",
"f",
"=",
"TmsiPTmsi",
"(",
")",
"g",
"=",
"TmsiPTmsi",
"(",
")",
"h",
"=",
"TmsiPTmsi",
"(",
")",
"i",
"=",
"P3RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"/",
"g",
"/",
"h",
"/",
"i",
"return",
"packet"
] | PAGING REQUEST TYPE 3 Section 9.1.24 | [
"PAGING",
"REQUEST",
"TYPE",
"3",
"Section",
"9",
".",
"1",
".",
"24"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L886-L899 |
4,328 | phaethon/kamene | kamene/contrib/gsm_um.py | pagingResponse | def pagingResponse():
"""PAGING RESPONSE Section 9.1.25"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x27) # 00100111
c = CiphKeySeqNrAndSpareHalfOctets()
d = MobileStationClassmark2()
e = MobileId()
packet = a / b / c / d / e
return packet | python | def pagingResponse():
"""PAGING RESPONSE Section 9.1.25"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x27) # 00100111
c = CiphKeySeqNrAndSpareHalfOctets()
d = MobileStationClassmark2()
e = MobileId()
packet = a / b / c / d / e
return packet | [
"def",
"pagingResponse",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x27",
")",
"# 00100111",
"c",
"=",
"CiphKeySeqNrAndSpareHalfOctets",
"(",
")",
"d",
"=",
"MobileStationClassmark2",
"(",
")",
"e",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"return",
"packet"
] | PAGING RESPONSE Section 9.1.25 | [
"PAGING",
"RESPONSE",
"Section",
"9",
".",
"1",
".",
"25"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L902-L910 |
4,329 | phaethon/kamene | kamene/contrib/gsm_um.py | partialRelease | def partialRelease():
"""PARTIAL RELEASE Section 9.1.26"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0xa) # 00001010
c = ChannelDescription()
packet = a / b / c
return packet | python | def partialRelease():
"""PARTIAL RELEASE Section 9.1.26"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0xa) # 00001010
c = ChannelDescription()
packet = a / b / c
return packet | [
"def",
"partialRelease",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0xa",
")",
"# 00001010",
"c",
"=",
"ChannelDescription",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | PARTIAL RELEASE Section 9.1.26 | [
"PARTIAL",
"RELEASE",
"Section",
"9",
".",
"1",
".",
"26"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L914-L920 |
4,330 | phaethon/kamene | kamene/contrib/gsm_um.py | partialReleaseComplete | def partialReleaseComplete():
"""PARTIAL RELEASE COMPLETE Section 9.1.27"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0xf) # 00001111
packet = a / b
return packet | python | def partialReleaseComplete():
"""PARTIAL RELEASE COMPLETE Section 9.1.27"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0xf) # 00001111
packet = a / b
return packet | [
"def",
"partialReleaseComplete",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0xf",
")",
"# 00001111",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | PARTIAL RELEASE COMPLETE Section 9.1.27 | [
"PARTIAL",
"RELEASE",
"COMPLETE",
"Section",
"9",
".",
"1",
".",
"27"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L923-L928 |
4,331 | phaethon/kamene | kamene/contrib/gsm_um.py | physicalInformation | def physicalInformation():
"""PHYSICAL INFORMATION Section 9.1.28"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x2d) # 00101101
c = TimingAdvance()
packet = a / b / c
return packet | python | def physicalInformation():
"""PHYSICAL INFORMATION Section 9.1.28"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x2d) # 00101101
c = TimingAdvance()
packet = a / b / c
return packet | [
"def",
"physicalInformation",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2d",
")",
"# 00101101",
"c",
"=",
"TimingAdvance",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | PHYSICAL INFORMATION Section 9.1.28 | [
"PHYSICAL",
"INFORMATION",
"Section",
"9",
".",
"1",
".",
"28"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L932-L938 |
4,332 | phaethon/kamene | kamene/contrib/gsm_um.py | rrInitialisationRequest | def rrInitialisationRequest():
"""RR Initialisation Request Section 9.1.28.a"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x3c) # 00111100
c = CiphKeySeqNrAndMacModeAndChannelCodingRequest()
e = MobileStationClassmark2()
f = Tlli()
g = ChannelRequestDescription()
h = GprsMeasurementResults()
packet = a / b / c / e / f / g / h
return packet | python | def rrInitialisationRequest():
"""RR Initialisation Request Section 9.1.28.a"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x3c) # 00111100
c = CiphKeySeqNrAndMacModeAndChannelCodingRequest()
e = MobileStationClassmark2()
f = Tlli()
g = ChannelRequestDescription()
h = GprsMeasurementResults()
packet = a / b / c / e / f / g / h
return packet | [
"def",
"rrInitialisationRequest",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3c",
")",
"# 00111100",
"c",
"=",
"CiphKeySeqNrAndMacModeAndChannelCodingRequest",
"(",
")",
"e",
"=",
"MobileStationClassmark2",
"(",
")",
"f",
"=",
"Tlli",
"(",
")",
"g",
"=",
"ChannelRequestDescription",
"(",
")",
"h",
"=",
"GprsMeasurementResults",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"e",
"/",
"f",
"/",
"g",
"/",
"h",
"return",
"packet"
] | RR Initialisation Request Section 9.1.28.a | [
"RR",
"Initialisation",
"Request",
"Section",
"9",
".",
"1",
".",
"28",
".",
"a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L941-L951 |
4,333 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType1 | def systemInformationType1():
"""SYSTEM INFORMATION TYPE 1 Section 9.1.31"""
a = L2PseudoLength(l2pLength=0x15)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x19) # 00011001
d = CellChannelDescription()
e = RachControlParameters()
f = Si1RestOctets()
packet = a / b / c / d / e / f
return packet | python | def systemInformationType1():
"""SYSTEM INFORMATION TYPE 1 Section 9.1.31"""
a = L2PseudoLength(l2pLength=0x15)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x19) # 00011001
d = CellChannelDescription()
e = RachControlParameters()
f = Si1RestOctets()
packet = a / b / c / d / e / f
return packet | [
"def",
"systemInformationType1",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x15",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x19",
")",
"# 00011001",
"d",
"=",
"CellChannelDescription",
"(",
")",
"e",
"=",
"RachControlParameters",
"(",
")",
"f",
"=",
"Si1RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 1 Section 9.1.31 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"1",
"Section",
"9",
".",
"1",
".",
"31"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L983-L992 |
4,334 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType2 | def systemInformationType2():
"""SYSTEM INFORMATION TYPE 2 Section 9.1.32"""
a = L2PseudoLength(l2pLength=0x16)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1a) # 00011010
d = NeighbourCellsDescription()
e = NccPermitted()
f = RachControlParameters()
packet = a / b / c / d / e / f
return packet | python | def systemInformationType2():
"""SYSTEM INFORMATION TYPE 2 Section 9.1.32"""
a = L2PseudoLength(l2pLength=0x16)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1a) # 00011010
d = NeighbourCellsDescription()
e = NccPermitted()
f = RachControlParameters()
packet = a / b / c / d / e / f
return packet | [
"def",
"systemInformationType2",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x16",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1a",
")",
"# 00011010",
"d",
"=",
"NeighbourCellsDescription",
"(",
")",
"e",
"=",
"NccPermitted",
"(",
")",
"f",
"=",
"RachControlParameters",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 2 Section 9.1.32 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"2",
"Section",
"9",
".",
"1",
".",
"32"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L997-L1006 |
4,335 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType2bis | def systemInformationType2bis():
"""SYSTEM INFORMATION TYPE 2bis Section 9.1.33"""
a = L2PseudoLength(l2pLength=0x15)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x2) # 00000010
d = NeighbourCellsDescription()
e = RachControlParameters()
f = Si2bisRestOctets()
packet = a / b / c / d / e / f
return packet | python | def systemInformationType2bis():
"""SYSTEM INFORMATION TYPE 2bis Section 9.1.33"""
a = L2PseudoLength(l2pLength=0x15)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x2) # 00000010
d = NeighbourCellsDescription()
e = RachControlParameters()
f = Si2bisRestOctets()
packet = a / b / c / d / e / f
return packet | [
"def",
"systemInformationType2bis",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x15",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2",
")",
"# 00000010",
"d",
"=",
"NeighbourCellsDescription",
"(",
")",
"e",
"=",
"RachControlParameters",
"(",
")",
"f",
"=",
"Si2bisRestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 2bis Section 9.1.33 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"2bis",
"Section",
"9",
".",
"1",
".",
"33"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1011-L1020 |
4,336 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType2ter | def systemInformationType2ter():
"""SYSTEM INFORMATION TYPE 2ter Section 9.1.34"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3) # 00000011
d = NeighbourCellsDescription2()
e = Si2terRestOctets()
packet = a / b / c / d / e
return packet | python | def systemInformationType2ter():
"""SYSTEM INFORMATION TYPE 2ter Section 9.1.34"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3) # 00000011
d = NeighbourCellsDescription2()
e = Si2terRestOctets()
packet = a / b / c / d / e
return packet | [
"def",
"systemInformationType2ter",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x12",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3",
")",
"# 00000011",
"d",
"=",
"NeighbourCellsDescription2",
"(",
")",
"e",
"=",
"Si2terRestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 2ter Section 9.1.34 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"2ter",
"Section",
"9",
".",
"1",
".",
"34"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1025-L1033 |
4,337 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType3 | def systemInformationType3():
"""SYSTEM INFORMATION TYPE 3 Section 9.1.35"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1b) # 00011011
d = CellIdentity()
e = LocalAreaId()
f = ControlChannelDescription()
g = CellOptionsBCCH()
h = CellSelectionParameters()
i = RachControlParameters()
j = Si3RestOctets()
packet = a / b / c / d / e / f / g / h / i / j
return packet | python | def systemInformationType3():
"""SYSTEM INFORMATION TYPE 3 Section 9.1.35"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1b) # 00011011
d = CellIdentity()
e = LocalAreaId()
f = ControlChannelDescription()
g = CellOptionsBCCH()
h = CellSelectionParameters()
i = RachControlParameters()
j = Si3RestOctets()
packet = a / b / c / d / e / f / g / h / i / j
return packet | [
"def",
"systemInformationType3",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x12",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1b",
")",
"# 00011011",
"d",
"=",
"CellIdentity",
"(",
")",
"e",
"=",
"LocalAreaId",
"(",
")",
"f",
"=",
"ControlChannelDescription",
"(",
")",
"g",
"=",
"CellOptionsBCCH",
"(",
")",
"h",
"=",
"CellSelectionParameters",
"(",
")",
"i",
"=",
"RachControlParameters",
"(",
")",
"j",
"=",
"Si3RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"/",
"g",
"/",
"h",
"/",
"i",
"/",
"j",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 3 Section 9.1.35 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"3",
"Section",
"9",
".",
"1",
".",
"35"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1038-L1051 |
4,338 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType4 | def systemInformationType4(ChannelDescription_presence=0,
MobileAllocation_presence=0):
"""SYSTEM INFORMATION TYPE 4 Section 9.1.36"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1C) # 000111100
d = LocalAreaId()
e = CellSelectionParameters()
f = RachControlParameters()
packet = a / b / c / d / e / f
if ChannelDescription_presence is 1:
g = ChannelDescriptionHdr(ieiCD=0x64, eightBitCD=0x0)
packet = packet / g
if MobileAllocation_presence is 1:
h = MobileAllocationHdr(ieiMA=0x72, eightBitMA=0x0)
packet = packet / h
i = Si4RestOctets()
packet = packet / i
return packet | python | def systemInformationType4(ChannelDescription_presence=0,
MobileAllocation_presence=0):
"""SYSTEM INFORMATION TYPE 4 Section 9.1.36"""
a = L2PseudoLength()
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1C) # 000111100
d = LocalAreaId()
e = CellSelectionParameters()
f = RachControlParameters()
packet = a / b / c / d / e / f
if ChannelDescription_presence is 1:
g = ChannelDescriptionHdr(ieiCD=0x64, eightBitCD=0x0)
packet = packet / g
if MobileAllocation_presence is 1:
h = MobileAllocationHdr(ieiMA=0x72, eightBitMA=0x0)
packet = packet / h
i = Si4RestOctets()
packet = packet / i
return packet | [
"def",
"systemInformationType4",
"(",
"ChannelDescription_presence",
"=",
"0",
",",
"MobileAllocation_presence",
"=",
"0",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1C",
")",
"# 000111100",
"d",
"=",
"LocalAreaId",
"(",
")",
"e",
"=",
"CellSelectionParameters",
"(",
")",
"f",
"=",
"RachControlParameters",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"if",
"ChannelDescription_presence",
"is",
"1",
":",
"g",
"=",
"ChannelDescriptionHdr",
"(",
"ieiCD",
"=",
"0x64",
",",
"eightBitCD",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"if",
"MobileAllocation_presence",
"is",
"1",
":",
"h",
"=",
"MobileAllocationHdr",
"(",
"ieiMA",
"=",
"0x72",
",",
"eightBitMA",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"h",
"i",
"=",
"Si4RestOctets",
"(",
")",
"packet",
"=",
"packet",
"/",
"i",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 4 Section 9.1.36 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"4",
"Section",
"9",
".",
"1",
".",
"36"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1058-L1076 |
4,339 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType5bis | def systemInformationType5bis():
"""SYSTEM INFORMATION TYPE 5bis Section 9.1.38"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x5) # 00000101
d = NeighbourCellsDescription()
packet = a / b / c / d
return packet | python | def systemInformationType5bis():
"""SYSTEM INFORMATION TYPE 5bis Section 9.1.38"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x5) # 00000101
d = NeighbourCellsDescription()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType5bis",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x12",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x5",
")",
"# 00000101",
"d",
"=",
"NeighbourCellsDescription",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 5bis Section 9.1.38 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"5bis",
"Section",
"9",
".",
"1",
".",
"38"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1093-L1100 |
4,340 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType5ter | def systemInformationType5ter():
"""SYSTEM INFORMATION TYPE 5ter Section 9.1.39"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x6) # 00000110
d = NeighbourCellsDescription2()
packet = a / b / c / d
return packet | python | def systemInformationType5ter():
"""SYSTEM INFORMATION TYPE 5ter Section 9.1.39"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x6) # 00000110
d = NeighbourCellsDescription2()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType5ter",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x12",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x6",
")",
"# 00000110",
"d",
"=",
"NeighbourCellsDescription2",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 5ter Section 9.1.39 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"5ter",
"Section",
"9",
".",
"1",
".",
"39"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1105-L1112 |
4,341 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType6 | def systemInformationType6():
"""SYSTEM INFORMATION TYPE 6 Section 9.1.40"""
a = L2PseudoLength(l2pLength=0x0b)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1e) # 00011011
d = CellIdentity()
e = LocalAreaId()
f = CellOptionsBCCH()
g = NccPermitted()
h = Si6RestOctets()
packet = a / b / c / d / e / f / g
return packet | python | def systemInformationType6():
"""SYSTEM INFORMATION TYPE 6 Section 9.1.40"""
a = L2PseudoLength(l2pLength=0x0b)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x1e) # 00011011
d = CellIdentity()
e = LocalAreaId()
f = CellOptionsBCCH()
g = NccPermitted()
h = Si6RestOctets()
packet = a / b / c / d / e / f / g
return packet | [
"def",
"systemInformationType6",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x0b",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1e",
")",
"# 00011011",
"d",
"=",
"CellIdentity",
"(",
")",
"e",
"=",
"LocalAreaId",
"(",
")",
"f",
"=",
"CellOptionsBCCH",
"(",
")",
"g",
"=",
"NccPermitted",
"(",
")",
"h",
"=",
"Si6RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"/",
"g",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 6 Section 9.1.40 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"6",
"Section",
"9",
".",
"1",
".",
"40"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1117-L1128 |
4,342 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType7 | def systemInformationType7():
"""SYSTEM INFORMATION TYPE 7 Section 9.1.41"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x37) # 000110111
d = Si7RestOctets()
packet = a / b / c / d
return packet | python | def systemInformationType7():
"""SYSTEM INFORMATION TYPE 7 Section 9.1.41"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x37) # 000110111
d = Si7RestOctets()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType7",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x01",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x37",
")",
"# 000110111",
"d",
"=",
"Si7RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 7 Section 9.1.41 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"7",
"Section",
"9",
".",
"1",
".",
"41"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1133-L1140 |
4,343 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType8 | def systemInformationType8():
"""SYSTEM INFORMATION TYPE 8 Section 9.1.42"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x18) # 00011000
d = Si8RestOctets()
packet = a / b / c / d
return packet | python | def systemInformationType8():
"""SYSTEM INFORMATION TYPE 8 Section 9.1.42"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x18) # 00011000
d = Si8RestOctets()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType8",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x01",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x18",
")",
"# 00011000",
"d",
"=",
"Si8RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 8 Section 9.1.42 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"8",
"Section",
"9",
".",
"1",
".",
"42"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1145-L1152 |
4,344 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType9 | def systemInformationType9():
"""SYSTEM INFORMATION TYPE 9 Section 9.1.43"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x4) # 00000100
d = Si9RestOctets()
packet = a / b / c / d
return packet | python | def systemInformationType9():
"""SYSTEM INFORMATION TYPE 9 Section 9.1.43"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x4) # 00000100
d = Si9RestOctets()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType9",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x01",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x4",
")",
"# 00000100",
"d",
"=",
"Si9RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 9 Section 9.1.43 | [
"SYSTEM",
"INFORMATION",
"TYPE",
"9",
"Section",
"9",
".",
"1",
".",
"43"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1157-L1164 |
4,345 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType13 | def systemInformationType13():
"""SYSTEM INFORMATION TYPE 13 Section 9.1.43a"""
a = L2PseudoLength(l2pLength=0x00)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x0) # 00000000
d = Si13RestOctets()
packet = a / b / c / d
return packet | python | def systemInformationType13():
"""SYSTEM INFORMATION TYPE 13 Section 9.1.43a"""
a = L2PseudoLength(l2pLength=0x00)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x0) # 00000000
d = Si13RestOctets()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType13",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x00",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x0",
")",
"# 00000000",
"d",
"=",
"Si13RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 13 Section 9.1.43a | [
"SYSTEM",
"INFORMATION",
"TYPE",
"13",
"Section",
"9",
".",
"1",
".",
"43a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1169-L1176 |
4,346 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType16 | def systemInformationType16():
"""SYSTEM INFORMATION TYPE 16 Section 9.1.43d"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3d) # 00111101
d = Si16RestOctets()
packet = a / b / c / d
return packet | python | def systemInformationType16():
"""SYSTEM INFORMATION TYPE 16 Section 9.1.43d"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3d) # 00111101
d = Si16RestOctets()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType16",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x01",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3d",
")",
"# 00111101",
"d",
"=",
"Si16RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 16 Section 9.1.43d | [
"SYSTEM",
"INFORMATION",
"TYPE",
"16",
"Section",
"9",
".",
"1",
".",
"43d"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1184-L1191 |
4,347 | phaethon/kamene | kamene/contrib/gsm_um.py | systemInformationType17 | def systemInformationType17():
"""SYSTEM INFORMATION TYPE 17 Section 9.1.43e"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3e) # 00111110
d = Si17RestOctets()
packet = a / b / c / d
return packet | python | def systemInformationType17():
"""SYSTEM INFORMATION TYPE 17 Section 9.1.43e"""
a = L2PseudoLength(l2pLength=0x01)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x3e) # 00111110
d = Si17RestOctets()
packet = a / b / c / d
return packet | [
"def",
"systemInformationType17",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x01",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3e",
")",
"# 00111110",
"d",
"=",
"Si17RestOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | SYSTEM INFORMATION TYPE 17 Section 9.1.43e | [
"SYSTEM",
"INFORMATION",
"TYPE",
"17",
"Section",
"9",
".",
"1",
".",
"43e"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1196-L1203 |
4,348 | phaethon/kamene | kamene/contrib/gsm_um.py | talkerIndication | def talkerIndication():
"""TALKER INDICATION Section 9.1.44"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x11) # 00010001
c = MobileStationClassmark2()
d = MobileId()
packet = a / b / c / d
return packet | python | def talkerIndication():
"""TALKER INDICATION Section 9.1.44"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x11) # 00010001
c = MobileStationClassmark2()
d = MobileId()
packet = a / b / c / d
return packet | [
"def",
"talkerIndication",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x11",
")",
"# 00010001",
"c",
"=",
"MobileStationClassmark2",
"(",
")",
"d",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | TALKER INDICATION Section 9.1.44 | [
"TALKER",
"INDICATION",
"Section",
"9",
".",
"1",
".",
"44"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1206-L1213 |
4,349 | phaethon/kamene | kamene/contrib/gsm_um.py | uplinkBusy | def uplinkBusy():
"""UPLINK BUSY Section 9.1.46"""
name = "Uplink Busy"
a = TpPd(pd=0x6)
b = MessageType(mesType=0x2a) # 00101010
packet = a / b
return packet | python | def uplinkBusy():
"""UPLINK BUSY Section 9.1.46"""
name = "Uplink Busy"
a = TpPd(pd=0x6)
b = MessageType(mesType=0x2a) # 00101010
packet = a / b
return packet | [
"def",
"uplinkBusy",
"(",
")",
":",
"name",
"=",
"\"Uplink Busy\"",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2a",
")",
"# 00101010",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | UPLINK BUSY Section 9.1.46 | [
"UPLINK",
"BUSY",
"Section",
"9",
".",
"1",
".",
"46"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1225-L1231 |
4,350 | phaethon/kamene | kamene/contrib/gsm_um.py | vgcsUplinkGrant | def vgcsUplinkGrant():
"""VGCS UPLINK GRANT Section 9.1.49"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x9) # 00001001
c = RrCause()
d = RequestReference()
e = TimingAdvance()
packet = a / b / c / d / e
return packet | python | def vgcsUplinkGrant():
"""VGCS UPLINK GRANT Section 9.1.49"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x9) # 00001001
c = RrCause()
d = RequestReference()
e = TimingAdvance()
packet = a / b / c / d / e
return packet | [
"def",
"vgcsUplinkGrant",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x9",
")",
"# 00001001",
"c",
"=",
"RrCause",
"(",
")",
"d",
"=",
"RequestReference",
"(",
")",
"e",
"=",
"TimingAdvance",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"return",
"packet"
] | VGCS UPLINK GRANT Section 9.1.49 | [
"VGCS",
"UPLINK",
"GRANT",
"Section",
"9",
".",
"1",
".",
"49"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1258-L1266 |
4,351 | phaethon/kamene | kamene/contrib/gsm_um.py | extendedMeasurementOrder | def extendedMeasurementOrder():
"""EXTENDED MEASUREMENT ORDER Section 9.1.51"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x37) # 00110111
d = ExtendedMeasurementFrequencyList()
packet = a / b / c / d
return packet | python | def extendedMeasurementOrder():
"""EXTENDED MEASUREMENT ORDER Section 9.1.51"""
a = L2PseudoLength(l2pLength=0x12)
b = TpPd(pd=0x6)
c = MessageType(mesType=0x37) # 00110111
d = ExtendedMeasurementFrequencyList()
packet = a / b / c / d
return packet | [
"def",
"extendedMeasurementOrder",
"(",
")",
":",
"a",
"=",
"L2PseudoLength",
"(",
"l2pLength",
"=",
"0x12",
")",
"b",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"c",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x37",
")",
"# 00110111",
"d",
"=",
"ExtendedMeasurementFrequencyList",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | EXTENDED MEASUREMENT ORDER Section 9.1.51 | [
"EXTENDED",
"MEASUREMENT",
"ORDER",
"Section",
"9",
".",
"1",
".",
"51"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1283-L1290 |
4,352 | phaethon/kamene | kamene/contrib/gsm_um.py | extendedMeasurementReport | def extendedMeasurementReport():
"""EXTENDED MEASUREMENT REPORT Section 9.1.52"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x36) # 00110110
c = ExtendedMeasurementResults()
packet = a / b / c
return packet | python | def extendedMeasurementReport():
"""EXTENDED MEASUREMENT REPORT Section 9.1.52"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x36) # 00110110
c = ExtendedMeasurementResults()
packet = a / b / c
return packet | [
"def",
"extendedMeasurementReport",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x36",
")",
"# 00110110",
"c",
"=",
"ExtendedMeasurementResults",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | EXTENDED MEASUREMENT REPORT Section 9.1.52 | [
"EXTENDED",
"MEASUREMENT",
"REPORT",
"Section",
"9",
".",
"1",
".",
"52"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1293-L1299 |
4,353 | phaethon/kamene | kamene/contrib/gsm_um.py | applicationInformation | def applicationInformation():
"""APPLICATION INFORMATION Section 9.1.53"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x38) # 00111000
c = ApduIDAndApduFlags()
e = ApduData()
packet = a / b / c / e
return packet | python | def applicationInformation():
"""APPLICATION INFORMATION Section 9.1.53"""
a = TpPd(pd=0x6)
b = MessageType(mesType=0x38) # 00111000
c = ApduIDAndApduFlags()
e = ApduData()
packet = a / b / c / e
return packet | [
"def",
"applicationInformation",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x6",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x38",
")",
"# 00111000",
"c",
"=",
"ApduIDAndApduFlags",
"(",
")",
"e",
"=",
"ApduData",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"e",
"return",
"packet"
] | APPLICATION INFORMATION Section 9.1.53 | [
"APPLICATION",
"INFORMATION",
"Section",
"9",
".",
"1",
".",
"53"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1302-L1309 |
4,354 | phaethon/kamene | kamene/contrib/gsm_um.py | authenticationReject | def authenticationReject():
"""AUTHENTICATION REJECT Section 9.2.1"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x11) # 00010001
packet = a / b
return packet | python | def authenticationReject():
"""AUTHENTICATION REJECT Section 9.2.1"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x11) # 00010001
packet = a / b
return packet | [
"def",
"authenticationReject",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x11",
")",
"# 00010001",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | AUTHENTICATION REJECT Section 9.2.1 | [
"AUTHENTICATION",
"REJECT",
"Section",
"9",
".",
"2",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1316-L1321 |
4,355 | phaethon/kamene | kamene/contrib/gsm_um.py | authenticationRequest | def authenticationRequest():
"""AUTHENTICATION REQUEST Section 9.2.2"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x12) # 00010010
c = CiphKeySeqNrAndSpareHalfOctets()
d = AuthenticationParameterRAND()
packet = a / b / c / d
return packet | python | def authenticationRequest():
"""AUTHENTICATION REQUEST Section 9.2.2"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x12) # 00010010
c = CiphKeySeqNrAndSpareHalfOctets()
d = AuthenticationParameterRAND()
packet = a / b / c / d
return packet | [
"def",
"authenticationRequest",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x12",
")",
"# 00010010",
"c",
"=",
"CiphKeySeqNrAndSpareHalfOctets",
"(",
")",
"d",
"=",
"AuthenticationParameterRAND",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | AUTHENTICATION REQUEST Section 9.2.2 | [
"AUTHENTICATION",
"REQUEST",
"Section",
"9",
".",
"2",
".",
"2"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1325-L1332 |
4,356 | phaethon/kamene | kamene/contrib/gsm_um.py | authenticationResponse | def authenticationResponse():
"""AUTHENTICATION RESPONSE Section 9.2.3"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x14) # 00010100
c = AuthenticationParameterSRES()
packet = a / b / c
return packet | python | def authenticationResponse():
"""AUTHENTICATION RESPONSE Section 9.2.3"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x14) # 00010100
c = AuthenticationParameterSRES()
packet = a / b / c
return packet | [
"def",
"authenticationResponse",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x14",
")",
"# 00010100",
"c",
"=",
"AuthenticationParameterSRES",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | AUTHENTICATION RESPONSE Section 9.2.3 | [
"AUTHENTICATION",
"RESPONSE",
"Section",
"9",
".",
"2",
".",
"3"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1335-L1341 |
4,357 | phaethon/kamene | kamene/contrib/gsm_um.py | cmReestablishmentRequest | def cmReestablishmentRequest(LocalAreaId_presence=0):
"""CM RE-ESTABLISHMENT REQUEST Section 9.2.4"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x28) # 00101000
c = CiphKeySeqNrAndSpareHalfOctets()
e = MobileStationClassmark2()
f = MobileId()
if LocalAreaId_presence is 1:
g = LocalAreaId(iei=0x13, eightbit=0x0)
packet = packet / g
packet = a / b / c / e / f
return packet | python | def cmReestablishmentRequest(LocalAreaId_presence=0):
"""CM RE-ESTABLISHMENT REQUEST Section 9.2.4"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x28) # 00101000
c = CiphKeySeqNrAndSpareHalfOctets()
e = MobileStationClassmark2()
f = MobileId()
if LocalAreaId_presence is 1:
g = LocalAreaId(iei=0x13, eightbit=0x0)
packet = packet / g
packet = a / b / c / e / f
return packet | [
"def",
"cmReestablishmentRequest",
"(",
"LocalAreaId_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x28",
")",
"# 00101000",
"c",
"=",
"CiphKeySeqNrAndSpareHalfOctets",
"(",
")",
"e",
"=",
"MobileStationClassmark2",
"(",
")",
"f",
"=",
"MobileId",
"(",
")",
"if",
"LocalAreaId_presence",
"is",
"1",
":",
"g",
"=",
"LocalAreaId",
"(",
"iei",
"=",
"0x13",
",",
"eightbit",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"e",
"/",
"f",
"return",
"packet"
] | CM RE-ESTABLISHMENT REQUEST Section 9.2.4 | [
"CM",
"RE",
"-",
"ESTABLISHMENT",
"REQUEST",
"Section",
"9",
".",
"2",
".",
"4"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1344-L1355 |
4,358 | phaethon/kamene | kamene/contrib/gsm_um.py | cmServiceAccept | def cmServiceAccept():
"""CM SERVICE ACCEPT Section 9.2.5"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x21) # 00100001
packet = a / b
return packet | python | def cmServiceAccept():
"""CM SERVICE ACCEPT Section 9.2.5"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x21) # 00100001
packet = a / b
return packet | [
"def",
"cmServiceAccept",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x21",
")",
"# 00100001",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | CM SERVICE ACCEPT Section 9.2.5 | [
"CM",
"SERVICE",
"ACCEPT",
"Section",
"9",
".",
"2",
".",
"5"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1359-L1364 |
4,359 | phaethon/kamene | kamene/contrib/gsm_um.py | cmServicePrompt | def cmServicePrompt():
"""CM SERVICE PROMPT Section 9.2.5a"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x25) # 00100101
c = PdAndSapi()
packet = a / b / c
return packet | python | def cmServicePrompt():
"""CM SERVICE PROMPT Section 9.2.5a"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x25) # 00100101
c = PdAndSapi()
packet = a / b / c
return packet | [
"def",
"cmServicePrompt",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x25",
")",
"# 00100101",
"c",
"=",
"PdAndSapi",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | CM SERVICE PROMPT Section 9.2.5a | [
"CM",
"SERVICE",
"PROMPT",
"Section",
"9",
".",
"2",
".",
"5a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1368-L1374 |
4,360 | phaethon/kamene | kamene/contrib/gsm_um.py | cmServiceAbort | def cmServiceAbort():
"""CM SERVICE ABORT Section 9.2.7"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x23) # 00100011
packet = a / b
return packet | python | def cmServiceAbort():
"""CM SERVICE ABORT Section 9.2.7"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x23) # 00100011
packet = a / b
return packet | [
"def",
"cmServiceAbort",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x23",
")",
"# 00100011",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | CM SERVICE ABORT Section 9.2.7 | [
"CM",
"SERVICE",
"ABORT",
"Section",
"9",
".",
"2",
".",
"7"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1387-L1392 |
4,361 | phaethon/kamene | kamene/contrib/gsm_um.py | abort | def abort():
"""ABORT Section 9.2.8"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x29) # 00101001
c = RejectCause()
packet = a / b / c
return packet | python | def abort():
"""ABORT Section 9.2.8"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x29) # 00101001
c = RejectCause()
packet = a / b / c
return packet | [
"def",
"abort",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x29",
")",
"# 00101001",
"c",
"=",
"RejectCause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | ABORT Section 9.2.8 | [
"ABORT",
"Section",
"9",
".",
"2",
".",
"8"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1396-L1402 |
4,362 | phaethon/kamene | kamene/contrib/gsm_um.py | cmServiceRequest | def cmServiceRequest(PriorityLevel_presence=0):
"""CM SERVICE REQUEST Section 9.2.9"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x24) # 00100100
c = CmServiceTypeAndCiphKeySeqNr()
e = MobileStationClassmark2()
f = MobileId()
packet = a / b / c / e / f
if PriorityLevel_presence is 1:
g = PriorityLevelHdr(ieiPL=0x8, eightBitPL=0x0)
packet = packet / g
return packet | python | def cmServiceRequest(PriorityLevel_presence=0):
"""CM SERVICE REQUEST Section 9.2.9"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x24) # 00100100
c = CmServiceTypeAndCiphKeySeqNr()
e = MobileStationClassmark2()
f = MobileId()
packet = a / b / c / e / f
if PriorityLevel_presence is 1:
g = PriorityLevelHdr(ieiPL=0x8, eightBitPL=0x0)
packet = packet / g
return packet | [
"def",
"cmServiceRequest",
"(",
"PriorityLevel_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x24",
")",
"# 00100100",
"c",
"=",
"CmServiceTypeAndCiphKeySeqNr",
"(",
")",
"e",
"=",
"MobileStationClassmark2",
"(",
")",
"f",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"e",
"/",
"f",
"if",
"PriorityLevel_presence",
"is",
"1",
":",
"g",
"=",
"PriorityLevelHdr",
"(",
"ieiPL",
"=",
"0x8",
",",
"eightBitPL",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"return",
"packet"
] | CM SERVICE REQUEST Section 9.2.9 | [
"CM",
"SERVICE",
"REQUEST",
"Section",
"9",
".",
"2",
".",
"9"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1405-L1416 |
4,363 | phaethon/kamene | kamene/contrib/gsm_um.py | identityRequest | def identityRequest():
"""IDENTITY REQUEST Section 9.2.10"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x8) # 00001000
c = IdentityTypeAndSpareHalfOctets()
packet = a / b / c
return packet | python | def identityRequest():
"""IDENTITY REQUEST Section 9.2.10"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x8) # 00001000
c = IdentityTypeAndSpareHalfOctets()
packet = a / b / c
return packet | [
"def",
"identityRequest",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x8",
")",
"# 00001000",
"c",
"=",
"IdentityTypeAndSpareHalfOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | IDENTITY REQUEST Section 9.2.10 | [
"IDENTITY",
"REQUEST",
"Section",
"9",
".",
"2",
".",
"10"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1420-L1426 |
4,364 | phaethon/kamene | kamene/contrib/gsm_um.py | imsiDetachIndication | def imsiDetachIndication():
"""IMSI DETACH INDICATION Section 9.2.12"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x1) # 00000001
c = MobileStationClassmark1()
d = MobileId()
packet = a / b / c / d
return packet | python | def imsiDetachIndication():
"""IMSI DETACH INDICATION Section 9.2.12"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x1) # 00000001
c = MobileStationClassmark1()
d = MobileId()
packet = a / b / c / d
return packet | [
"def",
"imsiDetachIndication",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1",
")",
"# 00000001",
"c",
"=",
"MobileStationClassmark1",
"(",
")",
"d",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | IMSI DETACH INDICATION Section 9.2.12 | [
"IMSI",
"DETACH",
"INDICATION",
"Section",
"9",
".",
"2",
".",
"12"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1438-L1445 |
4,365 | phaethon/kamene | kamene/contrib/gsm_um.py | locationUpdatingAccept | def locationUpdatingAccept(MobileId_presence=0,
FollowOnProceed_presence=0,
CtsPermission_presence=0):
"""LOCATION UPDATING ACCEPT Section 9.2.13"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x02) # 00000010
c = LocalAreaId()
packet = a / b / c
if MobileId_presence is 1:
d = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / d
if FollowOnProceed_presence is 1:
e = FollowOnProceed(ieiFOP=0xA1)
packet = packet / e
if CtsPermission_presence is 1:
f = CtsPermissionHdr(ieiCP=0xA2, eightBitCP=0x0)
packet = packet / f
return packet | python | def locationUpdatingAccept(MobileId_presence=0,
FollowOnProceed_presence=0,
CtsPermission_presence=0):
"""LOCATION UPDATING ACCEPT Section 9.2.13"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x02) # 00000010
c = LocalAreaId()
packet = a / b / c
if MobileId_presence is 1:
d = MobileIdHdr(ieiMI=0x17, eightBitMI=0x0)
packet = packet / d
if FollowOnProceed_presence is 1:
e = FollowOnProceed(ieiFOP=0xA1)
packet = packet / e
if CtsPermission_presence is 1:
f = CtsPermissionHdr(ieiCP=0xA2, eightBitCP=0x0)
packet = packet / f
return packet | [
"def",
"locationUpdatingAccept",
"(",
"MobileId_presence",
"=",
"0",
",",
"FollowOnProceed_presence",
"=",
"0",
",",
"CtsPermission_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x02",
")",
"# 00000010",
"c",
"=",
"LocalAreaId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"MobileId_presence",
"is",
"1",
":",
"d",
"=",
"MobileIdHdr",
"(",
"ieiMI",
"=",
"0x17",
",",
"eightBitMI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"FollowOnProceed_presence",
"is",
"1",
":",
"e",
"=",
"FollowOnProceed",
"(",
"ieiFOP",
"=",
"0xA1",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"CtsPermission_presence",
"is",
"1",
":",
"f",
"=",
"CtsPermissionHdr",
"(",
"ieiCP",
"=",
"0xA2",
",",
"eightBitCP",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | LOCATION UPDATING ACCEPT Section 9.2.13 | [
"LOCATION",
"UPDATING",
"ACCEPT",
"Section",
"9",
".",
"2",
".",
"13"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1449-L1466 |
4,366 | phaethon/kamene | kamene/contrib/gsm_um.py | locationUpdatingRequest | def locationUpdatingRequest():
"""LOCATION UPDATING REQUEST Section 9.2.15"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x8) # 00001000
c = LocationUpdatingTypeAndCiphKeySeqNr()
e = LocalAreaId()
f = MobileStationClassmark1()
g = MobileId()
packet = a / b / c / e / f / g
return packet | python | def locationUpdatingRequest():
"""LOCATION UPDATING REQUEST Section 9.2.15"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x8) # 00001000
c = LocationUpdatingTypeAndCiphKeySeqNr()
e = LocalAreaId()
f = MobileStationClassmark1()
g = MobileId()
packet = a / b / c / e / f / g
return packet | [
"def",
"locationUpdatingRequest",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x8",
")",
"# 00001000",
"c",
"=",
"LocationUpdatingTypeAndCiphKeySeqNr",
"(",
")",
"e",
"=",
"LocalAreaId",
"(",
")",
"f",
"=",
"MobileStationClassmark1",
"(",
")",
"g",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"e",
"/",
"f",
"/",
"g",
"return",
"packet"
] | LOCATION UPDATING REQUEST Section 9.2.15 | [
"LOCATION",
"UPDATING",
"REQUEST",
"Section",
"9",
".",
"2",
".",
"15"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1479-L1488 |
4,367 | phaethon/kamene | kamene/contrib/gsm_um.py | mmInformation | def mmInformation(NetworkName_presence=0, NetworkName_presence1=0,
TimeZone_presence=0, TimeZoneAndTime_presence=0,
LsaIdentifier_presence=0):
"""MM INFORMATION Section 9.2.15a"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x32) # 00110010
packet = a / b
if NetworkName_presence is 1:
c = NetworkNameHdr(ieiNN=0x43, eightBitNN=0x0)
packet = packet / c
if NetworkName_presence1 is 1:
d = NetworkNameHdr(ieiNN=0x45, eightBitNN=0x0)
packet = packet / d
if TimeZone_presence is 1:
e = TimeZoneHdr(ieiTZ=0x46, eightBitTZ=0x0)
packet = packet / e
if TimeZoneAndTime_presence is 1:
f = TimeZoneAndTimeHdr(ieiTZAT=0x47, eightBitTZAT=0x0)
packet = packet / f
if LsaIdentifier_presence is 1:
g = LsaIdentifierHdr(ieiLI=0x48, eightBitLI=0x0)
packet = packet / g
return packet | python | def mmInformation(NetworkName_presence=0, NetworkName_presence1=0,
TimeZone_presence=0, TimeZoneAndTime_presence=0,
LsaIdentifier_presence=0):
"""MM INFORMATION Section 9.2.15a"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x32) # 00110010
packet = a / b
if NetworkName_presence is 1:
c = NetworkNameHdr(ieiNN=0x43, eightBitNN=0x0)
packet = packet / c
if NetworkName_presence1 is 1:
d = NetworkNameHdr(ieiNN=0x45, eightBitNN=0x0)
packet = packet / d
if TimeZone_presence is 1:
e = TimeZoneHdr(ieiTZ=0x46, eightBitTZ=0x0)
packet = packet / e
if TimeZoneAndTime_presence is 1:
f = TimeZoneAndTimeHdr(ieiTZAT=0x47, eightBitTZAT=0x0)
packet = packet / f
if LsaIdentifier_presence is 1:
g = LsaIdentifierHdr(ieiLI=0x48, eightBitLI=0x0)
packet = packet / g
return packet | [
"def",
"mmInformation",
"(",
"NetworkName_presence",
"=",
"0",
",",
"NetworkName_presence1",
"=",
"0",
",",
"TimeZone_presence",
"=",
"0",
",",
"TimeZoneAndTime_presence",
"=",
"0",
",",
"LsaIdentifier_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x32",
")",
"# 00110010",
"packet",
"=",
"a",
"/",
"b",
"if",
"NetworkName_presence",
"is",
"1",
":",
"c",
"=",
"NetworkNameHdr",
"(",
"ieiNN",
"=",
"0x43",
",",
"eightBitNN",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"NetworkName_presence1",
"is",
"1",
":",
"d",
"=",
"NetworkNameHdr",
"(",
"ieiNN",
"=",
"0x45",
",",
"eightBitNN",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"TimeZone_presence",
"is",
"1",
":",
"e",
"=",
"TimeZoneHdr",
"(",
"ieiTZ",
"=",
"0x46",
",",
"eightBitTZ",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"TimeZoneAndTime_presence",
"is",
"1",
":",
"f",
"=",
"TimeZoneAndTimeHdr",
"(",
"ieiTZAT",
"=",
"0x47",
",",
"eightBitTZAT",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"LsaIdentifier_presence",
"is",
"1",
":",
"g",
"=",
"LsaIdentifierHdr",
"(",
"ieiLI",
"=",
"0x48",
",",
"eightBitLI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"return",
"packet"
] | MM INFORMATION Section 9.2.15a | [
"MM",
"INFORMATION",
"Section",
"9",
".",
"2",
".",
"15a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1492-L1514 |
4,368 | phaethon/kamene | kamene/contrib/gsm_um.py | tmsiReallocationCommand | def tmsiReallocationCommand():
"""TMSI REALLOCATION COMMAND Section 9.2.17"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x1a) # 00011010
c = LocalAreaId()
d = MobileId()
packet = a / b / c / d
return packet | python | def tmsiReallocationCommand():
"""TMSI REALLOCATION COMMAND Section 9.2.17"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x1a) # 00011010
c = LocalAreaId()
d = MobileId()
packet = a / b / c / d
return packet | [
"def",
"tmsiReallocationCommand",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1a",
")",
"# 00011010",
"c",
"=",
"LocalAreaId",
"(",
")",
"d",
"=",
"MobileId",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | TMSI REALLOCATION COMMAND Section 9.2.17 | [
"TMSI",
"REALLOCATION",
"COMMAND",
"Section",
"9",
".",
"2",
".",
"17"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1527-L1534 |
4,369 | phaethon/kamene | kamene/contrib/gsm_um.py | tmsiReallocationComplete | def tmsiReallocationComplete():
"""TMSI REALLOCATION COMPLETE Section 9.2.18"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x1b) # 00011011
packet = a / b
return packet | python | def tmsiReallocationComplete():
"""TMSI REALLOCATION COMPLETE Section 9.2.18"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x1b) # 00011011
packet = a / b
return packet | [
"def",
"tmsiReallocationComplete",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1b",
")",
"# 00011011",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | TMSI REALLOCATION COMPLETE Section 9.2.18 | [
"TMSI",
"REALLOCATION",
"COMPLETE",
"Section",
"9",
".",
"2",
".",
"18"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1537-L1542 |
4,370 | phaethon/kamene | kamene/contrib/gsm_um.py | mmNull | def mmNull():
"""MM NULL Section 9.2.19"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x30) # 00110000
packet = a / b
return packet | python | def mmNull():
"""MM NULL Section 9.2.19"""
a = TpPd(pd=0x5)
b = MessageType(mesType=0x30) # 00110000
packet = a / b
return packet | [
"def",
"mmNull",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x5",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x30",
")",
"# 00110000",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | MM NULL Section 9.2.19 | [
"MM",
"NULL",
"Section",
"9",
".",
"2",
".",
"19"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1545-L1550 |
4,371 | phaethon/kamene | kamene/contrib/gsm_um.py | alertingNetToMs | def alertingNetToMs(Facility_presence=0, ProgressIndicator_presence=0,
UserUser_presence=0):
"""ALERTING Section 9.3.1.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x1) # 00000001
packet = a / b
if Facility_presence is 1:
c = FacilityHdr(ieiF=0x1C)
packet = packet / c
if ProgressIndicator_presence is 1:
d = ProgressIndicatorHdr(ieiPI=0x1E)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E)
packet = packet / e
return packet | python | def alertingNetToMs(Facility_presence=0, ProgressIndicator_presence=0,
UserUser_presence=0):
"""ALERTING Section 9.3.1.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x1) # 00000001
packet = a / b
if Facility_presence is 1:
c = FacilityHdr(ieiF=0x1C)
packet = packet / c
if ProgressIndicator_presence is 1:
d = ProgressIndicatorHdr(ieiPI=0x1E)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E)
packet = packet / e
return packet | [
"def",
"alertingNetToMs",
"(",
"Facility_presence",
"=",
"0",
",",
"ProgressIndicator_presence",
"=",
"0",
",",
"UserUser_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1",
")",
"# 00000001",
"packet",
"=",
"a",
"/",
"b",
"if",
"Facility_presence",
"is",
"1",
":",
"c",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"ProgressIndicator_presence",
"is",
"1",
":",
"d",
"=",
"ProgressIndicatorHdr",
"(",
"ieiPI",
"=",
"0x1E",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"UserUser_presence",
"is",
"1",
":",
"e",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7E",
")",
"packet",
"=",
"packet",
"/",
"e",
"return",
"packet"
] | ALERTING Section 9.3.1.1 | [
"ALERTING",
"Section",
"9",
".",
"3",
".",
"1",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1558-L1573 |
4,372 | phaethon/kamene | kamene/contrib/gsm_um.py | callConfirmed | def callConfirmed(RepeatIndicator_presence=0,
BearerCapability_presence=0, BearerCapability_presence1=0,
Cause_presence=0, CallControlCapabilities_presence=0):
"""CALL CONFIRMED Section 9.3.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x8) # 00001000
packet = a / b
if RepeatIndicator_presence is 1:
c = RepeatIndicatorHdr(ieiRI=0xD, eightBitRI=0x0)
packet = packet / c
if BearerCapability_presence is 1:
d = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / d
if BearerCapability_presence1 is 1:
e = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / e
if Cause_presence is 1:
f = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / f
if CallControlCapabilities_presence is 1:
g = CallControlCapabilitiesHdr(ieiCCC=0x15, eightBitCCC=0x0)
packet = packet / g
return packet | python | def callConfirmed(RepeatIndicator_presence=0,
BearerCapability_presence=0, BearerCapability_presence1=0,
Cause_presence=0, CallControlCapabilities_presence=0):
"""CALL CONFIRMED Section 9.3.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x8) # 00001000
packet = a / b
if RepeatIndicator_presence is 1:
c = RepeatIndicatorHdr(ieiRI=0xD, eightBitRI=0x0)
packet = packet / c
if BearerCapability_presence is 1:
d = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / d
if BearerCapability_presence1 is 1:
e = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / e
if Cause_presence is 1:
f = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / f
if CallControlCapabilities_presence is 1:
g = CallControlCapabilitiesHdr(ieiCCC=0x15, eightBitCCC=0x0)
packet = packet / g
return packet | [
"def",
"callConfirmed",
"(",
"RepeatIndicator_presence",
"=",
"0",
",",
"BearerCapability_presence",
"=",
"0",
",",
"BearerCapability_presence1",
"=",
"0",
",",
"Cause_presence",
"=",
"0",
",",
"CallControlCapabilities_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x8",
")",
"# 00001000",
"packet",
"=",
"a",
"/",
"b",
"if",
"RepeatIndicator_presence",
"is",
"1",
":",
"c",
"=",
"RepeatIndicatorHdr",
"(",
"ieiRI",
"=",
"0xD",
",",
"eightBitRI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"BearerCapability_presence",
"is",
"1",
":",
"d",
"=",
"BearerCapabilityHdr",
"(",
"ieiBC",
"=",
"0x04",
",",
"eightBitBC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"BearerCapability_presence1",
"is",
"1",
":",
"e",
"=",
"BearerCapabilityHdr",
"(",
"ieiBC",
"=",
"0x04",
",",
"eightBitBC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"Cause_presence",
"is",
"1",
":",
"f",
"=",
"CauseHdr",
"(",
"ieiC",
"=",
"0x08",
",",
"eightBitC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"CallControlCapabilities_presence",
"is",
"1",
":",
"g",
"=",
"CallControlCapabilitiesHdr",
"(",
"ieiCCC",
"=",
"0x15",
",",
"eightBitCCC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"return",
"packet"
] | CALL CONFIRMED Section 9.3.2 | [
"CALL",
"CONFIRMED",
"Section",
"9",
".",
"3",
".",
"2"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1594-L1616 |
4,373 | phaethon/kamene | kamene/contrib/gsm_um.py | callProceeding | def callProceeding(RepeatIndicator_presence=0,
BearerCapability_presence=0,
BearerCapability_presence1=0,
Facility_presence=0, ProgressIndicator_presence=0,
PriorityLevel_presence=0):
"""CALL PROCEEDING Section 9.3.3"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2) # 00000010
packet = a / b
if RepeatIndicator_presence is 1:
c = RepeatIndicatorHdr(ieiRI=0xD, eightBitRI=0x0)
packet = packet / c
if BearerCapability_presence is 1:
d = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / d
if BearerCapability_presence1 is 1:
e = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / e
if Facility_presence is 1:
f = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / f
if ProgressIndicator_presence is 1:
g = ProgressIndicatorHdr(ieiPI=0x1E, eightBitPI=0x0)
packet = packet / g
if PriorityLevel_presence is 1:
h = PriorityLevelHdr(ieiPL=0x80, eightBitPL=0x0)
packet = packet / h
return packet | python | def callProceeding(RepeatIndicator_presence=0,
BearerCapability_presence=0,
BearerCapability_presence1=0,
Facility_presence=0, ProgressIndicator_presence=0,
PriorityLevel_presence=0):
"""CALL PROCEEDING Section 9.3.3"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2) # 00000010
packet = a / b
if RepeatIndicator_presence is 1:
c = RepeatIndicatorHdr(ieiRI=0xD, eightBitRI=0x0)
packet = packet / c
if BearerCapability_presence is 1:
d = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / d
if BearerCapability_presence1 is 1:
e = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / e
if Facility_presence is 1:
f = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / f
if ProgressIndicator_presence is 1:
g = ProgressIndicatorHdr(ieiPI=0x1E, eightBitPI=0x0)
packet = packet / g
if PriorityLevel_presence is 1:
h = PriorityLevelHdr(ieiPL=0x80, eightBitPL=0x0)
packet = packet / h
return packet | [
"def",
"callProceeding",
"(",
"RepeatIndicator_presence",
"=",
"0",
",",
"BearerCapability_presence",
"=",
"0",
",",
"BearerCapability_presence1",
"=",
"0",
",",
"Facility_presence",
"=",
"0",
",",
"ProgressIndicator_presence",
"=",
"0",
",",
"PriorityLevel_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2",
")",
"# 00000010",
"packet",
"=",
"a",
"/",
"b",
"if",
"RepeatIndicator_presence",
"is",
"1",
":",
"c",
"=",
"RepeatIndicatorHdr",
"(",
"ieiRI",
"=",
"0xD",
",",
"eightBitRI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"BearerCapability_presence",
"is",
"1",
":",
"d",
"=",
"BearerCapabilityHdr",
"(",
"ieiBC",
"=",
"0x04",
",",
"eightBitBC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"BearerCapability_presence1",
"is",
"1",
":",
"e",
"=",
"BearerCapabilityHdr",
"(",
"ieiBC",
"=",
"0x04",
",",
"eightBitBC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"Facility_presence",
"is",
"1",
":",
"f",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"ProgressIndicator_presence",
"is",
"1",
":",
"g",
"=",
"ProgressIndicatorHdr",
"(",
"ieiPI",
"=",
"0x1E",
",",
"eightBitPI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"if",
"PriorityLevel_presence",
"is",
"1",
":",
"h",
"=",
"PriorityLevelHdr",
"(",
"ieiPL",
"=",
"0x80",
",",
"eightBitPL",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"h",
"return",
"packet"
] | CALL PROCEEDING Section 9.3.3 | [
"CALL",
"PROCEEDING",
"Section",
"9",
".",
"3",
".",
"3"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1620-L1647 |
4,374 | phaethon/kamene | kamene/contrib/gsm_um.py | congestionControl | def congestionControl(Cause_presence=0):
"""CONGESTION CONTROL Section 9.3.4"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x39) # 00111001
c = CongestionLevelAndSpareHalfOctets()
packet = a / b / c
if Cause_presence is 1:
e = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / e
return packet | python | def congestionControl(Cause_presence=0):
"""CONGESTION CONTROL Section 9.3.4"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x39) # 00111001
c = CongestionLevelAndSpareHalfOctets()
packet = a / b / c
if Cause_presence is 1:
e = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / e
return packet | [
"def",
"congestionControl",
"(",
"Cause_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x39",
")",
"# 00111001",
"c",
"=",
"CongestionLevelAndSpareHalfOctets",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"Cause_presence",
"is",
"1",
":",
"e",
"=",
"CauseHdr",
"(",
"ieiC",
"=",
"0x08",
",",
"eightBitC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"return",
"packet"
] | CONGESTION CONTROL Section 9.3.4 | [
"CONGESTION",
"CONTROL",
"Section",
"9",
".",
"3",
".",
"4"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1651-L1660 |
4,375 | phaethon/kamene | kamene/contrib/gsm_um.py | connectNetToMs | def connectNetToMs(Facility_presence=0, ProgressIndicator_presence=0,
ConnectedNumber_presence=0, ConnectedSubaddress_presence=0,
UserUser_presence=0):
"""CONNECT Section 9.3.5.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x7) # 00000111
packet = a / b
if Facility_presence is 1:
c = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / c
if ProgressIndicator_presence is 1:
d = ProgressIndicatorHdr(ieiPI=0x1E, eightBitPI=0x0)
packet = packet / d
if ConnectedNumber_presence is 1:
e = ConnectedNumberHdr(ieiCN=0x4C, eightBitCN=0x0)
packet = packet / e
if ConnectedSubaddress_presence is 1:
f = ConnectedSubaddressHdr(ieiCS=0x4D, eightBitCS=0x0)
packet = packet / f
if UserUser_presence is 1:
g = UserUserHdr(ieiUU=0x7F, eightBitUU=0x0)
packet = packet / g
return packet | python | def connectNetToMs(Facility_presence=0, ProgressIndicator_presence=0,
ConnectedNumber_presence=0, ConnectedSubaddress_presence=0,
UserUser_presence=0):
"""CONNECT Section 9.3.5.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x7) # 00000111
packet = a / b
if Facility_presence is 1:
c = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / c
if ProgressIndicator_presence is 1:
d = ProgressIndicatorHdr(ieiPI=0x1E, eightBitPI=0x0)
packet = packet / d
if ConnectedNumber_presence is 1:
e = ConnectedNumberHdr(ieiCN=0x4C, eightBitCN=0x0)
packet = packet / e
if ConnectedSubaddress_presence is 1:
f = ConnectedSubaddressHdr(ieiCS=0x4D, eightBitCS=0x0)
packet = packet / f
if UserUser_presence is 1:
g = UserUserHdr(ieiUU=0x7F, eightBitUU=0x0)
packet = packet / g
return packet | [
"def",
"connectNetToMs",
"(",
"Facility_presence",
"=",
"0",
",",
"ProgressIndicator_presence",
"=",
"0",
",",
"ConnectedNumber_presence",
"=",
"0",
",",
"ConnectedSubaddress_presence",
"=",
"0",
",",
"UserUser_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x7",
")",
"# 00000111",
"packet",
"=",
"a",
"/",
"b",
"if",
"Facility_presence",
"is",
"1",
":",
"c",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"ProgressIndicator_presence",
"is",
"1",
":",
"d",
"=",
"ProgressIndicatorHdr",
"(",
"ieiPI",
"=",
"0x1E",
",",
"eightBitPI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"ConnectedNumber_presence",
"is",
"1",
":",
"e",
"=",
"ConnectedNumberHdr",
"(",
"ieiCN",
"=",
"0x4C",
",",
"eightBitCN",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"ConnectedSubaddress_presence",
"is",
"1",
":",
"f",
"=",
"ConnectedSubaddressHdr",
"(",
"ieiCS",
"=",
"0x4D",
",",
"eightBitCS",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"UserUser_presence",
"is",
"1",
":",
"g",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7F",
",",
"eightBitUU",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"return",
"packet"
] | CONNECT Section 9.3.5.1 | [
"CONNECT",
"Section",
"9",
".",
"3",
".",
"5",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1664-L1686 |
4,376 | phaethon/kamene | kamene/contrib/gsm_um.py | connectMsToNet | def connectMsToNet(Facility_presence=0, ConnectedSubaddress_presence=0,
UserUser_presence=0, SsVersionIndicator_presence=0):
"""CONNECT Section 9.3.5.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x7) # 00000111
packet = a / b
if Facility_presence is 1:
c = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / c
if ConnectedSubaddress_presence is 1:
d = ConnectedSubaddressHdr(ieiCS=0x4D, eightBitCS=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7F, eightBitUU=0x0)
packet = packet / e
if SsVersionIndicator_presence is 1:
f = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / f
return packet | python | def connectMsToNet(Facility_presence=0, ConnectedSubaddress_presence=0,
UserUser_presence=0, SsVersionIndicator_presence=0):
"""CONNECT Section 9.3.5.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x7) # 00000111
packet = a / b
if Facility_presence is 1:
c = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / c
if ConnectedSubaddress_presence is 1:
d = ConnectedSubaddressHdr(ieiCS=0x4D, eightBitCS=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7F, eightBitUU=0x0)
packet = packet / e
if SsVersionIndicator_presence is 1:
f = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / f
return packet | [
"def",
"connectMsToNet",
"(",
"Facility_presence",
"=",
"0",
",",
"ConnectedSubaddress_presence",
"=",
"0",
",",
"UserUser_presence",
"=",
"0",
",",
"SsVersionIndicator_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x7",
")",
"# 00000111",
"packet",
"=",
"a",
"/",
"b",
"if",
"Facility_presence",
"is",
"1",
":",
"c",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"ConnectedSubaddress_presence",
"is",
"1",
":",
"d",
"=",
"ConnectedSubaddressHdr",
"(",
"ieiCS",
"=",
"0x4D",
",",
"eightBitCS",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"UserUser_presence",
"is",
"1",
":",
"e",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7F",
",",
"eightBitUU",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"SsVersionIndicator_presence",
"is",
"1",
":",
"f",
"=",
"SsVersionIndicatorHdr",
"(",
"ieiSVI",
"=",
"0x7F",
",",
"eightBitSVI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | CONNECT Section 9.3.5.2 | [
"CONNECT",
"Section",
"9",
".",
"3",
".",
"5",
".",
"2"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1689-L1707 |
4,377 | phaethon/kamene | kamene/contrib/gsm_um.py | connectAcknowledge | def connectAcknowledge():
"""CONNECT ACKNOWLEDGE Section 9.3.6"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0xf) # 00001111
packet = a / b
return packet | python | def connectAcknowledge():
"""CONNECT ACKNOWLEDGE Section 9.3.6"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0xf) # 00001111
packet = a / b
return packet | [
"def",
"connectAcknowledge",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0xf",
")",
"# 00001111",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | CONNECT ACKNOWLEDGE Section 9.3.6 | [
"CONNECT",
"ACKNOWLEDGE",
"Section",
"9",
".",
"3",
".",
"6"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1710-L1715 |
4,378 | phaethon/kamene | kamene/contrib/gsm_um.py | disconnectNetToMs | def disconnectNetToMs(Facility_presence=0, ProgressIndicator_presence=0,
UserUser_presence=0, AllowedActions_presence=0):
"""DISCONNECT Section 9.3.7.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x25) # 00100101
c = Cause()
packet = a / b / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if ProgressIndicator_presence is 1:
e = ProgressIndicatorHdr(ieiPI=0x1E, eightBitPI=0x0)
packet = packet / e
if UserUser_presence is 1:
f = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / f
if AllowedActions_presence is 1:
g = AllowedActionsHdr(ieiAA=0x7B, eightBitAA=0x0)
packet = packet / g
return packet | python | def disconnectNetToMs(Facility_presence=0, ProgressIndicator_presence=0,
UserUser_presence=0, AllowedActions_presence=0):
"""DISCONNECT Section 9.3.7.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x25) # 00100101
c = Cause()
packet = a / b / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if ProgressIndicator_presence is 1:
e = ProgressIndicatorHdr(ieiPI=0x1E, eightBitPI=0x0)
packet = packet / e
if UserUser_presence is 1:
f = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / f
if AllowedActions_presence is 1:
g = AllowedActionsHdr(ieiAA=0x7B, eightBitAA=0x0)
packet = packet / g
return packet | [
"def",
"disconnectNetToMs",
"(",
"Facility_presence",
"=",
"0",
",",
"ProgressIndicator_presence",
"=",
"0",
",",
"UserUser_presence",
"=",
"0",
",",
"AllowedActions_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x25",
")",
"# 00100101",
"c",
"=",
"Cause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"Facility_presence",
"is",
"1",
":",
"d",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"ProgressIndicator_presence",
"is",
"1",
":",
"e",
"=",
"ProgressIndicatorHdr",
"(",
"ieiPI",
"=",
"0x1E",
",",
"eightBitPI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"UserUser_presence",
"is",
"1",
":",
"f",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7E",
",",
"eightBitUU",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"if",
"AllowedActions_presence",
"is",
"1",
":",
"g",
"=",
"AllowedActionsHdr",
"(",
"ieiAA",
"=",
"0x7B",
",",
"eightBitAA",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"g",
"return",
"packet"
] | DISCONNECT Section 9.3.7.1 | [
"DISCONNECT",
"Section",
"9",
".",
"3",
".",
"7",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1719-L1738 |
4,379 | phaethon/kamene | kamene/contrib/gsm_um.py | disconnectMsToNet | def disconnectMsToNet(Facility_presence=0, UserUser_presence=0,
SsVersionIndicator_presence=0):
"""Disconnect Section 9.3.7.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x25) # 00100101
c = Cause()
packet = a / b / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / e
if SsVersionIndicator_presence is 1:
f = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / f
return packet | python | def disconnectMsToNet(Facility_presence=0, UserUser_presence=0,
SsVersionIndicator_presence=0):
"""Disconnect Section 9.3.7.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x25) # 00100101
c = Cause()
packet = a / b / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / e
if SsVersionIndicator_presence is 1:
f = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / f
return packet | [
"def",
"disconnectMsToNet",
"(",
"Facility_presence",
"=",
"0",
",",
"UserUser_presence",
"=",
"0",
",",
"SsVersionIndicator_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x25",
")",
"# 00100101",
"c",
"=",
"Cause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"Facility_presence",
"is",
"1",
":",
"d",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"UserUser_presence",
"is",
"1",
":",
"e",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7E",
",",
"eightBitUU",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"SsVersionIndicator_presence",
"is",
"1",
":",
"f",
"=",
"SsVersionIndicatorHdr",
"(",
"ieiSVI",
"=",
"0x7F",
",",
"eightBitSVI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | Disconnect Section 9.3.7.2 | [
"Disconnect",
"Section",
"9",
".",
"3",
".",
"7",
".",
"2"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1741-L1757 |
4,380 | phaethon/kamene | kamene/contrib/gsm_um.py | emergencySetup | def emergencySetup(BearerCapability_presence=0):
"""EMERGENCY SETUP Section 9.3.8"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0xe) # 00001110
packet = a / b
if BearerCapability_presence is 1:
c = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / c
return packet | python | def emergencySetup(BearerCapability_presence=0):
"""EMERGENCY SETUP Section 9.3.8"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0xe) # 00001110
packet = a / b
if BearerCapability_presence is 1:
c = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / c
return packet | [
"def",
"emergencySetup",
"(",
"BearerCapability_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0xe",
")",
"# 00001110",
"packet",
"=",
"a",
"/",
"b",
"if",
"BearerCapability_presence",
"is",
"1",
":",
"c",
"=",
"BearerCapabilityHdr",
"(",
"ieiBC",
"=",
"0x04",
",",
"eightBitBC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"return",
"packet"
] | EMERGENCY SETUP Section 9.3.8 | [
"EMERGENCY",
"SETUP",
"Section",
"9",
".",
"3",
".",
"8"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1760-L1768 |
4,381 | phaethon/kamene | kamene/contrib/gsm_um.py | facilityNetToMs | def facilityNetToMs():
"""FACILITY Section 9.3.9.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3a) # 00111010
c = Facility()
packet = a / b / c
return packet | python | def facilityNetToMs():
"""FACILITY Section 9.3.9.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3a) # 00111010
c = Facility()
packet = a / b / c
return packet | [
"def",
"facilityNetToMs",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3a",
")",
"# 00111010",
"c",
"=",
"Facility",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | FACILITY Section 9.3.9.1 | [
"FACILITY",
"Section",
"9",
".",
"3",
".",
"9",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1772-L1778 |
4,382 | phaethon/kamene | kamene/contrib/gsm_um.py | facilityMsToNet | def facilityMsToNet(SsVersionIndicator_presence=0):
"""FACILITY Section 9.3.9.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3a) # 00111010
c = Facility()
packet = a / b / c
if SsVersionIndicator_presence is 1:
d = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / d
return packet | python | def facilityMsToNet(SsVersionIndicator_presence=0):
"""FACILITY Section 9.3.9.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3a) # 00111010
c = Facility()
packet = a / b / c
if SsVersionIndicator_presence is 1:
d = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / d
return packet | [
"def",
"facilityMsToNet",
"(",
"SsVersionIndicator_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3a",
")",
"# 00111010",
"c",
"=",
"Facility",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"SsVersionIndicator_presence",
"is",
"1",
":",
"d",
"=",
"SsVersionIndicatorHdr",
"(",
"ieiSVI",
"=",
"0x7F",
",",
"eightBitSVI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"return",
"packet"
] | FACILITY Section 9.3.9.2 | [
"FACILITY",
"Section",
"9",
".",
"3",
".",
"9",
".",
"2"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1781-L1790 |
4,383 | phaethon/kamene | kamene/contrib/gsm_um.py | hold | def hold():
"""HOLD Section 9.3.10"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x18) # 00011000
packet = a / b
return packet | python | def hold():
"""HOLD Section 9.3.10"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x18) # 00011000
packet = a / b
return packet | [
"def",
"hold",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x18",
")",
"# 00011000",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | HOLD Section 9.3.10 | [
"HOLD",
"Section",
"9",
".",
"3",
".",
"10"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1793-L1798 |
4,384 | phaethon/kamene | kamene/contrib/gsm_um.py | holdAcknowledge | def holdAcknowledge():
"""HOLD ACKNOWLEDGE Section 9.3.11"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x19) # 00011001
packet = a / b
return packet | python | def holdAcknowledge():
"""HOLD ACKNOWLEDGE Section 9.3.11"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x19) # 00011001
packet = a / b
return packet | [
"def",
"holdAcknowledge",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x19",
")",
"# 00011001",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | HOLD ACKNOWLEDGE Section 9.3.11 | [
"HOLD",
"ACKNOWLEDGE",
"Section",
"9",
".",
"3",
".",
"11"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1802-L1807 |
4,385 | phaethon/kamene | kamene/contrib/gsm_um.py | modify | def modify(LowLayerCompatibility_presence=0,
HighLayerCompatibility_presence=0,
ReverseCallSetupDirection_presence=0):
"""MODIFY Section 9.3.13"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x17) # 00010111
c = BearerCapability()
packet = a / b / c
if LowLayerCompatibility_presence is 1:
d = LowLayerCompatibilityHdr(ieiLLC=0x7C, eightBitLLC=0x0)
packet = packet / d
if HighLayerCompatibility_presence is 1:
e = HighLayerCompatibilityHdr(ieiHLC=0x7D, eightBitHLC=0x0)
packet = packet / e
if ReverseCallSetupDirection_presence is 1:
f = ReverseCallSetupDirectionHdr(ieiRCSD=0xA3)
packet = packet / f
return packet | python | def modify(LowLayerCompatibility_presence=0,
HighLayerCompatibility_presence=0,
ReverseCallSetupDirection_presence=0):
"""MODIFY Section 9.3.13"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x17) # 00010111
c = BearerCapability()
packet = a / b / c
if LowLayerCompatibility_presence is 1:
d = LowLayerCompatibilityHdr(ieiLLC=0x7C, eightBitLLC=0x0)
packet = packet / d
if HighLayerCompatibility_presence is 1:
e = HighLayerCompatibilityHdr(ieiHLC=0x7D, eightBitHLC=0x0)
packet = packet / e
if ReverseCallSetupDirection_presence is 1:
f = ReverseCallSetupDirectionHdr(ieiRCSD=0xA3)
packet = packet / f
return packet | [
"def",
"modify",
"(",
"LowLayerCompatibility_presence",
"=",
"0",
",",
"HighLayerCompatibility_presence",
"=",
"0",
",",
"ReverseCallSetupDirection_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x17",
")",
"# 00010111",
"c",
"=",
"BearerCapability",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"LowLayerCompatibility_presence",
"is",
"1",
":",
"d",
"=",
"LowLayerCompatibilityHdr",
"(",
"ieiLLC",
"=",
"0x7C",
",",
"eightBitLLC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"HighLayerCompatibility_presence",
"is",
"1",
":",
"e",
"=",
"HighLayerCompatibilityHdr",
"(",
"ieiHLC",
"=",
"0x7D",
",",
"eightBitHLC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"ReverseCallSetupDirection_presence",
"is",
"1",
":",
"f",
"=",
"ReverseCallSetupDirectionHdr",
"(",
"ieiRCSD",
"=",
"0xA3",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | MODIFY Section 9.3.13 | [
"MODIFY",
"Section",
"9",
".",
"3",
".",
"13"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1820-L1837 |
4,386 | phaethon/kamene | kamene/contrib/gsm_um.py | modifyReject | def modifyReject(LowLayerCompatibility_presence=0,
HighLayerCompatibility_presence=0):
"""MODIFY REJECT Section 9.3.15"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x13) # 00010011
c = BearerCapability()
d = Cause()
packet = a / b / c / d
if LowLayerCompatibility_presence is 1:
e = LowLayerCompatibilityHdr(ieiLLC=0x7C, eightBitLLC=0x0)
packet = packet / e
if HighLayerCompatibility_presence is 1:
f = HighLayerCompatibilityHdr(ieiHLC=0x7D, eightBitHLC=0x0)
packet = packet / f
return packet | python | def modifyReject(LowLayerCompatibility_presence=0,
HighLayerCompatibility_presence=0):
"""MODIFY REJECT Section 9.3.15"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x13) # 00010011
c = BearerCapability()
d = Cause()
packet = a / b / c / d
if LowLayerCompatibility_presence is 1:
e = LowLayerCompatibilityHdr(ieiLLC=0x7C, eightBitLLC=0x0)
packet = packet / e
if HighLayerCompatibility_presence is 1:
f = HighLayerCompatibilityHdr(ieiHLC=0x7D, eightBitHLC=0x0)
packet = packet / f
return packet | [
"def",
"modifyReject",
"(",
"LowLayerCompatibility_presence",
"=",
"0",
",",
"HighLayerCompatibility_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x13",
")",
"# 00010011",
"c",
"=",
"BearerCapability",
"(",
")",
"d",
"=",
"Cause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"if",
"LowLayerCompatibility_presence",
"is",
"1",
":",
"e",
"=",
"LowLayerCompatibilityHdr",
"(",
"ieiLLC",
"=",
"0x7C",
",",
"eightBitLLC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"HighLayerCompatibility_presence",
"is",
"1",
":",
"f",
"=",
"HighLayerCompatibilityHdr",
"(",
"ieiHLC",
"=",
"0x7D",
",",
"eightBitHLC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | MODIFY REJECT Section 9.3.15 | [
"MODIFY",
"REJECT",
"Section",
"9",
".",
"3",
".",
"15"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1860-L1874 |
4,387 | phaethon/kamene | kamene/contrib/gsm_um.py | notify | def notify():
"""NOTIFY Section 9.3.16"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3e) # 00111110
c = NotificationIndicator()
packet = a / b / c
return packet | python | def notify():
"""NOTIFY Section 9.3.16"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3e) # 00111110
c = NotificationIndicator()
packet = a / b / c
return packet | [
"def",
"notify",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3e",
")",
"# 00111110",
"c",
"=",
"NotificationIndicator",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | NOTIFY Section 9.3.16 | [
"NOTIFY",
"Section",
"9",
".",
"3",
".",
"16"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1877-L1883 |
4,388 | phaethon/kamene | kamene/contrib/gsm_um.py | progress | def progress(UserUser_presence=0):
"""PROGRESS Section 9.3.17"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3) # 00000011
c = ProgressIndicator()
packet = a / b / c
if UserUser_presence is 1:
d = UserUserHdr()
packet = packet / d
return packet | python | def progress(UserUser_presence=0):
"""PROGRESS Section 9.3.17"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x3) # 00000011
c = ProgressIndicator()
packet = a / b / c
if UserUser_presence is 1:
d = UserUserHdr()
packet = packet / d
return packet | [
"def",
"progress",
"(",
"UserUser_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x3",
")",
"# 00000011",
"c",
"=",
"ProgressIndicator",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"if",
"UserUser_presence",
"is",
"1",
":",
"d",
"=",
"UserUserHdr",
"(",
")",
"packet",
"=",
"packet",
"/",
"d",
"return",
"packet"
] | PROGRESS Section 9.3.17 | [
"PROGRESS",
"Section",
"9",
".",
"3",
".",
"17"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1887-L1896 |
4,389 | phaethon/kamene | kamene/contrib/gsm_um.py | ccEstablishment | def ccEstablishment():
"""CC-ESTABLISHMENT Section 9.3.17a"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x4) # 00000100
c = SetupContainer()
packet = a / b / c
return packet | python | def ccEstablishment():
"""CC-ESTABLISHMENT Section 9.3.17a"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x4) # 00000100
c = SetupContainer()
packet = a / b / c
return packet | [
"def",
"ccEstablishment",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x4",
")",
"# 00000100",
"c",
"=",
"SetupContainer",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | CC-ESTABLISHMENT Section 9.3.17a | [
"CC",
"-",
"ESTABLISHMENT",
"Section",
"9",
".",
"3",
".",
"17a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1900-L1906 |
4,390 | phaethon/kamene | kamene/contrib/gsm_um.py | ccEstablishmentConfirmed | def ccEstablishmentConfirmed(RepeatIndicator_presence=0,
BearerCapability_presence=0,
BearerCapability_presence1=0,
Cause_presence=0):
"""CC-ESTABLISHMENT CONFIRMED Section 9.3.17b"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x6) # 00000110
packet = a / b
if RepeatIndicator_presence is 1:
c = RepeatIndicatorHdr(ieiRI=0xD, eightBitRI=0x0)
packet = packet / c
if BearerCapability_presence is 1:
d = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / d
if BearerCapability_presence1 is 1:
e = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / e
if Cause_presence is 1:
f = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / f
return packet | python | def ccEstablishmentConfirmed(RepeatIndicator_presence=0,
BearerCapability_presence=0,
BearerCapability_presence1=0,
Cause_presence=0):
"""CC-ESTABLISHMENT CONFIRMED Section 9.3.17b"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x6) # 00000110
packet = a / b
if RepeatIndicator_presence is 1:
c = RepeatIndicatorHdr(ieiRI=0xD, eightBitRI=0x0)
packet = packet / c
if BearerCapability_presence is 1:
d = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / d
if BearerCapability_presence1 is 1:
e = BearerCapabilityHdr(ieiBC=0x04, eightBitBC=0x0)
packet = packet / e
if Cause_presence is 1:
f = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / f
return packet | [
"def",
"ccEstablishmentConfirmed",
"(",
"RepeatIndicator_presence",
"=",
"0",
",",
"BearerCapability_presence",
"=",
"0",
",",
"BearerCapability_presence1",
"=",
"0",
",",
"Cause_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x6",
")",
"# 00000110",
"packet",
"=",
"a",
"/",
"b",
"if",
"RepeatIndicator_presence",
"is",
"1",
":",
"c",
"=",
"RepeatIndicatorHdr",
"(",
"ieiRI",
"=",
"0xD",
",",
"eightBitRI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"BearerCapability_presence",
"is",
"1",
":",
"d",
"=",
"BearerCapabilityHdr",
"(",
"ieiBC",
"=",
"0x04",
",",
"eightBitBC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"BearerCapability_presence1",
"is",
"1",
":",
"e",
"=",
"BearerCapabilityHdr",
"(",
"ieiBC",
"=",
"0x04",
",",
"eightBitBC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"Cause_presence",
"is",
"1",
":",
"f",
"=",
"CauseHdr",
"(",
"ieiC",
"=",
"0x08",
",",
"eightBitC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | CC-ESTABLISHMENT CONFIRMED Section 9.3.17b | [
"CC",
"-",
"ESTABLISHMENT",
"CONFIRMED",
"Section",
"9",
".",
"3",
".",
"17b"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1909-L1929 |
4,391 | phaethon/kamene | kamene/contrib/gsm_um.py | releaseNetToMs | def releaseNetToMs():
"""RELEASE Section 9.3.18.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2d) # 00101101
c = CauseHdr(ieiC=0x08, eightBitC=0x0)
d = CauseHdr(ieiC=0x08, eightBitC=0x0)
e = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
f = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = a / b / c / d / e / f
return packet | python | def releaseNetToMs():
"""RELEASE Section 9.3.18.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2d) # 00101101
c = CauseHdr(ieiC=0x08, eightBitC=0x0)
d = CauseHdr(ieiC=0x08, eightBitC=0x0)
e = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
f = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = a / b / c / d / e / f
return packet | [
"def",
"releaseNetToMs",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2d",
")",
"# 00101101",
"c",
"=",
"CauseHdr",
"(",
"ieiC",
"=",
"0x08",
",",
"eightBitC",
"=",
"0x0",
")",
"d",
"=",
"CauseHdr",
"(",
"ieiC",
"=",
"0x08",
",",
"eightBitC",
"=",
"0x0",
")",
"e",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"f",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7E",
",",
"eightBitUU",
"=",
"0x0",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"/",
"e",
"/",
"f",
"return",
"packet"
] | RELEASE Section 9.3.18.1 | [
"RELEASE",
"Section",
"9",
".",
"3",
".",
"18",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1933-L1942 |
4,392 | phaethon/kamene | kamene/contrib/gsm_um.py | recall | def recall():
"""RECALL Section 9.3.18a"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0xb) # 00001011
c = RecallType()
d = Facility()
packet = a / b / c / d
return packet | python | def recall():
"""RECALL Section 9.3.18a"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0xb) # 00001011
c = RecallType()
d = Facility()
packet = a / b / c / d
return packet | [
"def",
"recall",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0xb",
")",
"# 00001011",
"c",
"=",
"RecallType",
"(",
")",
"d",
"=",
"Facility",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
"return",
"packet"
] | RECALL Section 9.3.18a | [
"RECALL",
"Section",
"9",
".",
"3",
".",
"18a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1971-L1978 |
4,393 | phaethon/kamene | kamene/contrib/gsm_um.py | releaseCompleteNetToMs | def releaseCompleteNetToMs(Cause_presence=0, Facility_presence=0,
UserUser_presence=0):
"""RELEASE COMPLETE Section 9.3.19.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2a) # 00101010
packet = a / b
if Cause_presence is 1:
c = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / e
return packet | python | def releaseCompleteNetToMs(Cause_presence=0, Facility_presence=0,
UserUser_presence=0):
"""RELEASE COMPLETE Section 9.3.19.1"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2a) # 00101010
packet = a / b
if Cause_presence is 1:
c = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / e
return packet | [
"def",
"releaseCompleteNetToMs",
"(",
"Cause_presence",
"=",
"0",
",",
"Facility_presence",
"=",
"0",
",",
"UserUser_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2a",
")",
"# 00101010",
"packet",
"=",
"a",
"/",
"b",
"if",
"Cause_presence",
"is",
"1",
":",
"c",
"=",
"CauseHdr",
"(",
"ieiC",
"=",
"0x08",
",",
"eightBitC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"Facility_presence",
"is",
"1",
":",
"d",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"UserUser_presence",
"is",
"1",
":",
"e",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7E",
",",
"eightBitUU",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"return",
"packet"
] | RELEASE COMPLETE Section 9.3.19.1 | [
"RELEASE",
"COMPLETE",
"Section",
"9",
".",
"3",
".",
"19",
".",
"1"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L1982-L1997 |
4,394 | phaethon/kamene | kamene/contrib/gsm_um.py | releaseCompleteMsToNet | def releaseCompleteMsToNet(Cause_presence=0, Facility_presence=0,
UserUser_presence=0, SsVersionIndicator_presence=0):
"""RELEASE COMPLETE Section 9.3.19.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2a) # 00101010
packet = a / b
if Cause_presence is 1:
c = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / e
if SsVersionIndicator_presence is 1:
f = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / f
return packet | python | def releaseCompleteMsToNet(Cause_presence=0, Facility_presence=0,
UserUser_presence=0, SsVersionIndicator_presence=0):
"""RELEASE COMPLETE Section 9.3.19.2"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x2a) # 00101010
packet = a / b
if Cause_presence is 1:
c = CauseHdr(ieiC=0x08, eightBitC=0x0)
packet = packet / c
if Facility_presence is 1:
d = FacilityHdr(ieiF=0x1C, eightBitF=0x0)
packet = packet / d
if UserUser_presence is 1:
e = UserUserHdr(ieiUU=0x7E, eightBitUU=0x0)
packet = packet / e
if SsVersionIndicator_presence is 1:
f = SsVersionIndicatorHdr(ieiSVI=0x7F, eightBitSVI=0x0)
packet = packet / f
return packet | [
"def",
"releaseCompleteMsToNet",
"(",
"Cause_presence",
"=",
"0",
",",
"Facility_presence",
"=",
"0",
",",
"UserUser_presence",
"=",
"0",
",",
"SsVersionIndicator_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x2a",
")",
"# 00101010",
"packet",
"=",
"a",
"/",
"b",
"if",
"Cause_presence",
"is",
"1",
":",
"c",
"=",
"CauseHdr",
"(",
"ieiC",
"=",
"0x08",
",",
"eightBitC",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"c",
"if",
"Facility_presence",
"is",
"1",
":",
"d",
"=",
"FacilityHdr",
"(",
"ieiF",
"=",
"0x1C",
",",
"eightBitF",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"d",
"if",
"UserUser_presence",
"is",
"1",
":",
"e",
"=",
"UserUserHdr",
"(",
"ieiUU",
"=",
"0x7E",
",",
"eightBitUU",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"e",
"if",
"SsVersionIndicator_presence",
"is",
"1",
":",
"f",
"=",
"SsVersionIndicatorHdr",
"(",
"ieiSVI",
"=",
"0x7F",
",",
"eightBitSVI",
"=",
"0x0",
")",
"packet",
"=",
"packet",
"/",
"f",
"return",
"packet"
] | RELEASE COMPLETE Section 9.3.19.2 | [
"RELEASE",
"COMPLETE",
"Section",
"9",
".",
"3",
".",
"19",
".",
"2"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L2000-L2018 |
4,395 | phaethon/kamene | kamene/contrib/gsm_um.py | retrieve | def retrieve():
"""RETRIEVE Section 9.3.20"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x1c) # 00011100
packet = a / b
return packet | python | def retrieve():
"""RETRIEVE Section 9.3.20"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x1c) # 00011100
packet = a / b
return packet | [
"def",
"retrieve",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1c",
")",
"# 00011100",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | RETRIEVE Section 9.3.20 | [
"RETRIEVE",
"Section",
"9",
".",
"3",
".",
"20"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L2021-L2026 |
4,396 | phaethon/kamene | kamene/contrib/gsm_um.py | retrieveAcknowledge | def retrieveAcknowledge():
"""RETRIEVE ACKNOWLEDGE Section 9.3.21"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x1d) # 00011101
packet = a / b
return packet | python | def retrieveAcknowledge():
"""RETRIEVE ACKNOWLEDGE Section 9.3.21"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x1d) # 00011101
packet = a / b
return packet | [
"def",
"retrieveAcknowledge",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x1d",
")",
"# 00011101",
"packet",
"=",
"a",
"/",
"b",
"return",
"packet"
] | RETRIEVE ACKNOWLEDGE Section 9.3.21 | [
"RETRIEVE",
"ACKNOWLEDGE",
"Section",
"9",
".",
"3",
".",
"21"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L2030-L2035 |
4,397 | phaethon/kamene | kamene/contrib/gsm_um.py | startCc | def startCc(CallControlCapabilities_presence=0):
"""START CC Section 9.3.23a"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x9) # 00001001
packet = a / b
if CallControlCapabilities_presence is 1:
c = CallControlCapabilitiesHdr(ieiCCC=0x15, eightBitCCC=0x0)
packet = paclet / c
return packet | python | def startCc(CallControlCapabilities_presence=0):
"""START CC Section 9.3.23a"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x9) # 00001001
packet = a / b
if CallControlCapabilities_presence is 1:
c = CallControlCapabilitiesHdr(ieiCCC=0x15, eightBitCCC=0x0)
packet = paclet / c
return packet | [
"def",
"startCc",
"(",
"CallControlCapabilities_presence",
"=",
"0",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x9",
")",
"# 00001001",
"packet",
"=",
"a",
"/",
"b",
"if",
"CallControlCapabilities_presence",
"is",
"1",
":",
"c",
"=",
"CallControlCapabilitiesHdr",
"(",
"ieiCCC",
"=",
"0x15",
",",
"eightBitCCC",
"=",
"0x0",
")",
"packet",
"=",
"paclet",
"/",
"c",
"return",
"packet"
] | START CC Section 9.3.23a | [
"START",
"CC",
"Section",
"9",
".",
"3",
".",
"23a"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L2225-L2233 |
4,398 | phaethon/kamene | kamene/contrib/gsm_um.py | startDtmf | def startDtmf():
"""START DTMF Section 9.3.24"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x35) # 00110101
c = KeypadFacilityHdr(ieiKF=0x2C, eightBitKF=0x0)
packet = a / b / c
return packet | python | def startDtmf():
"""START DTMF Section 9.3.24"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x35) # 00110101
c = KeypadFacilityHdr(ieiKF=0x2C, eightBitKF=0x0)
packet = a / b / c
return packet | [
"def",
"startDtmf",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x35",
")",
"# 00110101",
"c",
"=",
"KeypadFacilityHdr",
"(",
"ieiKF",
"=",
"0x2C",
",",
"eightBitKF",
"=",
"0x0",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | START DTMF Section 9.3.24 | [
"START",
"DTMF",
"Section",
"9",
".",
"3",
".",
"24"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L2236-L2242 |
4,399 | phaethon/kamene | kamene/contrib/gsm_um.py | startDtmfReject | def startDtmfReject():
""" START DTMF REJECT Section 9.3.26"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x37) # 00110111
c = Cause()
packet = a / b / c
return packet | python | def startDtmfReject():
""" START DTMF REJECT Section 9.3.26"""
a = TpPd(pd=0x3)
b = MessageType(mesType=0x37) # 00110111
c = Cause()
packet = a / b / c
return packet | [
"def",
"startDtmfReject",
"(",
")",
":",
"a",
"=",
"TpPd",
"(",
"pd",
"=",
"0x3",
")",
"b",
"=",
"MessageType",
"(",
"mesType",
"=",
"0x37",
")",
"# 00110111",
"c",
"=",
"Cause",
"(",
")",
"packet",
"=",
"a",
"/",
"b",
"/",
"c",
"return",
"packet"
] | START DTMF REJECT Section 9.3.26 | [
"START",
"DTMF",
"REJECT",
"Section",
"9",
".",
"3",
".",
"26"
] | 11d4064844f4f68ac5d7546f5633ac7d02082914 | https://github.com/phaethon/kamene/blob/11d4064844f4f68ac5d7546f5633ac7d02082914/kamene/contrib/gsm_um.py#L2256-L2262 |
Subsets and Splits