def send(self, data: Transmittable, destinationMacAddr: bytes): p = Packet(SimpleNetworkHeader(self.macAddr, destinationMacAddr), data) self._mac.gates["networkIn"].send(p)