Get the hardware address on Unix by running netstat.
()
| 624 | return _find_mac_near_keyword('lanscan', '-ai', [b'lan0'], lambda i: 0) |
| 625 | |
| 626 | def _netstat_getnode(): |
| 627 | """Get the hardware address on Unix by running netstat.""" |
| 628 | # This works on AIX and might work on Tru64 UNIX. |
| 629 | return _find_mac_under_heading('netstat', '-ian', b'Address') |
| 630 | |
| 631 | |
| 632 | # Import optional C extension at toplevel, to help disabling it when testing |
nothing calls this directly
no test coverage detected
searching dependent graphs…