Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/srixivas/PcapXray
/ _node_label
Function
_node_label
Source/Module/plot_lan_network.py:23–27 ·
view source on GitHub ↗
(mac: str)
Source
from the content-addressed store, hash-verified
21
log = logging.getLogger(__name__)
22
23
def
_node_label(mac: str) -> str:
24
h = memory.lan_hosts[mac]
25
if
h.node:
26
return
h.node
27
return
h.ip.replace(
":"
,
"."
) +
"\n"
+ mac.replace(
":"
,
"."
)
28
29
class
PlotLan:
30
Callers
1
draw_graph
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected