Changed packet extraction methods to use const Packet*
Fixed pointer management issues in PacketDispatcher.
Updated TestbedMain for pointer consistency.