Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/secdev/scapy
/ _flush_fd
Function
_flush_fd
scapy/arch/linux/__init__.py:194–201 ·
view source on GitHub ↗
(fd)
Source
from the content-addressed store, hash-verified
192
193
194
def
_flush_fd(fd):
195
# type: (int) -> None
196
while
True:
197
r, w, e = select([fd], [], [], 0)
198
if
r:
199
os.read(fd, MTU)
200
else
:
201
break
202
203
204
class
L2Socket(SuperSocket):
Callers
1
__init__
Method · 0.85
Calls
1
read
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…