forked from pool/virtualbox
aa9cd92c07
- Update fixes for kernel 5.17. Add fixes for kernel 5.18 - file "fixes_for_kernel_5.18.patch" added - Fix build error for guest modules in Leap 15.3 OBS-URL: https://build.opensuse.org/request/show/965783 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=628
19 lines
958 B
Diff
19 lines
958 B
Diff
Index: VirtualBox-6.1.32/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
===================================================================
|
|
--- VirtualBox-6.1.32.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
+++ VirtualBox-6.1.32/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
@@ -2314,8 +2314,13 @@ int vboxNetFltPortOsXmit(PVBOXNETFLTINS
|
|
{
|
|
vboxNetFltDumpPacket(pSG, true, "host", (fDst & INTNETTRUNKDIR_WIRE) ? 0 : 1);
|
|
Log6(("vboxNetFltPortOsXmit: pBuf->cb dump:\n%.*Rhxd\n", sizeof(pBuf->cb), pBuf->cb));
|
|
+# if RTLNX_VER_MAX(5, 18, 0)
|
|
Log6(("vboxNetFltPortOsXmit: netif_rx_ni(%p)\n", pBuf));
|
|
err = netif_rx_ni(pBuf);
|
|
+#else
|
|
+ Log6(("vboxNetFltPortOsXmit: netif_rx(%p)\n", pBuf));
|
|
+ err = netif_rx(pBuf);
|
|
+#endif
|
|
if (err)
|
|
rc = RTErrConvertFromErrno(err);
|
|
}
|