예제 #1
0
파일: emulated.py 프로젝트: m3z/ToMaTo
 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)
예제 #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)