http://www.perlmonks.org?node_id=688470


in reply to Re: Net::Pcap garbage Output
in thread Net::Pcap garbage Output

Alas it does not appear to be that simple. If you convert for example 415348283078 to hex you get 60B4AFD6C6 which is not the MAC address that is genuinely in the sha field of the ARP packet.

Replies are listed 'Best First'.
Re^3: Net::Pcap garbage Output
by almut (Canon) on May 26, 2008 at 02:46 UTC
    it does not appear to be that simple.

    Right, inet_ntoa does only work with IP addresses / 32-bit numbers...