* Fixed getsockopt(), patch by Ma Jie - it would always assume IP_MULTICAST_TTL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31396 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1122,7 +1122,7 @@ ipv4_getsockopt(net_protocol* _protocol, int level, int option, void* value,
|
|||||||
return get_int_option(value, *_length, protocol->time_to_live);
|
return get_int_option(value, *_length, protocol->time_to_live);
|
||||||
if (option == IP_TOS)
|
if (option == IP_TOS)
|
||||||
return get_int_option(value, *_length, protocol->service_type);
|
return get_int_option(value, *_length, protocol->service_type);
|
||||||
if (IP_MULTICAST_TTL) {
|
if (option == IP_MULTICAST_TTL) {
|
||||||
return get_int_option(value, *_length,
|
return get_int_option(value, *_length,
|
||||||
protocol->multicast_time_to_live);
|
protocol->multicast_time_to_live);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user