(self)
| 271 | warning("Unable to guess type (interface=%s protocol=%#x family=%i). Using %s", sa_ll[0], sa_ll[1], sa_ll[3], self.LL.name) # noqa: E501 |
| 272 | |
| 273 | def close(self): |
| 274 | # type: () -> None |
| 275 | if self.closed: |
| 276 | return |
| 277 | try: |
| 278 | if self.promisc and getattr(self, "ins", None): |
| 279 | set_promisc(self.ins, self.iface, 0) |
| 280 | except (AttributeError, OSError, ValueError): |
| 281 | pass |
| 282 | SuperSocket.close(self) |
| 283 | |
| 284 | def recv_raw(self, x=MTU): |
| 285 | # type: (int) -> Tuple[Optional[Type[Packet]], Optional[bytes], Optional[float]] # noqa: E501 |
no test coverage detected