Does raw socket works with IPv6?
Does this method works with IPv6? If not, what are other ways to config header parameters in ipV6? I understand that IPv6 uses different header than IPv4, but does the socket recognize it by simply look at the "version parameter"?
Re: Sending UDP Raw socket
Hello, Mathew!
I get your code working perfectly on Windows 2000. :thumb:
Thank you very much.
But when I run it on Windows XP (SP3), the 'sendto' function fails with error 10004.
I've read that, starting XP SP2, Windows does not allow sending packets with spoofed IP.
BUT I do not spoof the IP: Even when I enter my own IP as the source and a valid IP within my LAN as destination, it fails with error 10004. :confused:
Any hints on how to work around this and get your code working under Windows XP?
Thank you very much!
Ricardo Vazquez.
Madrid, Spain.
Re: Sending UDP Raw socket
Sorry:
I was wrong: :blush:
If source IP is my own it works under WinXP.
But, then again:
Is there any way to get Mathew's code working with a different source IP under WinXP after SP2?
Kind regards,
Ricardo.