VirtualBox

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


Ignore:
Timestamp:
Aug 1, 2008 1:52:59 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33953
Message:

intnet: Initialize the address caches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r11057 r11058  
    27182718    pIf->pSession = pSession;
    27192719    //pIf->pvObj = NULL;
     2720    //pIf->aAddrCache[kIntNetAddrType_Invalid] = {0};
     2721    //pIf->aAddrCache[kIntNetAddrType_IPv4].pbEntries = NULL;
     2722    //pIf->aAddrCache[kIntNetAddrType_IPv4].cEntries = 0;
     2723    //pIf->aAddrCache[kIntNetAddrType_IPv4].cEntriesAlloc = 0;
     2724    pIf->aAddrCache[kIntNetAddrType_IPv4].cbAddress = intnetR0AddrSize(kIntNetAddrType_IPv4);
     2725    pIf->aAddrCache[kIntNetAddrType_IPv4].cbEntry   = intnetR0AddrSize(kIntNetAddrType_IPv4);
     2726    //pIf->aAddrCache[kIntNetAddrType_IPv6].pbEntries = NULL;
     2727    //pIf->aAddrCache[kIntNetAddrType_IPv6].cEntries = 0;
     2728    //pIf->aAddrCache[kIntNetAddrType_IPv6].cEntriesAlloc = 0;
     2729    pIf->aAddrCache[kIntNetAddrType_IPv6].cbAddress = intnetR0AddrSize(kIntNetAddrType_IPv6);
     2730    pIf->aAddrCache[kIntNetAddrType_IPv6].cbEntry   = intnetR0AddrSize(kIntNetAddrType_IPv6);
     2731    //pIf->aAddrCache[kIntNetAddrType_IPX].pbEntries = NULL;
     2732    //pIf->aAddrCache[kIntNetAddrType_IPX].cEntries = 0;
     2733    //pIf->aAddrCache[kIntNetAddrType_IPX].cEntriesAlloc = 0;
     2734    pIf->aAddrCache[kIntNetAddrType_IPX].cbAddress = intnetR0AddrSize(kIntNetAddrType_IPX);
     2735    pIf->aAddrCache[kIntNetAddrType_IPX].cbEntry   = RT_ALIGN_32(intnetR0AddrSize(kIntNetAddrType_IPv4), 16);
    27202736    int rc = RTSemEventCreate((PRTSEMEVENT)&pIf->Event);
    27212737    if (RT_SUCCESS(rc))
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