Changeset 21671 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jul 17, 2009 11:40:55 AM (16 years ago)
- 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 2299 2299 2300 2300 /* Compute number of spokes (output table link chains) to cover */ 2301 #ifndef VBOX 2301 2302 n = LINK_TABLE_OUT_SIZE * (la->timeStamp - la->lastCleanupTime); 2303 #else 2304 n = LINK_TABLE_OUT_SIZE * ((la->timeStamp - la->lastCleanupTime)/1000); 2305 #endif 2302 2306 n /= ALIAS_CLEANUP_INTERVAL_SECS; 2303 2307 -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_local.h
r20958 r21671 107 107 int cleanupIndex; /* Index to chain of link table */ 108 108 /* being inspected for old links */ 109 109 #ifndef VBOX 110 110 int timeStamp; /* System time in seconds for */ 111 111 /* current packet */ … … 113 113 int lastCleanupTime; /* Last time 114 114 * IncrementalCleanup() */ 115 #else 116 unsigned int timeStamp; /* System time in seconds for */ 117 unsigned int lastCleanupTime; /* Last time */ 118 #endif 115 119 /* was called */ 116 120
Note:
See TracChangeset
for help on using the changeset viewer.