If it's under Windows, you must use win32 api (Icmp)
You can ask on specialized Win32 api newsgroup :
news://nntp.aioe.org/comp.os.ms-wind...ogrammer.win32
where it has often been discussed
User Profile
Collapse
-
[C++] How to construct ICMP echo request
Hi guys,
It's my first time trying to create a packet in C++. So, what i have done so far are:
1. I have opened a packet level raw socket. Using this command:
sd = socket(PF_PACKE T,SOCK_RAW,ETHE RTYPE_IP) ;
2. I have gotten the interface number corresponding to interface name.
Using the command:
ioRtnCode = ioctl(sd,SIOCGI FINDEX,&ifioctl ) ;
here, &ifioctl is supplied with...
No activity results to display
Show More