VirtualBox

Changeset 76981 in vbox


Ignore:
Timestamp:
Jan 24, 2019 5:13:34 PM (6 years ago)
Author:
vboxsync
Message:

NAT/Net: Fix internal statistics for active queries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxdns.c

    r76553 r76981  
    431431
    432432    LWIP_ASSERT1(req->pprev_hash == NULL);
     433    ++pxdns->active_queries;
     434
    433435    chain = &pxdns->request_hash[HASH(req->id)];
    434436    if ((req->next_hash = *chain) != NULL) {
     
    511513    pxdns_hash_add(pxdns, req);
    512514    pxdns_timeout_add(pxdns, req);
    513     ++pxdns->active_queries;
    514515
    515516    sys_mutex_unlock(&pxdns->lock);
     
    524525    pxdns_hash_del(pxdns, req);
    525526    pxdns_timeout_del(pxdns, req);
    526     --pxdns->active_queries;
    527527
    528528    sys_mutex_unlock(&pxdns->lock);
     
    552552        pxdns_hash_del(pxdns, req);
    553553        pxdns_timeout_del(pxdns, req);
    554         --pxdns->active_queries;
    555554    }
    556555
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