VirtualBox

Changeset 15894 in vbox for trunk


Ignore:
Timestamp:
Jan 12, 2009 2:17:55 PM (16 years ago)
Author:
vboxsync
Message:

Linux vboxnetflt: remove some warnings with older kernels

File:
1 edited

Legend:

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

    r15889 r15894  
    439439 * @param   eProtocol       The protocol.
    440440 */
     441#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14)
    441442static int vboxNetFltLinuxPacketHandler(struct sk_buff *pBuf,
    442443                                        struct net_device *pSkbDev,
    443444                                        struct packet_type *pPacketType,
    444445                                        struct net_device *pOrigDev)
     446#else
     447static int vboxNetFltLinuxPacketHandler(struct sk_buff *pBuf,
     448                                        struct net_device *pSkbDev,
     449                                        struct packet_type *pPacketType)
     450#endif
    445451{
    446452    PVBOXNETFLTINS pThis;
    447453    struct net_device *pDev;
    448     /*
    449      * Drop it immediately?
    450      */
     454#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14)
    451455    Log2(("vboxNetFltLinuxPacketHandler: pBuf=%p pSkbDev=%p pPacketType=%p pOrigDev=%p\n",
    452456          pBuf, pSkbDev, pPacketType, pOrigDev));
     457#else
     458    Log2(("vboxNetFltLinuxPacketHandler: pBuf=%p pSkbDev=%p pPacketType=%p\n",
     459          pBuf, pSkbDev, pPacketType));
     460#endif
     461    /*
     462     * Drop it immediately?
     463     */
    453464    if (!pBuf)
    454465        return 0;
     
    587598}
    588599
     600#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
    589601static void vboxNetFltLinuxXmitTask(struct work_struct *pWork)
     602#else
     603static void vboxNetFltLinuxXmitTask(void *pWork)
     604#endif
    590605{
    591606    struct sk_buff *pBuf;
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