[streaming] MiniSAPserver port to Solaris 10
Rémi Denis-Courmont
remi at remlab.net
Wed Mar 4 16:16:26 CET 2009
Le lundi 2 mars 2009 10:37:06 Saso Kiselkov, vous avez écrit :
> - Change the argument to setsockopt when setting IP_MULTICAST_TTL to
> "unsigned char" instead of "int". Turns out Solaris is a bit more
> pedantic about this than Linux (both define it as u_char, but Linux
> accepts other types as well, whereas Solaris refuses with EINVAL). I
> renamed the argument in Broadcast() from i_ttl to c_ttl as well, hoping
> to follow videolan coding standards correctly.
This is incorrect. RFC3493 clearly states that the hop limit must be an
integer. A char cannot distinguish the default value -1 from the manual
values 0-255 range. I fixed it anyway.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the streaming
mailing list