]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Consolidate a FreeBSD interface names translation code
authorDmitry Chagin <dchagin@FreeBSD.org>
Thu, 23 Feb 2023 08:00:29 +0000 (11:00 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Sun, 26 Feb 2023 08:10:44 +0000 (11:10 +0300)
commita83551a52d1cfa8a756ef8dd298cab8042e27437
tree8cff7afb58e3aa31cd2a2ed83cb5d9706cd66a04
parentde1770946d5bfc231638ca9d5e0bb004d7a5e384
linux(4): Consolidate a FreeBSD interface names translation code

We have some amount of interface names translation functions which are
differs by bugs implementation. Consolidates it in a one place.

Fixup loopback interface names translation and use ifnet methods and
accessors, where possible.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D38714
MFC after: 3 days
X-MFC with: 32fdc75fe7

(cherry picked from commit 3ab3c9c29cf0e5df8dbbaaf2003456445534bad8)
sys/compat/linprocfs/linprocfs.c
sys/compat/linux/linux.c
sys/compat/linux/linux_common.h
sys/compat/linux/linux_ioctl.c