You can't just add Net::Frame::Layer::ETH to your code. You need to properly install Net::Frame suite with 'cpan' client or other means (e.g., perl Makefile.PL; make; make install). You'll probably also need Net::Frame::Simple and Net::Pcap if you intend to send packets.
Again, I go back to: "What are you trying to do?" There are much easier ways to send / receive UDP packets with Perl without crafting them from scratch. The only reasons *I* can think of for crafting raw packets is:
UPDATE: Reading your Stack Overflow post, your local and remote IP addresses are not in the same network, nevermind subnet. Sending crafted packets across the Internet reeks of malicious intent. Please explain what you're trying to do or I can't in good conscience offer more advice.
In reply to Re^3: Building a UDP Ethernet header
by VinsWorldcom
in thread Building a UDP Ethernet header
by TorNZZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |