VirtualBox

Changeset 28096 in vbox for trunk


Ignore:
Timestamp:
Apr 8, 2010 2:45:21 PM (15 years ago)
Author:
vboxsync
Message:

pdmnetinline.h: Added PDMNetGsoTypeName for logging purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmnetinline.h

    r28074 r28096  
    440440
    441441
    442 
     442/**
     443 * Gets the GSO type name string.
     444 *
     445 * @returns Pointer to read only name string.
     446 * @param   enmType             The type.
     447 */
     448DECLINLINE(const char *) PDMNetGsoTypeName(PDMNETWORKGSOTYPE enmType)
     449{
     450    switch (enmType)
     451    {
     452        case PDMNETWORKGSOTYPE_IPV4_TCP:        return "TCPv4";
     453        case PDMNETWORKGSOTYPE_IPV6_TCP:        return "TCPv6";
     454        case PDMNETWORKGSOTYPE_IPV4_UDP:        return "UDPv4";
     455        case PDMNETWORKGSOTYPE_IPV6_UDP:        return "UDPv6";
     456        case PDMNETWORKGSOTYPE_IPV4_IPV6_TCP:   return "4to6TCP";
     457        case PDMNETWORKGSOTYPE_IPV4_IPV6_UDP:   return "4to6UDP";
     458        case PDMNETWORKGSOTYPE_INVALID:         return "invalid";
     459        case PDMNETWORKGSOTYPE_END:             return "end";
     460    }
     461    return "bad-gso-type";
     462}
     463
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