Page MenuHomeFreeBSD

D62240.1796158260.diff
No OneTemporary

Authored By
Unknown
Size
1023 B
Referenced Files
None
Subscribers
None

D62240.1796158260.diff

diff --git a/sys/dev/rge/if_rge.c b/sys/dev/rge/if_rge.c
--- a/sys/dev/rge/if_rge.c
+++ b/sys/dev/rge/if_rge.c
@@ -21,6 +21,8 @@
/* $OpenBSD: if_rge.c,v 1.38 2025/09/19 00:41:14 kevlo Exp $ */
+#include "opt_inet.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>
@@ -2721,6 +2723,7 @@
}
*mp = m;
+#ifdef INET
if (is_ipv4) {
struct ip *ipp = (struct ip *)mtodo(m, ehlen);
@@ -2733,6 +2736,7 @@
(CSUM_TCP | CSUM_UDP))
in_delayed_cksum_o(m, ehlen);
}
+#endif
/* No ipv6 logic as we only support offloading ipv4 */
m->m_pkthdr.csum_flags &= ~RGE_CSUM_FEATURES;
diff --git a/sys/modules/rge/Makefile b/sys/modules/rge/Makefile
--- a/sys/modules/rge/Makefile
+++ b/sys/modules/rge/Makefile
@@ -1,7 +1,7 @@
.PATH: ${SRCTOP}/sys/dev/rge
KMOD= if_rge
-SRCS= if_rge.c if_rge_hw.c if_rge_stats.c if_rge_sysctl.c
+SRCS= if_rge.c if_rge_hw.c if_rge_stats.c if_rge_sysctl.c opt_inet.h
SRCS+= device_if.h bus_if.h pci_if.h
.include <bsd.kmod.mk>

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 1, 8:51 PM (18 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42130627
Default Alt Text
D62240.1796158260.diff (1023 B)

Event Timeline