'Pass each captured packet to each module.
Gets the packets to send.
:param self: An ExtensionManager object
:type self: ExtensionManager
:param pkt: A Scapy packet object
:type pkt: Scapy Packet
:return: None
:rtype: None'

def _process_packet(self, pkt):

    for extension in self._extensions:
        (channel_nums, received_packets) = extension.get_packet(pkt)
        num_of_packets = len(received_packets)
        if (received_packets and (num_of_packets > 0)):
            for c_num in channel_nums:
                self._packets_to_send[c_num] += received_packets
