MCPcopy Create free account
hub / github.com/secdev/scapy / ismonitor

Method ismonitor

scapy/arch/windows/__init__.py:396–407  ·  view source on GitHub ↗

Returns True if the interface is in monitor mode. Only available with Npcap.

(self)

Source from the content-addressed store, hash-verified

394 return self._npcap_get("mode")
395
396 def ismonitor(self):
397 # type: () -> bool
398 """Returns True if the interface is in monitor mode.
399 Only available with Npcap."""
400 if self.cache_mode is not None:
401 return self.cache_mode
402 try:
403 res = (self.mode() == "monitor")
404 self.cache_mode = res
405 return res
406 except Scapy_Exception:
407 return False
408
409 def setmonitor(self, enable=True):
410 # type: (bool) -> bool

Callers 2

setmonitorMethod · 0.95
open_pcapFunction · 0.80

Calls 1

modeMethod · 0.95

Tested by

no test coverage detected