|
|
| Author |
Message |
< Erlang patches mailing list ~ Fix for wrong parameter size for IP_MULTICAST_TTL and IP_MUL |
| Guest |
Posted: Wed Apr 21, 2010 3:23 pm |
|
|
|
Guest
|
The size of parameter setsockopt() is unsigned char for IP_MULTICAST_TTL and IP_MULTICAST_LOOP.
This is needed to work on Solaris10 but linux also accept int that is why the current version works on linux.
Patch:
--------------------------------------------------------
otp_src_R13B04/erts/emulator/drivers/common/inet_drv.c:
@@ -4542,6 +4542,7
@@ static int inet_set_opts(inet_descriptor* desc, char* ptr,
|
|
|
| Back to top |
|
| Guest |
Posted: Wed Apr 21, 2010 3:23 pm |
|
|
|
Guest
|
The size of parameter setsockopt() is unsigned char for IP_MULTICAST_TTL and IP_MULTICAST_LOOP.
This is needed to work on Solaris10 but linux also accept int that is why the current version works on linux.
Patch:
--------------------------------------------------------
otp_src_R13B04/erts/emulator/drivers/common/inet_drv.c:
@@ -4542,6 +4542,7
@@ static int inet_set_opts(inet_descriptor* desc, char* ptr,
|
|
|
| Back to top |
|
| Guest |
Posted: Wed Apr 21, 2010 3:41 pm |
|
|
|
Guest
|
The size of parameter setsockopt() is unsigned char for IP_MULTICAST_TTL and IP_MULTICAST_LOOP.
This is needed to work on Solaris10 but linux also accept int that is why this works on linux.
Patch:
--------------------------------------------------------
otp_src_R13B04/erts/emulator/drivers/common/inet_drv.c:
@@ -4542,6 +4542,7
@@ static int inet_set_opts(inet_descriptor* desc, char* ptr,
|
|
|
| Back to top |
|
| Guest |
Posted: Wed Apr 21, 2010 3:42 pm |
|
|
|
Guest
|
The size of parameter setsockopt() is unsigned char for IP_MULTICAST_TTL and IP_MULTICAST_LOOP.
This is needed to work on Solaris10 but linux also accept int that is why this works on linux.
Patch:
--------------------------------------------------------
otp_src_R13B04/erts/emulator/drivers/common/inet_drv.c:
@@ -4542,6 +4542,7
@@ static int inet_set_opts(inet_descriptor* desc, char* ptr,
|
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|