diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2018-03-30 18:50:13 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2018-03-30 18:50:13 +0000 |
commit | 541d96aaaf46cde0f4247c226ed29d635b1915c4 (patch) | |
tree | 77ba4e72595522d17384cbc380199ab6fb4392a9 /sys/net/if_var.h | |
parent | f97f15e44cc9cb01f12d1d669c34b2a177999692 (diff) | |
download | src-541d96aaaf46cde0f4247c226ed29d635b1915c4.tar.gz src-541d96aaaf46cde0f4247c226ed29d635b1915c4.zip |
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). This is believed to be sufficent to
fully support ifconfig on 32-bit systems.
Reviewed by: kib
Obtained from: CheriBSD
MFC after: 1 week
Relnotes: yes
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14900
Notes
Notes:
svn path=/head/; revision=331797
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r-- | sys/net/if_var.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 53130d750776..fbb09ca5d269 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -719,6 +719,9 @@ int drbr_enqueue_drv(if_t ifp, struct buf_ring *br, struct mbuf *m); void if_hw_tsomax_common(if_t ifp, struct ifnet_hw_tsomax *); int if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsomax *); +/* accessors for struct ifreq */ +void *ifr_data_get_ptr(void *ifrp); + #ifdef DEVICE_POLLING enum poll_cmd { POLL_ONLY, POLL_AND_CHECK_STATUS }; |