Get the hardware address on Unix by running ip.
()
| 583 | return None |
| 584 | |
| 585 | def _ip_getnode(): |
| 586 | """Get the hardware address on Unix by running ip.""" |
| 587 | # This works on Linux with iproute2. |
| 588 | mac = _find_mac_near_keyword('ip', 'link', [b'link/ether'], lambda i: i+1) |
| 589 | if mac: |
| 590 | return mac |
| 591 | return None |
| 592 | |
| 593 | def _arp_getnode(): |
| 594 | """Get the hardware address on Unix by running arp.""" |
nothing calls this directly
no test coverage detected
searching dependent graphs…