I am learning about the ping implementation in C.The problem is, I was using a raw sockets to receive the packet. For all packets we have a identification value in ICMP header.I was running the ping in multiple terminal.For example, I was running three ping google.com in three terminals.For the first ping the identification value is 23456, the second ping identification value is 34564, and the third ping identification value is 98763.My problem is the second ping have to receives the identification with 34564 packet, but it receives the identification value as 23456.For each ping the new raw socket is creating. But it receives another ping packet.Can anyone please explain me, why it receives another ping packet ?
Why ping receives another ping command packet?
linux;ping