Loading ...
Sorry, an error occurred while loading the content.

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

Expand Messages
  • q11112345
    $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
    Message 1 of 1 , Mar 30, 2009
    • 0 Attachment
      $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?
    Your message has been successfully submitted and would be delivered to recipients shortly.