VirtualBox

Changeset 21698 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jul 17, 2009 2:17:21 PM (16 years ago)
Author:
vboxsync
Message:

NAT: counters

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/counters.h

    r21687 r21698  
    7676PROFILE_COUNTER(IP_input, "IP::input");
    7777PROFILE_COUNTER(IP_output, "IP::output");
     78PROFILE_COUNTER(IF_encap, "IF::encap");
    7879#ifdef VBOX_WITH_SLIRP_ALIAS
    7980PROFILE_COUNTER(ALIAS_input, "ALIAS::input");
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r21670 r21698  
    14871487    struct ethhdr *eh;
    14881488    uint8_t *buf = RTMemAlloc(1600);
     1489    STAM_PROFILE_START(&pData->StatIF_encap, a);
    14891490
    14901491    m->m_data -= if_maxlinkhdr;
     
    15231524    slirp_output(pData->pvUser, NULL, buf, m->m_len);
    15241525done:
     1526    STAM_PROFILE_STOP(&pData->StatIF_encap, a);
    15251527    m_free(pData, m);
    15261528#endif
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