/* * We always get longs when passed plain numericals, but for this value we * know that an unsigned int will always hold the value so we blindly * typecast to this type*/
arg = va_arg(param, long);
if((arg < 0) || (arg > 0xf))
data->set.scope_id = curlx_sltoui(arg);
Commit 9081014 fixed most of the confusing issues between scope id and
scope however 844896d added bad limits checking assuming that the scope
is being set and not the scope id.
I have fixed the documentation so it all refers to scope ids.
In addition Curl_if2ip refered to the scope id as remote_scope_id which
is incorrect, so I renamed it to local_scope_id.
Adjusted-by: Daniel Stenberg
locked as resolved and limited conversation to collaborators
Jun 27, 2019