On 01.12.2024 16:40, Mike Jakubik wrote:
Hello,


Seems like it wont compile on recent current, noticed about  2 days ago and /usr/src/sys/sys/mbuf.h hasnt been touched it seems.

if_re.c:5552:20: error: incomplete definition of type 'struct ifnet'
5552 |                 ifp->if_capabilities &= ~(IFCAP_TSO6 |

Hi,

struct ifnet was closed from public users in https://reviews.freebsd.org/D39621

Driver must use public ifAPI. Meanwhile you can create `files` directory in the port directory an put this patch there:

--
WBR, Andrey V. Elsukov
--- if_re.c.orig        2024-12-02 15:24:17.650846000 +0300
+++ if_re.c     2024-12-02 15:31:15.473272000 +0300
@@ -67,6 +67,7 @@ __FBSDID("$FreeBSD: src/sys/dev/re/if_re.c,v " RE_VERS
 
 #include <net/if.h>
 #include <net/if_var.h>
+#include <net/if_private.h>
 #include <net/if_arp.h>
 #include <net/ethernet.h>
 #include <net/if_dl.h>

Reply via email to