in reply to Re^4: Getting ethernet type using NetPacket
in thread Getting ethernet type using NetPacket

Hi NetWhallah

I can run the code however it doesn't like my interfaces

root@robm-desktop:/scripts/pcap# ./netpkt.pl eth0 No description available vmnet1 No description available usbmon1 USB bus number 1 usbmon2 USB bus number 2 eth3 No description available usbmon3 USB bus number 3 usbmon4 USB bus number 4 usbmon5 USB bus number 5 usbmon6 USB bus number 6 usbmon7 USB bus number 7 vmnet8 No description available usbmon8 USB bus number 8 any Pseudo-device that captures on all interfaces lo Loopback device Found device intel Found Net net 0.0.0.0 mask 0.0.0.0 Net::Pcap::open_live returned error SIOCGIFHWADDR: No such device

Replies are listed 'Best First'.
Re^6: Getting ethernet type using NetPacket
by NetWallah (Canon) on Jul 30, 2011 at 17:24 UTC
    If you examine the parameters, you will notice that there is hard-coding to look for an "intel" type NIC.
    "NETWORK_INTERFACE => 'intel',# Network interface to open
    Try modifying that to match your hardware, or change it to a proper parameter...

                "XML is like violence: if it doesn't solve your problem, use more."