Beispiel #1
0
 def _stopCaptureViaNet(self):
     host = self.getHost()
     if self.getLiveCapturePort():
         tcpdump.stopCaptureViaNet(host, self._captureName(), self.getLiveCapturePort())
         self.live_capture_port = None
         self.save()
         resources.give(self, self.LIVE_CAPTURE_PORT_SLOT)
Beispiel #2
0
	def _stopCaptureViaNet(self):
		host = self.getHost()
		port = self.getAttribute("capture_port")
		if host and port:
			tcpdump.stopCaptureViaNet(host, self._captureName(), port)
			self.deleteAttribute("capture_port")
			host.giveId("port", port)