Modify IP_TTL to type int in freebsd2linux_cmsghdr while ff_recvmsg.

This commit is contained in:
fengbojiang 2023-09-13 12:50:58 +08:00
parent b9b0ebda80
commit dc77017216
1 changed files with 2 additions and 1 deletions

View File

@ -559,8 +559,9 @@ freebsd2linux_cmsghdr(struct linux_msghdr *linux_msg, const struct msghdr *freeb
*linux_optval = *freebsd_optval;
break;
case IP_RECVTTL:
linux_cmsg->cmsg_len = LINUX_CMSG_LEN(int);
linux_cmsg->cmsg_type = LINUX_IP_TTL;
*linux_optval = *freebsd_optval;
*(int *)linux_optval = *freebsd_optval;
break;
/*case XXXX:
break;*/