VirtualBox

Ignore:
Timestamp:
Feb 17, 2021 7:25:12 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142841
Message:

NetFlt/Linux: VBoxNetFlt-linux.c doesn't build on Linux kernel 5.11 since <linux/netdevice.h> no longer includes <linux/ethtool.h>. ticketref:20198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r85703 r87785  
    3636#include "product-generated.h"
    3737#if RTLNX_VER_MIN(2,6,24)
    38 #include <linux/nsproxy.h>
     38# include <linux/nsproxy.h>
    3939#endif
    4040#include <linux/netdevice.h>
     41#if RTLNX_VER_MAX(2,6,29) || RTLNX_VER_MIN(5,11,0)
     42# include <linux/ethtool.h>
     43#endif
    4144#include <linux/etherdevice.h>
    4245#include <linux/rtnetlink.h>
     
    4750#include <linux/if_vlan.h>
    4851#if RTLNX_VER_MIN(4,5,0)
    49 #include <uapi/linux/pkt_cls.h>
     52# include <uapi/linux/pkt_cls.h>
    5053#endif
    5154#include <net/ipv6.h>
     
    330333
    331334# if RTLNX_VER_MAX(2,6,29)
    332 
    333 # include <linux/ethtool.h>
    334335
    335336typedef struct ethtool_ops OVR_OPSTYPE;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette