Return the correct value for the IPV6_MULTICAST_HOPS getsockopt() call.

Submitted by:	rpaulo
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2011-11-13 02:32:10 +00:00
parent 3bfc8044d9
commit 08907004c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227481

View File

@ -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;