MCPcopy Index your code
hub / github.com/secdev/scapy / close

Method close

scapy/arch/linux/__init__.py:273–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 2

_sr1_rtrequestFunction · 0.45
closeMethod · 0.45

Calls 1

set_promiscFunction · 0.85

Tested by

no test coverage detected