VirtualBox

Changeset 16082 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 20, 2009 12:47:18 PM (16 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetFlt: vlan logging.

File:
1 edited

Legend:

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

    r16060 r16082  
    29642964        }
    29652965    }
     2966    else if (pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_VLAN))
     2967    {
     2968        typedef struct VLANHEADER
     2969        {
     2970            int Pcp:3;
     2971            int Cfi:1;
     2972            int Vid:12;
     2973        } VLANHEADER;
     2974
     2975        VLANHEADER *pVlanHdr = (VLANHEADER *)(pMsg->b_rptr + sizeof(RTNETETHERHDR));
     2976        LogFlow((DEVICE_NAME ":VLAN Pcp=%d Cfi=%d Id=%d\n", pVlanHdr->Pcp, pVlanHdr->Cfi, pVlanHdr->Vid >> 4));
     2977        LogFlow((DEVICE_NAME "%.*Rhxd\n", MBLKL(pMsg), pMsg->b_rptr));
     2978    }
    29662979    else if (pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_ARP))
    29672980    {
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