Operating System - HP-UX
1834275 Members
1734 Online
110066 Solutions
New Discussion

Re: Issues with libpcap library: pcap_loop() not able to capture the ICMP echo reply packets.

 
RamyaSathyaMurthy
Occasional Contributor

Issues with libpcap library: pcap_loop() not able to capture the ICMP echo reply packets.

Hi All,

In our project our requirement is to discover the remote node by using the ICMP ping and retrieve the IP and the MAC address of the active nodes from the response received.

We are using Libnet to send the ICMP ping packet, and using pcap_loop() to capture the packet response from the remote host. We are able to write the TCP packet using the libnet library, but the pcap_loop does not capture the response received.

When we check with the tcpdump we are able to see the response being received on the host machine.

It would be helpful if anyone who faced similar issues with libpcap suggest us.

The same code works fine on the Linux and the windows system.

Thanks,
Ramya
1 REPLY 1
kobylka
Valued Contributor

Re: Issues with libpcap library: pcap_loop() not able to capture the ICMP echo reply packets.

Hello Ramya!


What OS version are you running?
What NIC?
What libpcap library version?

Could you attach the failing source code?

Kind regards,

Kobylka