FreeBSD Bugzilla – Attachment 243991 Details for
Bug 239891
net/aoe: Fix for FreeBSD 12+ (no member named 'tqh_first' in 'struct ifnethead')
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file for aoenet.c
aoe-aoenet.c-V_ifnet.patch (text/plain), 1.31 KB, created by
chadf
on 2023-08-09 21:41:58 UTC
(
hide
)
Description:
Patch file for aoenet.c
Filename:
MIME Type:
Creator:
chadf
Created:
2023-08-09 21:41:58 UTC
Size:
1.31 KB
patch
obsolete
>--- dev/aoe/aoenet.c.orig 2023-08-09 14:10:22.118664000 -0700 >+++ dev/aoe/aoenet.c 2023-08-09 14:13:09.954427000 -0700 >@@ -86,9 +86,9 @@ > #define IFLISTSZ 1024 > > #if __FreeBSD_version >= 1200000 >-#define IFNET_FOREACH(v, h, e) CK_STAILQ_FOREACH(v, h, e) >+#define IFNET_FOREACH(v) CK_STAILQ_FOREACH(v, &V_ifnet, if_link) > #else >-#define IFNET_FOREACH(v, h, e) TAILQ_FOREACH(v, h, e) >+#define IFNET_FOREACH(v) TAILQ_FOREACH(v, &ifnet, if_link) > #endif > > static char aoe_iflist[IFLISTSZ]; >@@ -310,7 +310,7 @@ > h->ah_cmd = AOECMD_CFG; > > IFNET_RLOCK(); >- IFNET_FOREACH(ifp, &ifnet, if_link) { >+ IFNET_FOREACH(ifp) { > if (!is_aoe_netif(ifp)) > continue; > memcpy(h->ah_src, IFPADDR(ifp), sizeof(h->ah_src)); >@@ -512,7 +512,7 @@ > > #ifdef FORCE_NETWORK_HOOK > IFNET_RLOCK(); >- IFNET_FOREACH(ifp, &ifnet, if_link) { >+ IFNET_FOREACH(ifp) { > if (!is_aoe_netif(ifp)) { > if (ifp->if_input == aoe_ether_input) > ifp->if_input = old_ether_input; >@@ -537,7 +537,7 @@ > struct ifnet *ifp; > > IFNET_RLOCK(); >- IFNET_FOREACH(ifp, &ifnet, if_link) { >+ IFNET_FOREACH(ifp) { > #if __FreeBSD_version >= 1100030 > switch (ifp->if_type) { > #else >@@ -570,7 +570,7 @@ > struct ifnet *ifp; > > IFNET_RLOCK(); >- IFNET_FOREACH(ifp, &ifnet, if_link) { >+ IFNET_FOREACH(ifp) { > #if __FreeBSD_version >= 1100030 > switch (ifp->if_type) { > #else
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 239891
:
206600
| 243991 |
243992
|
244404
|
244662
|
244700