can i use Net::Pcap::sendpacket like this in perl?

Chaofei

New member
$err=Net::Pcap::sendpacket($pcap,\$ethr_data)
or die "Can't send packet:$!\n\r$err";
and it will be stopped when it goes here.return error is :Bad file descriptor
from $!.but $err is 0;it says that it returns 0 if sending packet successfully
when using Net::Pcap::sendpacket.
actually the packet is send out.i use Ethereal to capture the packet.
or the Net::Pcap::sendpacket can't be used like this?
 
Back
Top