| Summary: | Enable IPV6 feature in SDL_net 1.2.8. | ||
|---|---|---|---|
| Product: | SDL_net | Reporter: | Nitz <nitin.j4> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P1 | CC: | ewmailing, philipp.wiesemann, raincomplex |
| Version: | 1.2.8 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: |
IPV6 Patch
updated patch for sdl2_net-2.0.1 |
||
(In reply to Nitz from comment #0) > Created attachment 2132 [details] > IPV6 Patch > > Hi, > I have implemented IPV6 support in SDL_net-1.2.8 version, > > which means if Server is dual stack then Server can communicate with IPV6 > and IPV4 clients both at same time. > > > > I have done best possible changes with optimization in SDL_net as all of the > API signatures are same except SDLNet_UDP_Open > > > > Kindly review and release the changes as per your policy. > > > > If having any doubts please ask. > > > Attaching the Patch with IPV6 changes > > > Build steps: > > export CPPFLAGS=-DDUAL_IP > > ./configure > > make all > > make install Hi Mr.Sam, Any updates regarding IPV6 enhancement in SDL_net? Please feel free if having any doubts. Regards, Nitin A gentle reminder!!! Thanks... Yes. I have seen that but the patch which I suggested has minimal changes as compared to Bug 283 and important thing is API signatures are also same except SDLNet_UDP_Open. You can compare and take the decision as currently I am using the same patch successfully. A gentle reminder!!! Thanks. Created attachment 2536 [details]
updated patch for sdl2_net-2.0.1
I merged Nitz's patch with sdl2_net-2.0.1 and removed the #defines so the code isn't dependent on DUAL_IP being defined. It's not a very nice diff to look at, but perhaps it will save someone else some work.
I don't know much about IPv6 but I did test this against both IPv4 and IPv6 networks, and it seems to work fine.
Just wondering what the status of IPv6 in SDL_net is. Apple's App Stores require IPv6 operability as of 2 years ago. They seem to have an automated way to test compliance so they can automatically reject IPv4 only apps. So it would be really useful to have IPv6 support now. |
Created attachment 2132 [details] IPV6 Patch Hi, I have implemented IPV6 support in SDL_net-1.2.8 version, which means if Server is dual stack then Server can communicate with IPV6 and IPV4 clients both at same time. I have done best possible changes with optimization in SDL_net as all of the API signatures are same except SDLNet_UDP_Open Kindly review and release the changes as per your policy. If having any doubts please ask. Attaching the Patch with IPV6 changes Build steps: export CPPFLAGS=-DDUAL_IP ./configure make all make install