Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#!/usr/bin/env python # -*- coding: utf-8 -*-
"""
""" Paging packet attributes and factory.
"""
""" Paging packet factory.
""" def create(type, data): """ Create a paging packet of the given type.
Args: type (str): the type of packet subclass to create. data: the data to construct the packet with.
""" else: _logger.critical("Bad packet creation of type: " + type) sys.exit(127)
""" Type1 GSM Paging Packet.
Args: data: the data to construct the packet with.
The Type1 GSM Page packet is contains only a single IMSI and either TMSI/P-TMSI, along with some system information for the ones being paged.
Attributes: imsi: The IMSI of the person being paged by the network. page_mode: The mode of paging. channel_needed: The channel to connect on. tmsi: The TMSI for the person being paged. ptmsi: The P-TMSI for the person being paged.
""" return "Type1 paging packet"
""" Type2 GSM Paging Packet.
Args: data: the data to construct the packet with.
The Type2 GSM Page packets contains either a pair of TMSI/P-TMSI to page or an IMSI, along with some system information.
Attributes: page_mode: The mode of paging. channel_needed: The channel to connect on. tmsis: A list of TMSIs being paged. ptmsis: A list of P-TMSIs being paged. imsi: The IMSI of the person being paged by the network.
""" return "Type2 paging packet"
""" Type3 GSM Paging Packet.
Args: data: the data to construct the packet with.
The Type3 GSM Page packets contains four different TMSI/P-TMSI to page, along with some system information.
Attributes: ptmsis: A list of P-TMSIs being paged by the network. tmsis: A list of TMSIs being paged by the network. page_mode: The mode of paging. channel_needed: The channel to connect on.
""" return "Type3 paging packet" |