def _arp_getnode():
 import os, socket
 try:
  ip_addr = socket.gethostbyname(socket.gethostname())
 except OSError:
  return None
 return _find_mac('arp', '-an', [os.fsencode(ip_addr)], (lambda i: (-1)))

def _arp_getnode ( ) : import os , socket try : ip_addr = socket . gethostbyname ( socket . gethostname ( ) ) except OSError : return None return _find_mac ( 'arp' , '-an' , [ os . fsencode ( ip_addr ) ] , ( lambda i : ( - 1 ) ) )
get the hardware address on unix by running arp .