Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 2024 15:38:06 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        freebsd-net@freebsd.org
Subject:   Re: FreeBSD Port: net/realtek-re-kmod
Message-ID:  <7b0c58c2-2909-4706-8fc5-4be58a7424b5@yandex.ru>
In-Reply-To: <f5c8bf72-032a-45b0-ad69-b8847d4edd2c@gmail.com>
References:  <f5c8bf72-032a-45b0-ad69-b8847d4edd2c@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

[-- Attachment #2 --]
--- 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>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7b0c58c2-2909-4706-8fc5-4be58a7424b5>