icmp program work correctly on my Windows machine?
The following patch to icmp.c helps on many versions of Windows: 145a146 > struct sockaddr_in local; 153a155,161 > > local.sin_family = AF_INET; > local.sin_port = htons( 0 ); > local.sin_addr.s_addr = htonl( INADDR_ANY ); > rc = bind( s, ( struct sockaddr * )&local, sizeof( local ) ); > if ( rc < 0 ) > error( 1, errno, “bind failed” ); The patch does not appear to be effective on early versions of Windows, such as Win95 and Win98.
Related Questions
- I have installed AppMetrics correctly on my Windows NT 4 Manager machine, and created a monitor correctly. Why can I see any metrics?
- I have installed AppMetrics correctly on my Windows NT 4 Manager machine, and created a monitor correctly. Why can I see any metrics?
- I do not see any email program in Windows 7, similar to Outlook Express or Windows Mail, why is that?
- How do I run a PGI developed program on a Windows machine without PGI compilers installed?
- How do I run a PGI developed program on a Windows machine without PGI compilers installed?
- icmp program work correctly on my Windows machine?