mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 01:55:41 +08:00
Update to FreeBSD head 2018-04-01
Git mirror commit 8dfb1ccc26d1cea7e2529303003ff61f9f1784c4. Update #3472.
This commit is contained in:
@@ -694,12 +694,12 @@ ipsec_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
||||
break;
|
||||
case IPSECGREQID:
|
||||
reqid = sc->reqid;
|
||||
error = copyout(&reqid, ifr->ifr_data, sizeof(reqid));
|
||||
error = copyout(&reqid, ifr_data_get_ptr(ifr), sizeof(reqid));
|
||||
break;
|
||||
case IPSECSREQID:
|
||||
if ((error = priv_check(curthread, PRIV_NET_SETIFCAP)) != 0)
|
||||
break;
|
||||
error = copyin(ifr->ifr_data, &reqid, sizeof(reqid));
|
||||
error = copyin(ifr_data_get_ptr(ifr), &reqid, sizeof(reqid));
|
||||
if (error != 0)
|
||||
break;
|
||||
error = ipsec_set_reqid(ifp, reqid);
|
||||
|
Reference in New Issue
Block a user