waxmiguelito / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

IPv6 Support #234

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
maybe add IPv6 support is a goog feature.

Original issue reported on code.google.com by dugug...@gmail.com on 28 Feb 2011 at 2:28

GoogleCodeExporter commented 9 years ago
Not just maybe! There is one comment mentioning IPv6 in mongoose.c, but I have 
the feeling that it comes from some kind of copy'n'paste ;)

Original comment by Bla...@gmail.com on 28 Feb 2011 at 8:23

GoogleCodeExporter commented 9 years ago
It looks like the world lives happily without ipv6 :-)

Original comment by valenok on 28 Feb 2011 at 8:52

GoogleCodeExporter commented 9 years ago
So far: yes. But since IPv4 addresses are depleted now, IPv6 is something 
you'll see in the wild more and more.

In our company we're currently in the process of fixing/replacing all our 
server components to work with IPv6. I know it wouldn't hurt YOU if WE had to 
replace mongoose, but I'd be sad to see it go.

Original comment by Bla...@gmail.com on 28 Feb 2011 at 9:18

GoogleCodeExporter commented 9 years ago
Did some digging and found two URLs that might be helpful. I'll just post them 
so that they don't get lost :)

Userlevel IPv6 Programming Introduction
http://www.akkadia.org/drepper/userapi-ipv6.html

Converting C++ TCP/IP applications from IPv4 to IPv6. Difficult? Worth the 
trouble?
http://stackoverflow.com/questions/2339381/

Original comment by Bla...@gmail.com on 28 Feb 2011 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by valenok on 21 Jun 2011 at 9:10

GoogleCodeExporter commented 9 years ago
Preliminary IPv6 support has been added to the head.
Mongoose can't yet do ACL check of IPv6 address, bind to a specific IPv6 
address, or pass IPv6 address to the user callback.

When given a port number, it binds to the tcp46 socket, and is able to process 
IPv6 connections.
Tested on MacOS so far.

Use -DNO_IPV6 compilation flag to disable.

Original comment by valenok on 1 Feb 2012 at 9:54

GoogleCodeExporter commented 9 years ago
See also issue #360: 
http://code.google.com/r/gerhobbelt-mongoose-issue-360/
contains full IPv6 support for Win32 platforms (XP and upwards; note that you 
must edit the _WIN32_WINNT default value in mongoose_sys_porting.h if you wish 
your standard builds to support platforms older than Vista/Win7)

N.B.: 

1) code is surrounded by the USE_IPV6 #define, as was the existing code in 
'vanilla' (i.e. the original) mongoose. (NO_IPV6 has been inverted some time 
ago, it seems ;-) )

2) you MUST specify COPT=-DUSE_IPV6 for the makefile to catch on to the 
USE_IPV6 thing

Original comment by ger.hobbelt on 12 Jun 2012 at 5:38

GoogleCodeExporter commented 9 years ago
Forgot to mention: 
Test URL when you've compiled IPv6 mongoose: 
  http://[::1]:8080/

By default, mongoose will listen to both IPv4 and IPv6 sockets when no address 
has been specified for 'listen'ing.
Technically, this is done using two sockets per IP port: one for IPv6 and one 
for IPv4 traffic. (See the loop in set_ports_option().)

Original comment by ger.hobbelt on 12 Jun 2012 at 5:42

GoogleCodeExporter commented 9 years ago
Marking this as fixed, as I don't plan to have full v6 functionality implemented

Original comment by valenok on 22 Sep 2012 at 12:44