Returns True if the interface is in monitor mode. Only available with Npcap.
(self)
| 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 |
no test coverage detected