Return the correct value for the IPV6_MULTICAST_HOPS getsockopt() call.
Submitted by: rpaulo MFC after: 3 days
This commit is contained in:
parent
3bfc8044d9
commit
08907004c6
@ -1714,7 +1714,7 @@ ip6_getmoptions(struct inpcb *inp, struct sockopt *sopt)
|
||||
if (im6o == NULL)
|
||||
optval = V_ip6_defmcasthlim;
|
||||
else
|
||||
optval = im6o->im6o_multicast_loop;
|
||||
optval = im6o->im6o_multicast_hlim;
|
||||
INP_WUNLOCK(inp);
|
||||
error = sooptcopyout(sopt, &optval, sizeof(u_int));
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user