2

My application is creating an UDP socket and setting some options. One of the option is IP_MULTICAST_TTL.

When the application is running on windows 7, and I observe the traffic on the wire with wireshark, I can see that the TTL is always 1, meaning that the setsockopt() is not having any effect (it does not return an error though).

Digging into the code I found that IP_MULTICAST_TTL value is 10 on Windows 7, 3 on other Windows versions.

If I force the value to be 3 on Windows 7, setsockopt() works just fine and wireshark is reporting the right value.

I found this article: http://support.microsoft.com/kb/257460 and I verify that I'm including Ws2tcpip.h after Winsock2.h and that i am linking against Ws2_32.lib

Any suggestions?

user207421
  • 305,947
  • 44
  • 307
  • 483
magopieri
  • 80
  • 8

0 Answers0