diff options
author | brooks <brooks@FreeBSD.org> | 2018-04-08 16:54:07 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2018-04-08 16:54:07 +0000 |
commit | 4a84285ab5e17ee1ea5037775ea26d820e962d42 (patch) | |
tree | a85d23bbd8260239236403e402024f77f774329a /sys/net/if_vlan.c | |
parent | f50aa3c7fae4963c12ec87968fa4974ec7219491 (diff) | |
download | FreeBSD-src-4a84285ab5e17ee1ea5037775ea26d820e962d42.zip FreeBSD-src-4a84285ab5e17ee1ea5037775ea26d820e962d42.tar.gz |
MFC r331797:
Use an accessor function to access ifr_data.
This fixes 32-bit compat (no ioctl command defintions are required
as struct ifreq is the same size).
Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14900
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 5c3150e..644de09 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1909,7 +1909,7 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) break; } #endif - error = copyin(ifr->ifr_data, &vlr, sizeof(vlr)); + error = copyin(ifr_data_get_ptr(ifr), &vlr, sizeof(vlr)); if (error) break; if (vlr.vlr_parent[0] == '\0') { @@ -1940,7 +1940,7 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) vlr.vlr_tag = ifv->ifv_vid; } VLAN_SUNLOCK(); - error = copyout(&vlr, ifr->ifr_data, sizeof(vlr)); + error = copyout(&vlr, ifr_data_get_ptr(ifr), sizeof(vlr)); break; case SIOCSIFFLAGS: |