MCPcopy
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

21log = logging.getLogger(__name__)
22
23def _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
29class PlotLan:
30

Callers 1

draw_graphMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected