Re: Raw sockets on Vista with IPPROTO_ICMP
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Thu, 1 Mar 2007 10:08:39 -0800
Why don't you switch to using IcmpSendEcho[2]?
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
<chris-deja@xxxxxxx> wrote in message
news:1172765361.617769.96820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I'm trying to keep my ping program up to date with Vista. I use raw
sockets and open them with IPPROTO_ICMP. Now I have read that things
around raw sockets changed in XP SP2 and again under Vista. But still
there seems to be *some* support of raw sockets in Vista. All I want
to do is send ICMP echo-req's and receive the answers.
What happens under Vista is that I can open the socket, send the
packets and even see that the NDIS receives the replies. But, alas, my
application doesn't get them. This doesn't change regardless if I'm
user/admin (i.e. restricted/unrestricted token), use IP_HDRINCL or not
or sign my app or not.
I get the idea I'm doing something wrong, because if it was forbidden
under some new security scheme, would i be able to open the socket or
send the packet in the first place?
Any help appreciated. Please answer in this forum or send mail to l-u-
e-d-e-r-s at c-f-o-s dot d-e (without the dashes).
P.S. link to my program: http://www.cfos.de/ping/ping.htm
.
- References:
- Raw sockets on Vista with IPPROTO_ICMP
- From: chris-deja@xxxxxxx
- Raw sockets on Vista with IPPROTO_ICMP
- Prev by Date: Re: Connection timeout error
- Next by Date: Enable/Disable DHCP on adapter
- Previous by thread: Raw sockets on Vista with IPPROTO_ICMP
- Next by thread: Re: Connection timeout error
- Index(es):
Relevant Pages
|