03-09-2021 09:05 AM
Hi to all,
I am using the LabWindows/CVI 2020 and the solution I have to make consist in a raw package receiver (to catch ICMP packages in particular).
What do you recommend to use for this case? The TCP library that CVI offers or the Windows' winsock library?
Thanks in advance.
03-10-2021 02:53 AM
Short answer: you cannot use the CVI libraries for receiving ICMP packets.
ICMP is not IP so neither UDP/IP nor TCP/IP libraries will work (see Layer 3: Network Layer of OSI model.)
If you want to catch raw packets of any protocol type maybe Libpcap from Wireshark could work (haven't tried it myself).