Erlang Mailing Lists

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 Reply with quote
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,
Guest
Posted: Wed Apr 21, 2010 3:23 pm Reply with quote
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,
Guest
Posted: Wed Apr 21, 2010 3:41 pm Reply with quote
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,
Guest
Posted: Wed Apr 21, 2010 3:42 pm Reply with quote
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,

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

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