]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix access to ifru_buffer on freebsd32.
authorBrooks Davis <brooks@FreeBSD.org>
Tue, 27 Mar 2018 18:26:50 +0000 (18:26 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Tue, 27 Mar 2018 18:26:50 +0000 (18:26 +0000)
commit86d2ef167a2368f950d31aa0049a943ef1386d30
tree6dbf7e92b7b020b2331422003d3532b78a391c22
parentfb441a88290459e73e5e6e229fdf56ba570d5be5
Fix access to ifru_buffer on freebsd32.

Make all kernel accesses to ifru_buffer go via access functions
which take the process ABI into account and use an appropriate union
to access members in the correct place in struct ifreq.

Reviewed by: kib
Obtained from: CheriBSD
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14846
sys/net/if.c
sys/net/if.h