MCPcopy Index your code
hub / github.com/python/cpython / _lanscan_getnode

Function _lanscan_getnode

Lib/uuid.py:621–624  ·  view source on GitHub ↗

Get the hardware address on Unix by running lanscan.

()

Source from the content-addressed store, hash-verified

619 return None
620
621def _lanscan_getnode():
622 """Get the hardware address on Unix by running lanscan."""
623 # This might work on HP-UX.
624 return _find_mac_near_keyword('lanscan', '-ai', [b'lan0'], lambda i: 0)
625
626def _netstat_getnode():
627 """Get the hardware address on Unix by running netstat."""

Callers

nothing calls this directly

Calls 1

_find_mac_near_keywordFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…