Hey,
I figured it out, the documentation for Net::RawIP sucks by the way.
I needed to change the line:
$a = new Net::RawIP;
to the following:
$a = new Net::RawIP({udp=>{}});
Michael
Michael Gale wrote:
Hello,
I have been trying to get a UDP packet sent out using Net::RawIP but
Hello,
I have been trying to get a UDP packet sent out using Net::RawIP but am
having issues.
Here is a peice I code I have tried for testing:
my $a;
my $p;
my $f;
my $ipid = int rand 5000 + 100;
$a = new Net::RawIP;
$a->set({
ip => {saddr => '192.168.0.15',