]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r331641, r331644, r332158
authorbrooks <brooks@FreeBSD.org>
Sun, 8 Apr 2018 15:52:32 +0000 (15:52 +0000)
committerbrooks <brooks@FreeBSD.org>
Sun, 8 Apr 2018 15:52:32 +0000 (15:52 +0000)
commitf50aa3c7fae4963c12ec87968fa4974ec7219491
treed5d4dfb836c70c8f66c799a4aedcff309373e25a
parent1520d5809a5bbde6d2bf5aa7791f934ad9335cf4
MFC r331641, r331644, r332158

r331641:
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
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14846

r331644:
Fix a whitespace bug missed in refactoring prior to r331641.

MFC with: r331641

r332158:
Remove the thread argument from ifr_buffer_*() accessors.

They are always used in a context where curthread is the correct thread.
This makes them more similar to the ifr_data_get_ptr() accessor.
sys/net/if.c
sys/net/if.h