def __call__(self, policy, rule, port_thread, buf):
     interface_object = self._get_interface_object(policy.topology)
     packet = self.packet
     if not isinstance(packet, str):
         # TODO(oanson) pass more info to the packet generator
         packet = packet(buf)
     interface_object.send(packet)
 def __call__(self, policy, rule, port_thread, buf):
     packet = self.packet
     if not isinstance(packet, str):
         # TODO(oanson) pass more info to the packet generator
         packet = packet(buf)
     self._send(policy, packet)
 def __call__(self, policy, rule, port_thread, buf):
     packet = self.packet
     if not isinstance(packet, str):
         # TODO(oanson) pass more info to the packet generator
         packet = packet(buf)
     self._send(policy, packet)