def receive(self, interface, packet):
    self.log.info("received packet on interface %s: %s. Passing to netns" %
                  (interface.name, str(packet)))
    self.io_worker.send(packet.pack())
Send an incoming packet from a switch to the Namespace.
dataset/ETHPy150Open ucb-sts/sts/sts/entities/hosts.py/NamespaceHost.receive