FreeBSD Bugzilla – Attachment 248865 Details for
Bug 277286
Linuxulator awaiting acceptance
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ifname_bsd_to_linux_name.diff
ifname_bsd_to_linux_name.diff (text/plain), 553 bytes, created by
Gleb Smirnoff
on 2024-03-02 04:00:22 UTC
(
hide
)
Description:
ifname_bsd_to_linux_name.diff
Filename:
MIME Type:
Creator:
Gleb Smirnoff
Created:
2024-03-02 04:00:22 UTC
Size:
553 bytes
patch
obsolete
>diff --git a/sys/compat/linux/linux.c b/sys/compat/linux/linux.c >index 569f9ffe1617..69849b1d98ad 100644 >--- a/sys/compat/linux/linux.c >+++ b/sys/compat/linux/linux.c >@@ -253,14 +253,14 @@ ifname_bsd_to_linux_name(const char *bsdname, char *lxname, size_t len) > struct ifnet *ifp; > int ret; > >+ CURVNET_ASSERT_SET(); >+ > ret = 0; >- CURVNET_SET(TD_TO_VNET(curthread)); > NET_EPOCH_ENTER(et); > ifp = ifunit(bsdname); > if (ifp != NULL) > ret = ifname_bsd_to_linux_ifp(ifp, lxname, len); > NET_EPOCH_EXIT(et); >- CURVNET_RESTORE(); > return (ret); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277286
: 248865