mirror of https://github.com/F-Stack/f-stack.git
Modify IP_TTL to type int in freebsd2linux_cmsghdr while ff_recvmsg.
This commit is contained in:
parent
b9b0ebda80
commit
dc77017216
|
@ -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;*/
|
||||
|
|
Loading…
Reference in New Issue