Hello,
I have also tried sending out a packet addressed to 192.168.0.255 but I
receive the same error:
sendto() at /usr/lib/perl5/site_perl/5.8.6/i486-linux/Net/RawIP.pm line 550
Any help would be appreciated.
Michael
Michael Gale wrote:
Hello,
I have created the following piece of code:
my $packet = new Net::RawIP({udp=>{}});
$packet-> set({
ip => { saddr => '192.168.0.15',
daddr => '255.255.255.255',
id => $ipid,
frag_off => 0,
tos => 0,
protocol => 0x11,
},
udp => { source => 68,
dest => 67,
len => 556,
data => 'Testing'
}
});
$packet->send;
$packet->ethnew($settings->get('ip_setup.device'));
$packet->ethset(dest=> $settings->get('ip_setup.dest_mac'));
$packet->ethsend;
How ever it does not work because I am specifing a broadcast destination
IP address. If I change the IP address to a anything else it works.
Any suggestions ? Would this be a bug ? or am I doing something wrong ?
Michael
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>