VirtualBox

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


Ignore:
Timestamp:
Jul 17, 2009 11:40:55 AM (16 years ago)
Author:
vboxsync
Message:

NAT: time storage corresponds to Slirp requirements, and time conversion for HouseKeeping

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_db.c

    r21662 r21671  
    22992299
    23002300    /* Compute number of spokes (output table link chains) to cover */
     2301#ifndef VBOX
    23012302    n = LINK_TABLE_OUT_SIZE * (la->timeStamp - la->lastCleanupTime);
     2303#else
     2304    n = LINK_TABLE_OUT_SIZE * ((la->timeStamp - la->lastCleanupTime)/1000);
     2305#endif
    23022306    n /= ALIAS_CLEANUP_INTERVAL_SECS;
    23032307
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_local.h

    r20958 r21671  
    107107    int     cleanupIndex;   /* Index to chain of link table    */
    108108    /* being inspected for old links   */
    109 
     109#ifndef VBOX
    110110    int     timeStamp;  /* System time in seconds for      */
    111111    /* current packet                  */
     
    113113    int     lastCleanupTime;    /* Last time
    114114                         * IncrementalCleanup()  */
     115#else
     116    unsigned int     timeStamp;  /* System time in seconds for      */
     117    unsigned int     lastCleanupTime;    /* Last time */
     118#endif
    115119    /* was called                      */
    116120
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